Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我使用JavaEE开发web应用程序,如果我使用SpringSecurity创建身份验证,它不会';行不通_Spring_Security - Fatal编程技术网

我使用JavaEE开发web应用程序,如果我使用SpringSecurity创建身份验证,它不会';行不通

我使用JavaEE开发web应用程序,如果我使用SpringSecurity创建身份验证,它不会';行不通,spring,security,Spring,Security,具有spring安全认证的J2EE web应用程序 我的代码是正确的,没有例外,但我不能登录和重定向到失败的登录页面 我使用eclipse、SpringMVC项目、Tomcat8和mysql开发我的应用程序 15:43:16.476 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.FilterChainProxy - /j_spring_security_check?username=sousou@d&pass

具有spring安全认证的J2EE web应用程序 我的代码是正确的,没有例外,但我不能登录和重定向到失败的登录页面 我使用eclipse、SpringMVC项目、Tomcat8和mysql开发我的应用程序

15:43:16.476 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.FilterChainProxy - /j_spring_security_check?username=sousou@d&password=123456 at position 1 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
15:43:16.478 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT
15:43:16.478 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@5d2fc5. A new one will be created.
15:43:16.488 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.FilterChainProxy - /j_spring_security_check?username=sousou@d&password=123456 at position 2 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
15:43:16.490 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.FilterChainProxy - /j_spring_security_check?username=sousou@d&password=123456 at position 3 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
15:43:16.492 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.FilterChainProxy - /j_spring_security_check?username=sousou@d&password=123456 at position 4 of 11 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'
15:43:16.492 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter - Request is to process authentication
15:43:16.497 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter - Authentication request failed: org.springframework.security.authentication.AuthenticationServiceException: Authentication method not supported: GET
15:43:16.498 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter - Updated SecurityContextHolder to contain null Authentication
15:43:16.499 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter - Delegating to authentication failure handler org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler@147c3d7
15:43:16.499 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler - Redirecting to /failedlogin
15:43:16.500 [http-nio-9090-exec-19] DEBUG org.springframework.security.web.DefaultRedirectStrategy - Redirecting to '/it/failedlogin'
        <s:intercept-url pattern="/actualite/" access="ROLE_ADMIN , ROLE_USER"/>
        <!--    <s:intercept-url pattern="" access="ROLE_ADMIN"/> -->


        <s:form-login login-page="/" default-target-url="/home/" authentication-failure-url="/failedlogin"></s:form-login>


        <s:access-denied-handler error-page="/403/"></s:access-denied-handler>
        <s:logout   logout-success-url="/" delete-cookies="JSESSIONID"></s:logout>

    </s:http>

        <s:intercept-url pattern="/actualite/" access="ROLE_ADMIN , ROLE_USER"/>
        <!--    <s:intercept-url pattern="" access="ROLE_ADMIN"/> -->


        <s:form-login login-page="/" default-target-url="/home/" authentication-failure-url="/failedlogin"></s:form-login>


        <s:access-denied-handler error-page="/403/"></s:access-denied-handler>
        <s:logout   logout-success-url="/" delete-cookies="JSESSIONID"></s:logout>

    </s:http>

鉴定人
路况
新企业联合会
...
*应用程序配置.xml*

        <s:intercept-url pattern="/actualite/" access="ROLE_ADMIN , ROLE_USER"/>
        <!--    <s:intercept-url pattern="" access="ROLE_ADMIN"/> -->


        <s:form-login login-page="/" default-target-url="/home/" authentication-failure-url="/failedlogin"></s:form-login>


        <s:access-denied-handler error-page="/403/"></s:access-denied-handler>
        <s:logout   logout-success-url="/" delete-cookies="JSESSIONID"></s:logout>

    </s:http>

        <s:intercept-url pattern="/actualite/" access="ROLE_ADMIN , ROLE_USER"/>
        <!--    <s:intercept-url pattern="" access="ROLE_ADMIN"/> -->


        <s:form-login login-page="/" default-target-url="/home/" authentication-failure-url="/failedlogin"></s:form-login>


        <s:access-denied-handler error-page="/403/"></s:access-denied-handler>
        <s:logout   logout-success-url="/" delete-cookies="JSESSIONID"></s:logout>

    </s:http>

        <s:intercept-url pattern="/actualite/" access="ROLE_ADMIN , ROLE_USER"/>
        <!--    <s:intercept-url pattern="" access="ROLE_ADMIN"/> -->


        <s:form-login login-page="/" default-target-url="/home/" authentication-failure-url="/failedlogin"></s:form-login>


        <s:access-denied-handler error-page="/403/"></s:access-denied-handler>
        <s:logout   logout-success-url="/" delete-cookies="JSESSIONID"></s:logout>

    </s:http>