當我把 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?
添加回答
舉報
0/150
提交
取消