解决 template might not exist or might not be accessible by any of the configured Template Resolvers

报错内容:

在这里插入图片描述
  Error resolving template [settlement/logisticsAll], template might not exist or might not be accessible by any of the configured Template Resolvers

报错原因:

在使用element.ui前端框架和axios技术时

1.访问Controller控制器时地址前面少加了“/”

解决 template might not exist or might not be accessible by any of the configured Template Resolvers_第1张图片
2.Controller控制器返回数据时类上加的@Controller应该改为@RestController
解决 template might not exist or might not be accessible by any of the configured Template Resolvers_第2张图片
或者这样写(它等价于@RestController)
解决 template might not exist or might not be accessible by any of the configured Template Resolvers_第3张图片

你可能感兴趣的:(elementui,spring,boot)