按照博客修改之后
https://www.cnblogs.com/ll409546297/p/10410972.html
application.properties 修改部分
##
# CAS Authentication Credentials
#
cas.authn.accept.users=casuser::Mellon
#http时使用
cas.tgc.secure=false
#开启JSON文件的识别
cas.serviceRegistry.initFromJson=true
增加http
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https|http|imaps)://.*",
"name" : "HTTPS and IMAPS",
"id" : 10000001,
"description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.",
"evaluationOrder" : 10000
}
idea tomca设置
启动访问
登陆成功
注销成功