springmvc 中配置了静态文件扫描,同事配置了需要扫描的标注了@Controller的类
就会出现springMVC前端请求找不到资源路径(HTTP Status 404)问题
HTTP Status 404 - /spring3Pro/index
type Status report
message /spring3Pro/index
description The requested resource (/spring3Pro/index) is not available.
在配置了<mvc:default-servlet-handler/>
而未配置下属
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"></bean>
或者
未配置
<mvc:annotation-driven/>
就会出现springMVC前端请求找不到资源路径(HTTP Status 404)问题
HTTP Status 404 - /spring3Pro/index
type Status report
message /spring3Pro/index
description The requested resource (/spring3Pro/index) is not available.
在配置了<mvc:default-servlet-handler/>
而未配置下属
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"></bean>
或者
未配置
<mvc:annotation-driven/>