Error resolving template [goods/selectByPrimaryKey], template might not exist or might not be accessible by any of the configured Template Resolvers

springboot+mybatis视图返回问题

看到其他人说配置视图解析器,一顿配置,这里比较懒,不考虑数据交互问题的话 就直接加注解。

错误原因:因为返回的数据格式,返回但无法解析。

解决办法:返回可以成功解析的数据,在改接口上加上@ResponseBody,也就是自动解析成json字符串的格式返回给前台。

相关文章:

  • 2021-08-12
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2021-05-27
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案