项目:
href="http://www.cnblogs.com/hongten/archive/2012/03/09/java_spring_jdbc.HTML">http://www.cnblogs.com/hongten/archive/2012/03/09/java_spring_jdbc.HTML
只需修改:
<div >
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http: http: http: http: ="org.apache.commons.dbcp.BasicdataSource" destroy-method="close"> ="org.springframework.jdbc.datasource.DataSourceTransactionManager"> @H_502_91@ ="com.b510.service.impl.PersonServiceBean">
<div >
2012-3-10 14:30:18 org.springframework.context.support.AbstractApplicationContext prepareRefresh 信息: Refreshing org.springframework.context.support.ClasspathXmlApplicationContext@15eb0a9: display name [org.springframework.context.support.ClasspathXmlApplicationContext@15eb0a9]; startup date [Sat Mar 10 14:30:18 CST 2012]; root of context hIErarchy 2012-3-10 14:30:18 org.springframework.beans.factory.xml.XmlBeanDeFinitionReader loadBeanDeFinitions 信息: Loading XML bean deFinitions from path resource [bean.xml] 2012-3-10 14:30:18 org.springframework.context.support.AbstractApplicationContext obtainFreshbeanfactory 信息: Bean factory application context [org.springframework.context.support.ClasspathXmlApplicationContext@15eb0a9]: org.springframework.beans.factory.support.Defaultlistablebeanfactory@1f3aa07 2012-3-10 14:30:18 org.springframework.core.io.support.PropertIEsLoaderSupport loadPropertIEs 信息: Loading propertIEs file from path resource [jdbc.propertIEs] 2012-3-10 14:30:18 org.springframework.beans.factory.support.Defaultlistablebeanfactory preInstantiateSingletons 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.Defaultlistablebeanfactory@1f3aa07: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,txManager,org.springframework.aop.config.internalAutoproxyCreator,transactionpointcut,org.springframework.aop.support.DefaultbeanfactorypointcutAdvisor#0,txAdvice,personService]; root of factory hIErarchy ++++++++得到所有Person 2 TomCat 12 女 3 hongten 21 男 4 liufang 21 女 5 divIDe 20 男 6 Jone 20 女 7 苏东坡 21 男 8 苏东坡 21 男 ****************** 2 TomCat 12 女
总结
以上是内存溢出为你收集整理的spring开发_JDBC *** 作MySQL数据库_使用xml配置事务管理全部内容,希望文章能够帮你解决spring开发_JDBC *** 作MySQL数据库_使用xml配置事务管理所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)