请问springboot mybatis 整合后如何答应输出sql语句

请问springboot mybatis 整合后如何答应输出sql语句

紫衣仙女
浏览 1494回答 2
2回答

繁花不似锦

# Output pattern : date [thread] priority category - messagelog4j.rootLogger=WARN, Console, RollingFile#Consolelog4j.appender.Console=org.apache.log4j.ConsoleAppenderlog4j.appender.Console.layout=org.apache.log4j.PatternLayoutlog4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n#RollingFilelog4j.appender.RollingFile=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.RollingFile.File=../logs/fgw.loglog4j.appender.RollingFile.layout=org.apache.log4j.PatternLayoutlog4j.appender.RollingFile.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n#Project defalult levellog4j.logger.dl=DUBUGlog4j.logger.org.springframework=WARNlog4j.logger.org.mybatis=DUBUG这样就行了。
打开App,查看更多内容
随时随地看视频慕课网APP