我可以从 thymeleaf 读取 json 服务中存在的值并将其打印在登录 Web 视图中?
这是我的 json 服务:
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "http://furetto:8080/furetto-login",
"name" : "furetto",
"theme" : "furetto",
"id" : 1000001,
"description" : "I want print this description in the webview login",
"attributeReleasePolicy": {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy",
"principalAttributesRepository" : {
"@class" :
"org.apereo.cas.authentication.principal.DefaultPrincipalAttributesRepository",
"attributeRepositoryIds": ["java.util.HashSet", [ "*" ]]
}
}
}
在我的登录页面http://cas.com:9090/apereoCAS/login?service=http://furetto:8080/furetto-login我想打印json服务中存在的键“description”的值。这是可能的? 谢谢大家
没什么,我不知道有什么解决办法。
示例:
<div>
<img th:if="${registeredService.logo}" th:src="${registeredService.logo}"/>
<div>
<h5><i class="mdi mdi-web"></i>[[${registeredService.name}]]</h5>
<p th:text="${registeredService.description}">Registered Service Description</p>
</div>
</div>