log日志打印总结
需要mybites-plus打印sql并且打印sql执行结果
mybatis-plus: mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:mybatis-mapper/*.xml configuration: # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 返回类型为Map,显示null对应的字段 call-setters-on-nulls: true
如果只需要打印sql而不需要打印sql执行结果,将logging等级设置为debug即可
logging:
level:
root: debug
org.jeecg.modules.system.mapper : debug
org.jeecg.modules.demo.project.mapper : debug
设置完成后,记得重启系统

浙公网安备 33010602011771号