springboot+mybatis视图返回问题
Error resolving template [goods/selectByPrimaryKey], template might not exist or might not be accessible by any of the configured Template Resolvers
看到其他人说配置视图解析器,一顿配置,这里比较懒,不考虑数据交互问题的话 就直接加注解。
错误原因:因为返回的数据格式,返回但无法解析。
解决办法:返回可以成功解析的数据,在改接口上加上@ResponseBody,也就是自动解析成json字符串的格式返回给前台。