0
나는 나의은 dataSource 구성 :초기 크기 BasicDataSource의
<bean id ="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
<property name="url" value="jdbc:mysql:openshifturl"/>
<property name="username" value="username"/>
<property name="password" value="pass"/>
<property name="maxActive" value="10"/>
<property name="initialSize" value="5"/>
</bean>
을 오류를 얻을 :
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [EntityOperatorBean.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'initialSize' of bean class [org.apache.commons.dbcp.BasicDataSource]: Bean property 'initialSize' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
나는 모두가 OK로 될 initialSize가 속성 제거
. 왜이 문제가 생길까요?
어떤 DBCP 버전을 사용하고 있습니까? 'initialSize'가 1.2에 추가되었습니다. –
나는 1.4 버전 –