spring security 404错误
web.xml:<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applictionContext.xml ,classpath*:applictionContext-security3.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!--security -->
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
applictionContext-security3.xml:
<global-method-security pre-post-annotations="enabled"></global-method-security>
<http security="none" pattern="/login.jsp"></http><!-- 不需要权限的 -->
<http security="none" pattern="/index.jsp"></http><!-- 不需要权限的 -->
<http auto-config="true" access-denied-page="/common/403.jsp/"><!-- 需要权限的 -->
<intercept-url pattern="/user.jsp" access="ROLE_USER" />
<!-- session管理 -->
<session-management session-fixation-protection="none">
<concurrency-control error-if-maximum-exceeded="true" max-sessions="1"/>
</session-management>
<form-login login-page="/login.jsp"
authentication-failure-url="/common/403.jsp/"
default-target-url="/login.jsp"/>
<logout logout-success-url="/login.jsp"/>
<http-basic/>
</http>
<!-- 认证管理 -->
<authentication-manager>
<authentication-provider>
<user-service>
<user name="admin" password="admin" authorities="ROLE_USER"/>
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>
访问index.jsp login.jsp时报404错误 不知道哪里出错了 求高手! security spring --------------------编程问答-------------------- 404错误就是你程序的问题了。 --------------------编程问答-------------------- 但我除了登陆页面其他的都是设置默认的,我新手,能详细讲下吗?
补充:Java , Web 开发