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

  • 相关阅读:
    SpringData JPA接口总结
    使用allatori混淆代码
    Oracle查看表空间大小
    Mac常用命令
    Web.config或App.config下section
    ansi、unicode、UCS、UTF等概念(转)
    强名称程序集与GAC
    指针和引用的区别(转)
    .NET程序员应该知道些什么(转)
    dispose,null和close的区别
  • 原文地址:https://www.cnblogs.com/exce-ben/p/13413065.html
Copyright © 2011-2022 走看看