java - 在百里香迭代中使用标签
问题描述
解决方案
我猜你需要使用 th:href 标签:
<div class="col-12 col-md-6" th:each="ApplicationVO: ${ApplicationList}">
<a class="service-link shadow" title="MMIS" th:href="@{${ApplicationVO.applicationLink}}" target="_blank"><span th:text="${ApplicationVO.applicationName} +'»'"></span></a>
</div>
我认为您也可以像这样删除 span 标签:
<div class="col-12 col-md-6" th:each="ApplicationVO: ${ApplicationList}">
<a class="service-link shadow" title="MMIS" th:text="${ApplicationVO.applicationName} +'»'" th:href="@{${ApplicationVO.applicationLink}}" target="_blank"></a>
</div>
推荐阅读
- c# - AppInsights 的心跳功能未出现在 Azure 门户中
- python - 跨多个 EC2 实例自动运行相同 python 脚本的简单方法?
- java - setValue 后 PDFBox 不一致的 PDTextField 自动调整大小行为
- php - 将ID分配给变量时尝试在Laravel中获取非对象错误的属性
- python - 如何在后台运行 python 可执行文件?
- terraform - Terraform 是否可以与 AWS 自动缩放组一起使用来部署第一个成员,等待,然后根据需要部署其余成员?
- sql - Google BigQuery 中超出的资源
- javascript - 有没有办法在 HTML 页面中搜索字符串?
- spring - 如何在不使用 @Scheduled() 注释的情况下在 Spring Boot 中安排 cron 作业
- java - super.paintComponent() 没有按预期工作