注册、登录、退出登录

  • Post author:
  • Post category:其他







运营商系统登录与安全控制










2.1需求分析







完成运营商登陆功能


(1)、登录页面

(2)登录后页面

(3)、点击右上角头像后显示。






2.2登陆功能的实现










2.2.1配置文件







(1)修改


mall


-manager-web的pom.xml ,添加依赖



<!– 身份验证 –>



<


dependency


>



<


groupId


>


org.springframework.security


</


groupId


>



<


artifactId


>


spring-security-


core


</


artifactId


>



</


dependency


>



<


dependency


>



<


groupId


>


org.springframework.security


</


groupId


>



<


artifactId


>


spring-security-web


</


artifactId


>



</


dependency


>



<


dependency


>



<


groupId


>


org.springframework.security


</


groupId


>



<


artifactId


>


spring-security-




config




</


artifactId


>



</


dependency


>



(2)修改web.xml



<


context-param


>



<


param-name


>


contextConfigLocation


</


param-name


>



<


param-value


>


classpath:spring/spring-security.xml


</


param-value


>



</


context-param


>



<


listener


>



<


listener-class


>



org.springframework.web.context.ContextLoaderListener



</


listener-class


>



</


listener


>



<


filter


>



<


filter-name


>


springSecurityFilterChain


</


filter-name


>


<


filter-class


>


org.springframework.web.filter.DelegatingFilterProxy


</


filter-class



版权声明:本文为qq_41436920原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。