错误是说我的配置文件中没有对构造函数进行配置,所以找不到构造函数,在配置文件application.xml中加入如下句子:
<bean id="personDao" class="com.liuyang.JDbCTemplate.PersonDao">
<constructor-arg index="0" ref="dataSource"></constructor-arg>
</bean>
绿字部分是重点!!!
© 著作权归作者所有
举报
相关热门文章
发表评论
0/200
错误是说我的配置文件中没有对构造函数进行配置,所以找不到构造函数,在配置文件application.xml中加入如下句子:
<bean id="personDao" class="com.liuyang.JDbCTemplate.PersonDao">
<constructor-arg index="0" ref="dataSource"></constructor-arg>
</bean>
绿字部分是重点!!!
© 著作权归作者所有
发表评论