参考了网上很多帖子, 按照上面的方法做了,
1,添加了依赖
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-oauth-webflow</artifactId>
<version>${cas.version}</version>
</dependency>
2, 在WEB-INF\classes\application.properties增加配置
3,.在WEB-INF\classes\services中新增service-auth-all-10000003.json
最后运行的时候报错 , 感觉跟依赖有关,请大侠指导,我的qq:545339823, 方便向大侠请教。
Caused by: Error creating bean with name 'casOAuthWebflowConfiguration': Unsatisfied dependency expressed through field 'oauth20AuthenticationServiceSelectionStrategy';
No qualifying bean of type 'org.apereo.cas.authentication.AuthenticationServiceSelectionStrategy' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=oauth20AuthenticationRequestServiceSelectionStrategy)}