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//
  ) {
    ...
  }

}
阅读 2.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题