Advertisement

Java教程:Spring Security系列课程 - 实现CAS单点登录 - 搭建客户端

阅读量:

一. 构建CAS客户端

1. 新建项目

在先前基于Spring Security的工程基础上,我们新增一个module模块,用作CAS Client的开发环境,具体操作示例如下图所示。

图片

2. 引入依赖

接下来需要在该模块对应的pom.xml配置文件中,添加必要的依赖项。

复制代码
   <dependencies>

    
         <dependency>
    
             <groupId>org.springframework.boot</groupId>
    
             <artifactId>spring-boot-starter-security</artifactId>
    
         </dependency>
    
  
    
         <dependency>
    
             <groupId>org.springframework.security</groupId>
    
             <artifactId>spr

全部评论 (0)

还没有任何评论哟~