level 1
默默的eva
楼主
spring新手求助!
<bean id="way" class="com.test.impl.Way">
<constructor-arg value="2" />
</bean>
最简单的配置了一个bean,
Way里有一个构造方法
public Way(int num) {
this.num = num;
}
然后总是报下面错:
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@67b6d4ae: defining beans [way]; root of factory hierarchy
Exception in thread "main" java.lang.IllegalArgumentException
2015年01月23日 02点01分
1
<bean id="way" class="com.test.impl.Way">
<constructor-arg value="2" />
</bean>
最简单的配置了一个bean,
Way里有一个构造方法
public Way(int num) {
this.num = num;
}
然后总是报下面错:
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@67b6d4ae: defining beans [way]; root of factory hierarchy
Exception in thread "main" java.lang.IllegalArgumentException