问题描述:

Springboot中使用WebMvcConfigurationSupport无法获取css样式
使用WebMvcConfigurationSupport后无法获取css样式
Springboot中使用WebMvcConfigurationSupport无法获取css样式
使用thymeleaf链接的url也没有错误

原因分析:

找不到静态资源路径

解决方案:

重写addResourceHandlers映射文件路径,加入以下代码,就可以找到静态资源路径,仅限spring2.0以上版本
Springboot中使用WebMvcConfigurationSupport无法获取css样式

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-02-24
  • 2022-12-23
  • 2022-01-03
  • 2021-04-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
相关资源
相似解决方案