1. 程式人生 > >No converter found capable of converting from type [java.lang.String] to type

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

2018-08-13 14:01:51.885 ERROR 10244 --- [nio-8082-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : 
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing 
failed; nested exception is org.springframework.core.convert.ConversionFailedException: 
Failed to convert from type [java.lang.Object[]] to type [com.flx.phlxtimescaledb.entity.Bean] for value
 '{CUD, 5.7, 8.9, 35, 5.0, 9.5, 6.90, 65.71%, 0}'; nested exception is 
org.springframework.core.convert.ConverterNotFoundException: No converter found 
capable of converting from type [java.lang.String] to type [com.flx.phlxtimescaledb.entity.Bean]] with root cause

 這個SQL語句,大家湊合看吧!

是因為 我在這裡只繼承了 一個bean ,我的SQL語句裡面是多表聯查

如果出現下面這個錯誤:

是因為,我在SQL語句裡面的欄位,與資料庫表裡的欄位名稱沒有對應上導致的。