springboot加载静态资源

 

 第一步写一个config的类继承,WebMvcConfigurationSupport    

重写这个方法/**是指这个后面的路径都可以加载

另一个配置类加载

   web: resources: 
  static-locations: 
  classpath:atic,classpath:/public,classpath:/resources

  

 

 这种

posted @ 2022-08-30 09:37  熬夜遭毒打  阅读(98)  评论(0)    收藏  举报