springboot+Mybatis中的404白页错误

springboot+Mybatis中的404白页错误
排除了规范问题、MYSQL版本问题,最后发现是个非常简单的错误引起数据库数据无法获取。

问题原因:在Mapper接口中的list方法的select元素中没有配置ResultMap或者ReslutType。

解决方法:
1、在POM中添加
springboot+Mybatis中的404白页错误

2、在Mapper.xml文件中对应方法添加

springboot+Mybatis中的404白页错误

springboot+Mybatis中的404白页错误

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2021-12-12
  • 2021-05-20
  • 2021-06-19
  • 2021-11-16
猜你喜欢
  • 2021-12-16
  • 2021-12-12
  • 2022-12-23
  • 2021-07-07
  • 2021-10-22
  • 2022-01-10
  • 2021-05-19
相关资源
相似解决方案