No converter found capable of converting from type [java.lang.String] to type

柔情只为你懂 2022-05-16 00:24 313阅读 0赞
  1. 2018-08-13 14:01:51.885 ERROR 10244 --- [nio-8082-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] :
  2. Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing
  3. failed; nested exception is org.springframework.core.convert.ConversionFailedException:
  4. Failed to convert from type [java.lang.Object[]] to type [com.flx.phlxtimescaledb.entity.Bean] for value
  5. '{CUD, 5.7, 8.9, 35, 5.0, 9.5, 6.90, 65.71%, 0}'; nested exception is
  6. org.springframework.core.convert.ConverterNotFoundException: No converter found
  7. capable of converting from type [java.lang.String] to type [com.flx.phlxtimescaledb.entity.Bean]] with root cause

70 这个SQL语句,大家凑合看吧!

是因为 我在这里只继承了 一个bean ,我的SQL语句里面是多表联查

70 1

如果出现下面这个错误:

70 2

是因为,我在SQL语句里面的字段,与数据库表里的字段名称没有对应上导致的。

发表评论

表情:
评论列表 (有 0 条评论,313人围观)

还没有评论,来说两句吧...

相关阅读