为什么选择j_spring_security_check 404?

 lumanman158 发布于 2023-02-10 14:19

我正在尝试使用Spring安全性实现基于表单的身份验证.重定向工作正常:我的主页工作正常, http://localhost:8080/master/admin我被重定向到登录页面(http://localhost:8080/master/login/):

    
but when I submit I get 404 on address: `http://localhost:8080/master/login/j_spring_security_check`

这是我的配置web.xml:

    
        contextConfigLocation
        /WEB-INF/spring/root-context.xml
    
    
        springSecurityFilterChain
        org.springframework.web.filter.DelegatingFilterProxy
    
    
        springSecurityFilterChain
        /*
    

    
    
        org.springframework.web.context.ContextLoaderListener
    

    
    
        appServlet
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            /WEB-INF/spring/appServlet/servlet-context.xml
        
        1
    
    
        appServlet
        /
    

我的root-context.xml(我重定向谷歌,以便我知道页面存在于上下文中)


    
    
    



    
        
            
            
        
    
 

我已经失去了很多时间,尝试不同的组合,但没有运气.任何帮助表示赞赏!

1 个回答
  • 我认为这可能是您的安全表格应该指出的事实

    /master/j_spring_security_check
    

    2023-02-10 14:23 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有