springboot一般默认static为静态资源路径,所以访问静态资源时不需要加上static,想要加上static可以访问,需要在配置文件中加入

spring:
  mvc:
  static-path-pattern: /static/**

相关文章:

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