MyException - 我的异常网
当前位置:我的异常网» J2EE » org.springframework.beans.factory.BeanDefinition

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name(2)

www.MyException.Cn  网友分享于:2013-12-27  浏览:395次

org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:262)
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Unknown Source)


------解决方案--------------------
<property name="transactionAttributes"> </property> 
<property name="transactionAttributes"> 
这里是怎么回事?是不是多写了一点呀?你再看看.是不是因为多谢了上边那句引起的。
------解决方案--------------------
[code=Xml]
<property name="transactionAttributes"> </property>
<property name="transactionAttributes">
<props>
<prop key="insert*">PROPAGATION_REQUIRED </prop>
<prop key="update*">PROPAGATION_REQUIRED </prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly </prop>
</props>
</property>
[/code]

明显的多谢了一个:
[code=Xml]
<property name="transactionAttributes"> </property>
[/code]
就是这个没有赋值的同名属性导致了出错,你把它删掉就好了

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有