摘要:
/** 事物开启步骤:* 1.导入包:spring-tx。* 2.确定目标对象:哪些方法要加事物* 3.确定加强方式 DataSourceTransactionManager* 4.开始织入,aop。**** 编程式事务控制三大对象 PlatformTransactionManager Transa 阅读全文
摘要:
/** 原始注解:用途,自己编写的类注入容器使用* @Component* @Controller* @Service* @Repository* 以上4个功能基本一样,类似加入<bean id="userDao" class="cn.UserImpl"></bean>** @Autowired:自 阅读全文