Skip to content

MyBatis整合Spring并使用log4jdbc或者p6spy输出真实的sql语句

Notifications You must be signed in to change notification settings

olh2012/mybatis-spring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring整合MyBatis

1、在控制台记录真实的sql语句 1.1、使用log4jdbc的配置 1.1.1、添加log4jdbc的jar log4jdbc log4jdbc4 1.2 log4jdbc log4jdbc4 1.2 org.slf4j slf4j-api 1.6.6 org.slf4j slf4j-log4j12 1.6.6 org.slf4j slf4j-jdk14 1.5.8 1.1.2、参考src/main/resources/log4j.properties配置文件 1.1.3、修改jdbc的driver和jdbc url(参考src/main/resources/applicationContext.xml) 1.2、使用p6spy的配置 1.2.1、添加p6spy的jar p6spy p6spy 1.3 1.2.2、参考src/main/resources/spy.properties 1.2.3、添加配置文件信息

About

MyBatis整合Spring并使用log4jdbc或者p6spy输出真实的sql语句

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published