在web.xml中配置了
<welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>
也访问不到静态资源。
原来是spirngmvc框架原因。
在springmvc.xml配置文件中加上
<mvc:default-servlet-handler/>
就能访问到默认页了。
在web.xml中配置了
<welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>
也访问不到静态资源。
原来是spirngmvc框架原因。
在springmvc.xml配置文件中加上
<mvc:default-servlet-handler/>
就能访问到默认页了。
转载于:https://www.cnblogs.com/valarchie/p/5525895.html