需要在yml中添加静态资源的路径即可解决
spring:
thymeleaf:
cache: false
mvc:
static-path-pattern: /static/**
resources:
static-locations: classpath:/static/
需要在yml中添加静态资源的路径即可解决
spring:
thymeleaf:
cache: false
mvc:
static-path-pattern: /static/**
resources:
static-locations: classpath:/static/