0
我添加到我的XML未來豆:規劃環境地政司使用功能
<bean id="PracticeFactory" class="WordsLearning.PracticeFactory">
<constructor-arg value="#{teacher.getPracticeType()}"/>
<constructor-arg value="#{teacher.getAboutType()}"/>
</bean>
而現在,當我運行的應用程序是在週期:
INFO: Refreshing org[email protected]77a9aacd: startup date [Tue Apr 09 20:35:47 EEST 2013]; root of context hierarchy
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [EntityOperatorBean.xml]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'stopTimer': replacing [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.s[email protected]b4599c9: defining beans [entityOperator,word,timer,English-Russian,teacher,steady,terse,saver,Keyboard input,Vival trusted,PracticeFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,org.springframework.aop.aspectj.AspectJPointcutAdvisor#2,startTimer,stopTimer]; root of factory hierarchy
апр 09, 2013 8:35:47 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org[email protected]1c038a03: startup date [Tue Apr 09 20:35:47 EEST 2013]; root of context hierarchy
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [EntityOperatorBean.xml]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'stopTimer': replacing [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.s[email protected]24fbe4: defining beans [entityOperator,word,timer,English-Russian,teacher,steady,terse,saver,Keyboard input,Vival trusted,PracticeFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,org.springframework.aop.aspectj.AspectJPointcutAdvisor#2,startTimer,stopTimer]; root of factory hierarchy
апр 09, 2013 8:35:47 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org[email protected]5b3a6eda: startup date [Tue Apr 09 20:35:47 EEST 2013]; root of context hierarchy
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [EntityOperatorBean.xml]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'stopTimer': replacing [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.s[email protected]1b9156ad: defining beans [entityOperator,word,timer,English-Russian,teacher,steady,terse,saver,Keyboard input,Vival trusted,PracticeFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,org.springframework.aop.aspectj.AspectJPointcutAdvisor#2,startTimer,stopTimer]; root of factory hierarchy
апр 09, 2013 8:35:47 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org[email protected]18c0364a: startup date [Tue Apr 09 20:35:47 EEST 2013]; root of context hierarchy
апр 09, 2013 8:35:47 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [EntityOperatorBean.xml]
沒有這個bean它的工作原理是正確的。
此具有相同的結果:<豆ID = 「PracticeFactory」 類= 「WordsLearning.PracticeFactory」> <屬性名= 「實踐」 值= 「#{teacher.practiceType}」/> 老師 - 另一個豆。 – 2013-04-09 18:01:11