You need to specify the path to the static resources:
# 默认值为 /**,我的静态资源在classpath的static目录下
spring.mvc.static-path-pattern=/static/**
You need to specify the path to the static resources:
# 默认值为 /**,我的静态资源在classpath的static目录下
spring.mvc.static-path-pattern=/static/**