正在显示
5 个修改的文件
包含
15 行增加
和
9 行删除
@@ -11,12 +11,12 @@ spring: | @@ -11,12 +11,12 @@ spring: | ||
11 | mvc: | 11 | mvc: |
12 | #静态资源,设置上传文件的访问, | 12 | #静态资源,设置上传文件的访问, |
13 | static-path-pattern: /** | 13 | static-path-pattern: /** |
14 | - view: | ||
15 | - suffix: .html | ||
16 | -# prefix: /templates/ | 14 | +# view: |
15 | +# suffix: .html | ||
16 | +## prefix: /templates/ | ||
17 | 17 | ||
18 | resources: | 18 | resources: |
19 | - static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/public/,classpath:/templates/,file:${web.upload-path} | 19 | + static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/public/,file:${web.upload-path} |
20 | 20 | ||
21 | application: | 21 | application: |
22 | name: customAnalysisReception | 22 | name: customAnalysisReception |
@@ -43,6 +43,10 @@ | @@ -43,6 +43,10 @@ | ||
43 | </dependency> | 43 | </dependency> |
44 | <dependency> | 44 | <dependency> |
45 | <groupId>org.springframework.boot</groupId> | 45 | <groupId>org.springframework.boot</groupId> |
46 | + <artifactId>spring-boot-starter-thymeleaf</artifactId> | ||
47 | + </dependency> | ||
48 | + <dependency> | ||
49 | + <groupId>org.springframework.boot</groupId> | ||
46 | <artifactId>spring-boot-starter-test</artifactId> | 50 | <artifactId>spring-boot-starter-test</artifactId> |
47 | <scope>test</scope> | 51 | <scope>test</scope> |
48 | </dependency> | 52 | </dependency> |
@@ -22,6 +22,8 @@ | @@ -22,6 +22,8 @@ | ||
22 | * 集成lombok,简化部分代码录入,比如实体类,方便实体及表结构修改,敏捷开发必用,使用方法见[lombok集成使用说明](https://jingyan.baidu.com/article/0a52e3f4e53ca1bf63ed725c.html) | 22 | * 集成lombok,简化部分代码录入,比如实体类,方便实体及表结构修改,敏捷开发必用,使用方法见[lombok集成使用说明](https://jingyan.baidu.com/article/0a52e3f4e53ca1bf63ed725c.html) |
23 | ) | 23 | ) |
24 | * 集成websocket | 24 | * 集成websocket |
25 | - * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log | 25 | + * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的log_info.log |
26 | * 打包jar散包 看这里 https://blog.csdn.net/m0_37202351/article/details/81738357 | 26 | * 打包jar散包 看这里 https://blog.csdn.net/m0_37202351/article/details/81738357 |
27 | -* 要集成util项目为model才能跑起来 [git地址](git@118.31.66.166:wlxxpt/utitls.git) | ||
27 | +* 要集成util项目为model才能跑起来 [git地址](git@118.31.66.166:wlxxpt/utitls.git) | ||
28 | +* 集成thymeleaf,webmvc 视图配置参考资料[地址](https://blog.csdn.net/zheng_chang_wei/article/details/76155440) | ||
29 | + 及[打jar包后找不到路径](https://blog.csdn.net/qq_37372909/article/details/84824805) |
@@ -8,12 +8,12 @@ public class ErrorController { | @@ -8,12 +8,12 @@ public class ErrorController { | ||
8 | 8 | ||
9 | @RequestMapping("/error404") | 9 | @RequestMapping("/error404") |
10 | public String error404(){ | 10 | public String error404(){ |
11 | - return "/error/404"; | 11 | + return "error/404"; |
12 | } | 12 | } |
13 | 13 | ||
14 | @RequestMapping("/error500") | 14 | @RequestMapping("/error500") |
15 | public String error500(){ | 15 | public String error500(){ |
16 | - return "/error/500"; | 16 | + return "error/500"; |
17 | } | 17 | } |
18 | 18 | ||
19 | 19 |
-
请 注册 或 登录 后发表评论