當(dāng)我把 user 改成 usename 會(huì)報(bào)這個(gè)錯(cuò)誤,覺得很奇怪(name="" )名字不可以隨便填嗎?還有當(dāng)我改變jdcbUrl的名字也會(huì)出現(xiàn)類似錯(cuò)誤,如果名字如下圖,就沒有報(bào)錯(cuò),可以執(zhí)行,是c3p0規(guī)定了他們的名字嗎?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?
添加回答
舉報(bào)
0/150
提交
取消