• org.thymeleaf.exceptions.TemplateInputException: Error resolving template [cart/getCurrentUserCartItem], template might not exist or might not be accessible by any of the configured Template Resolvers


    feign.FeignException$InternalServerError:template might not exist or might not be ac... (5344 bytes) Error resolving template template might not exist or might not be accessible by any of the configured Template Resolvers

    翻译过来就是:假装异常$内化服务器错误:模板可能不存在或者可能不存在。。。(5344字节)》。。。。。。。无法解析。。。。。。。

    这个错误是发生在使用feign远程调用其他服务出现的问题,因为我debug了,发现远程的方法并没有写错,都有返回值,可是方法走完就出错,纠结了很久,后来发现是漏了一个很关键的注解@ResponseBody 因为远程返回的都是json,我之前写的类都是加了RestController,这个类因为是使用thymeleaf模板,所以直接返回controller,以至于漏了@ResponseBody,直接返回来了集合数据,所以模板无法解析,以后还是要注意这些小问题了,不让真的很浪费时间,哎。。。。搞了半个多小时,现在已经一点了,明天六点还要去考试。。。。

  • 相关阅读:
    [学习笔记]康托展开
    [模板]平衡树
    [题解]涂色
    [学习笔记]Lucas定理
    欧拉定理及其证明
    一些杂题(排列组合
    swift 动画合集
    UIDynamicAnimator UIKit动力学
    swift 当协议遇见了泛型
    Swift 协议
  • 原文地址:https://www.cnblogs.com/exce-ben/p/13413065.html
Copyright © 2020-2023  润新知