作者 朱兆平

MVC配置

... ... @@ -11,12 +11,12 @@ spring:
mvc:
#静态资源,设置上传文件的访问,
static-path-pattern: /**
view:
suffix: .html
# prefix: /templates/
# view:
# suffix: .html
## prefix: /templates/
resources:
static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/public/,classpath:/templates/,file:${web.upload-path}
static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/public/,file:${web.upload-path}
application:
name: customAnalysisReception
... ...
... ... @@ -43,6 +43,10 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
... ...
... ... @@ -22,6 +22,8 @@
* 集成lombok,简化部分代码录入,比如实体类,方便实体及表结构修改,敏捷开发必用,使用方法见[lombok集成使用说明](https://jingyan.baidu.com/article/0a52e3f4e53ca1bf63ed725c.html)
)
* 集成websocket
* 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log
* 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的log_info.log
* 打包jar散包 看这里 https://blog.csdn.net/m0_37202351/article/details/81738357
* 要集成util项目为model才能跑起来 [git地址](git@118.31.66.166:wlxxpt/utitls.git)
* 集成thymeleaf,webmvc 视图配置参考资料[地址](https://blog.csdn.net/zheng_chang_wei/article/details/76155440)
[打jar包后找不到路径](https://blog.csdn.net/qq_37372909/article/details/84824805)
\ No newline at end of file
... ...
... ... @@ -8,12 +8,12 @@ public class ErrorController {
@RequestMapping("/error404")
public String error404(){
return "/error/404";
return "error/404";
}
@RequestMapping("/error500")
public String error500(){
return "/error/500";
return "error/500";
}
... ...
... ... @@ -9,7 +9,7 @@ public class ImfLogController {
@RequestMapping("/log/imf")
public String IMFlog(){
return "/log/imf";
return "log/imf";
}
... ...