在網上查看了很多解決辦法,都行不通,后來跟別人運行的通的代碼做對比,發現
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