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

来源:互联网 发布:统计学数据分析案例题 编辑:程序博客网 时间:2024/06/05 04:17

问题发生位置:springboot集成freemarker

1.访问浏览器报错显示:

2

2.原因分析总结:

(1)路径错误导致访问不到(注意与注解内的名称是否一致)

(2)静态资源视图位置不正确

(3)application类位置不对,应处于groupId之下

4

(4)未对spring-boot-starter-freemarker进行配置(pom.xml内)

(5)spring-boot-starter-freemarker配置版本过低导致无法解析

6

appilcation.properties配置文件警告截图

7


阅读全文
1 0
原创粉丝点击