mybatis:
mapper-locations: classpath:mapper/*Mapper.xml
#為實體類包下的所有類注冊別名
type-aliases-package: com.zzx.domain
#打印mybatis日志
configuration:
#org.apache.ibatis.logging.stdout.StdOutImpl 控制台打印sql語句方便調試sql語句執行錯誤
#org.apache.ibatis.logging.log4j2.Log4j2Impl:這個不在控制台打印查詢結果,但是在log4j中打印
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#開啟駝峰命名
map-underscore-to-camel-case: true
#showSql
logging:
level:
com.zzx.dao: debug
config: classpath:log4j2-spring.xml