在使用mybatis+springboot开发登录界面过程中,出现上图问题,最终修改application.yml文件解决问题:
mybatis:
type-aliases-package: com.springboot.entity
mapper-locations: classpath:mapper/*.xml
configuration:
map-underscore-to-camel-case: true
注意格式严格符合,切记,切记!
再有就是看对应xml文件是否在resources/mapper下,这个路径也要特别注意~
谢谢阅读!