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

今天在整合SSM框架的时候,出现了这个错误,就记录下来,毕竟菜鸟一只,勿喷,谢谢。

applicationContext.xml文件中,在配置sqlSessionFactory和在配置事务的时候,有<property name="dataSource" ref="dataSource" />,如果你写成了<property name="dataSource" value="dataSource" />,就会报错。

posted @ 2017-06-23 16:26  Parma_fraiol  阅读(723)  评论(0编辑  收藏  举报