第一步:在application.yml文件中mybatis配置中添加配置(备注:在生产环境要将该功能去掉)
mybatis:
type-aliases-package: com.ljl.pojo # 所有POJO类所在包路径
mapperr-locations: classpath:mapper/*.xml # mapper映射文件
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 表示开启sql语句的日志打印