首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

P6Spy + SQL Profiler + IronTrackSQL【批改】_转

2012-09-19 
P6Spy + SQL Profiler + IronTrackSQL【修改】_转bean?iddataSource?classorg.springframework.jdbc.d

P6Spy + SQL Profiler + IronTrackSQL【修改】_转
P6Spy + SQL Profiler + IronTrackSQL【批改】_转<bean?id="dataSource"?class="org.springframework.jdbc.datasource.DriverManagerDataSource">
?2P6Spy + SQL Profiler + IronTrackSQL【批改】_转<property?name="driverClassName">???
?3P6Spy + SQL Profiler + IronTrackSQL【批改】_转<value>com.sybase.jdbc2.jdbc.SybDriver</value>???
?4P6Spy + SQL Profiler + IronTrackSQL【批改】_转</property>???
?5P6Spy + SQL Profiler + IronTrackSQL【批改】_转<property?name="url">???
?6P6Spy + SQL Profiler + IronTrackSQL【批改】_转<value>jdbc:sybase:Tds:192.168.0.2:6100/db</value>???
?7P6Spy + SQL Profiler + IronTrackSQL【批改】_转</property>???
?8P6Spy + SQL Profiler + IronTrackSQL【批改】_转<property?name="username">???
?9P6Spy + SQL Profiler + IronTrackSQL【批改】_转<value>usr</value>???
10P6Spy + SQL Profiler + IronTrackSQL【批改】_转</property>
11P6Spy + SQL Profiler + IronTrackSQL【批改】_转<property?name="password">???
12P6Spy + SQL Profiler + IronTrackSQL【批改】_转<value>pwd</value>
13P6Spy + SQL Profiler + IronTrackSQL【批改】_转</property>
14P6Spy + SQL Profiler + IronTrackSQL【批改】_转</bean>???
15P6Spy + SQL Profiler + IronTrackSQL【批改】_转
16P6Spy + SQL Profiler + IronTrackSQL【批改】_转


因为在spring加载时我们无法控制先加载哪个,spring会报错不能使用com.P6Spy + SQL Profiler + IronTrackSQL【批改】_转<bean?id="dataSourceTarget"?class="org.springframework.jdbc.datasource.DriverManagerDataSource">???
?2P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<property?name="driverClassName">???
?3P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<value>com.sybase.jdbc2.jdbc.SybDriver</value>???
?4P6Spy + SQL Profiler + IronTrackSQL【批改】_转????</property>??
?5P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<property?name="url">???
?6P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<value>jdbc:sybase:Tds:192.168.0.2:6100/db</value>???
?7P6Spy + SQL Profiler + IronTrackSQL【批改】_转????</property>???
?8P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<property?name="username">???
?9P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<value>usr</value>???
10P6Spy + SQL Profiler + IronTrackSQL【批改】_转????</property>???
11P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<property?name="password">???
12P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<value>pwd</value>???
13P6Spy + SQL Profiler + IronTrackSQL【批改】_转????</property>???
14P6Spy + SQL Profiler + IronTrackSQL【批改】_转</bean>???
15P6Spy + SQL Profiler + IronTrackSQL【批改】_转<bean?id="dataSource"?class="com.p6spy.engine.spy.P6DataSource"?destroy-method="close">???
16P6Spy + SQL Profiler + IronTrackSQL【批改】_转????<constructor-arg>???
17P6Spy + SQL Profiler + IronTrackSQL【批改】_转???????<ref?local="dataSourceTarget"/>???
18P6Spy + SQL Profiler + IronTrackSQL【批改】_转????</constructor-arg>???
19P6Spy + SQL Profiler + IronTrackSQL【批改】_转</bean>???

<script>render_code();</script>
这样就可以把p6spy集成到spring中去了。
令:网上好多文章都介绍使用sqlprofiler和p6spy配合,但是IronTrackSQL感觉更好一些!
关于如何使用sqlprofiler,IronTrackSQL,配置很简单
对于sqlprofiler只要把sqlprofiler自带的spy.properties放到classpath下就可以了,然后java -jar sqlprofiler.jar
对于IronTrackSQL,还要把irontracksql.jar也放到classpath下,然后java -jar irontracksql.jar

热点排行