c3p0 配置问题。

当我把 user 改成 usename 会报这个错误,觉得很奇怪(name="" )名字不可以随便填吗?还有当我改变jdcbUrl的名字也会出现类似错误,如果名字如下图,就没有报错,可以执行,是c3p0规定了他们的名字吗?

Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dao.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'username' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property 'username' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

http://img.mukewang.com/579342d90001c0ed05870114.jpg

Nomo_Air
浏览 1514回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java