zoukankan      html  css  js  c++  java
  • 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,直接返回来了集合数据,所以模板无法解析,以后还是要注意这些小问题了,不让真的很浪费时间,哎。。。。搞了半个多小时,现在已经一点了,明天六点还要去考试。。。。

  • 相关阅读:
    1025 反转链表
    Vue--修饰符
    Vue--watch
    Vue--防止页面闪烁
    Vue--过滤器
    Vue--自定义指令
    Vue--生命周期
    vue--父子组件传递数据
    vue--父子组件调用彼此的方法
    Celery--beat
  • 原文地址:https://www.cnblogs.com/exce-ben/p/13413065.html
Copyright © 2011-2022 走看看