SpringMVC项目中,输入网址localhost:8080会自动重定向到localhost:8080/login,该功能是在哪里实现的?项目结构是这样的,里面也没有登录界面啊,登录界面是怎么来的,请告知(该项目源自github)

解决方案 »

  1.   

    是不是web.xml里面?
      

  2.   

    配置 tomcat 或nginx 服务器的 首页 ,添加  login.jsp
      

  3.   

    需要使用HandlerInterceptor接口的实现类或者使用其他的框架例如shiro框架
    具体配置你可以自己搜下
      

  4.   


    1. web.xml 中
    <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    2.实际环境中 有可以服务器重定向
      

  5.   

    SecurityConfiguration 你看下这个里面有没有
      

  6.   

    Toncat 内置的index.jsp页面就是你所看到的
      

  7.   

    web.xml的过滤器
    springmvc的拦截器都能做到
      

  8.   

    web.xml 中加入<welcome-file-list>
            <welcome-file>login.do</welcome-file>
        </welcome-file-list>