org.thymeleaf.spring4.processor.attr.SpringHrefAttrProcessor
在我的本地环境中,协议是http,thymeleaf模板可以正常向后端发送请求,但在生产环境中使用https时,它会抛出如下的异常,报错如下。请问这是什么原因啊?
2018-05-24 11:10:37.638 ERROR 1 --- [ XNIO-2 task-18] org.thymeleaf.TemplateEngine : [THYMELEAF][XNIO-2 task-18] Exception processing template "operationevent/errorgoodswithcode": Error during execution of processor 'org.thymeleaf.spring4.processor.attr.SpringHrefAttrProcessor' (layout/layout:12)
2018-05-24 11:10:37.638 DEBUG 1 --- [ XNIO-2 task-18] fgClientTenantDiscriminatorWithWebTenant : resetTenant
2018-05-24 11:10:37.639 ERROR 1 --- [ XNIO-2 task-18] io.undertow.request : UT005023: Exception handling request to /operationevents/logs/5b03b243ca5d47000118c282/error/goods/https%3A%2F%2Fkywy.m4g.co%2F3N6SIVL1
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'org.thymeleaf.spring4.processor.attr.Spring HrefAttrProcessor' (layout/layout:12)
operationevent/errorgoodswithcode.html 如下:
<table id="errorGoodsTable" dt:table="true"
dt:url="@{/operationevents/logs/__${eventId}__/error/goods/list/__${code}__}"
dt:filterable="false"
dt:pageable="false">
<thead>
<tr>
<th dt:property="codeHyperLink" th:text="#{event.log.error.goods.code}" dt:sortable="false" dt:renderFunction="toLink">Code</th>
<th dt:property="causeBy" th:text="#{event.log.error.goods.causeKey}" dt:sortable="false">Cause By</th>
</tr>
</thead>
</table>
后台代码:
@RequestMapping("/operationevents")
public class OperationEventController{
@RequestMapping(value = "/logs/{id}/error/goods/list/{code:.+}", method = RequestMethod.GET)
public @ResponseBody DatatablesResponse<GoodDto> getErrorGoods(//
@PathVariable("id") String eventId, //
@PathVariable("code") String code, //
@DatatablesParams DatatablesCriterias criterias//
) {
...
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论