Spring MVC 视图解析器在返回html静态页面的时候会报错

 

解决: 

<mvc:resources location="/views/" mapping="/views/*.html"/>   

 

  mapping:对应的url映射

  location:webapp下的目录

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案