The first: configure the log level in yml
logging:
level:
com.admin.mall.dao: DEBUG #com.admin.mall.dao我的mapper(dao层)包,改成你自己的
The second type: configure the log printing implementation class for mybatis in yml, log-impl implements a certain implementation class for printing log logs
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl