单点登录出现“票根'ST-xxxxxx-cas'不符合目标服务”的错误的解决办法

在网上查看了很多解决办法,都行不通,后来跟别人运行的通的代码做对比,发现

springboot整合cas时少了以下依赖:

 

<dependency>
            <groupId>org.jasig.cas.client</groupId>
            <artifactId>cas-client-integration-tomcat-common</artifactId>
            <version>3.3.3</version>
        </dependency>

我看网上很多例子都没有引入这个依赖,我不知道他们怎么运行的,反正我的就一直报错“票根'ST-xxxxxx-cas'不符合目标服务”,引入这个依赖后就好啦。

在网上查看了很多解决办法,都行不通,后来跟别人写好的代码运行的通做对比,发现少了一个jar包
[Zài wǎngshàng chákànle hěnduō jiějué bànfǎ, dōu xíng bùtōng, hòulái gēn biérén xiě hǎo de dàimǎ yùnxíng de tōng zuò duìbǐ, fāxiàn shǎole yīgè jar bāo]
In view of the many online solutions are not feasible, then write the code to run with others through doing contrast, we found less a jar package
posted @ 2019-11-09 15:40  千堆雪  阅读(5862)  评论(0编辑  收藏  举报