【Java】Spring持久層報錯:no matching editors or conversion strategy found

一、問題

最近在搭spring的批量框架,報錯頻繁,算是一趟趟坑之旅吧;

Cannot convert value of type 'java.lang.String' to 
required type 'javax.sql.DataSource' for property 'dataSource': 
no matching editors or conversion strategy found

二、解決

在這裏插入圖片描述

原因就是在持久層的xml配置裏,將【ref】寫錯成了【value】;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章