`
gstarwd
  • 浏览: 1527012 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

'dataSource': no matching editors or conversion strategy found

阅读更多

the datasource property is looking for a datasource and you've passed it a String (because you used value=). You need to pass it the reference to your bean instead:

Code:
<bean id="mySessionFactory" class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
<property name="dataSource" ref="myDataSource"


>
</property>
<property name="mappingResources">
<list>
<value>/springapp/web/user.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>hibernate.dialect=org.hibernate.dialect.MyS QLDialect</value>
</property>
</bean>
<!-- / message --> <!-- controls -->

Reply With Quote

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics