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