springboot 各种日志打印

1.springboot打印sql语句

在application.properties文件中:

#开启打印MyBatis sql日志输出
logging.level.com.sws.platform.gis.dao=debug 

红色部门修改为mappper(.java)文件路径。

#打印sql、参数、查询结果的
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

猜你喜欢

转载自blog.csdn.net/weixin_38959210/article/details/107321115
今日推荐