如題配置檔案加上
#設定靜态檔案路徑,js,css等。static為你放置靜态資源的檔案夾名稱,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**
.yml加上
spring:
mvc:
static-path-pattern: /static/**
如題配置檔案加上
#設定靜态檔案路徑,js,css等。static為你放置靜态資源的檔案夾名稱,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**
.yml加上
spring:
mvc:
static-path-pattern: /static/**