手记

Java之品优购课程讲义

运营商系统登录与安全控制
2.1 需求分析
完成运营商登陆功能

2.1 登陆功能的实现
2.1.1 配置文件
(1)修改 pinyougou-manager-web 的 pom.xml ,添加依赖

```

org.springframework.securityspring-security-weborg.springframework.securityspring-security-config

```(2)修改 web.xml```

contextConfigLocationclasspath:spring/spring-security.xml

``````

org.springframework.web.context.ContextLoaderListenerspringSecurityFilterChainorg.springframework.web.filter.DelegatingFilterProxyspringSecurityFilterChain/*

```(3)pinyougou-manager-web 的 spring 目录下添加配置文件 spring-security.xml

```

```

配置说明:always-use-default-target:指定了是否在身份验证通过后总是跳转到 default-target-url  属性指定的 URL。如果你在系统中使用了框架页,需要设置框架页的策略为 SAMEORIGIN

2.1.1 登录页面修 改 pinyougou-manager-web 的 login.html

>>  拖动滑块验证登  录

0人推荐
随时随地看视频
慕课网APP