在web.xml中配置了

     <welcome-file-list>
       <welcome-file>index.html</welcome-file>
    </welcome-file-list>

也访问不到静态资源。

原来是spirngmvc框架原因。

在springmvc.xml配置文件中加上

<mvc:default-servlet-handler/>

就能访问到默认页了。

相关文章:

  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-03-05
  • 2021-10-13
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-06-24
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案