81,122
社区成员




server:
port: 8080
spring:
name: XXX
mvc:
static-path-pattern: /static/**
resources:
static-locations: classpath:/static/
thymeleaf:
cache: false
content-type: text/html
encoding: UTF-8
mode: LEGACYHTML5
prefix: classpath:/templates/
suffix: .html
/**
* 静态资源访问映射
*/
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
}