1、pom.xml添加cas-server-support-rest依赖
<!--添加cas-server-support-rest依赖-->
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-rest</artifactId>
<version>${cas.version}</version>
</dependency>
2、application.properties,新增cas.serviceRegistry.initFromJson配置
#注册services中的json校验
cas.serviceRegistry.initFromJson=true
3、获取TGT
http://localhost:8080/cas/v1/tickets
4、获取ST
post请求action中地址,service为访问的url
5、浏览器请求子系统接口
http://127.0.0.1:8081/test?ticket=ST-5-8Fdt0aKziKpWU9LmWeuzedQ7m5wLAPTOP-IAVFJSM2