on-internet
← Community

c-namespace and type conversion

Stack Overflow ·

I have a class with a constructor with 4 integer arguments. It is configured in Spring XML like so: <bean id="mySearchService" class="app.service.MySearchService" c:maxConnectionsPerHost="${maxConnectionsPerHost}" c:maxTotalConnections="${maxTotalConnections}" c:connectionTimeout="${connectionTimeout}" c:soTimeout="${soTimeout}" /> My properties file has: maxConnectionsPerHost=50 maxTotalConnections=50 connectionTimeout=500 soTimeout=100 But I get the following error: Error creating bean with name 'mySearchService' defined in class path resource [applicationContext.xml]: Unsatisfied dependency

Comments

Sign in or sign up to comment and upvote.

No comments yet.