如题配置文件加上

#设定静态文件路径,js,css等。static为你放置静态资源的文件夹名称,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**

.yml加上
spring:
mvc:
static-path-pattern: /static/**

 


 
                    
            
                

相关文章:

  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-12-24
  • 2021-12-02
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-09-24
  • 2021-11-17
  • 2022-01-11
  • 2021-11-15
  • 2021-08-01
相关资源
相似解决方案