Spring boot+thymeleaf报错

这里就不截图了,又要保存又要添加进来,比较麻烦,我直接copy报错到这里吧

1、以下是浏览器报错的内容


Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Aug 31 23:27:48 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Error resolving template "id: 23", template might not exist or might not be accessible by any of the configured Template Resolvers


解决方法:

在这之前也找了很多解决方案,大家都可以试试,但是我这边没生效,有些修改配置的,有些说是url末尾没有加/

在类上加入注解, 我原来是用@Controller现在改成 @RestController运行就搞定了

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容