摘要: Spring事务: 什么是事务: 事务逻辑上的一组对数据对操作,组成这些操作的各个逻辑单元,要么一起成功,要么一起失败。 事务特性(4种): 原子性(atomicity):强调事务的不可分割;一致性(consistency):事务的执行前后数据的完整性保持一致;隔离性(isolation):一个事务 阅读全文
posted @ 2019-12-26 13:46 互联网蜜蜂 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 手动加载Spring配置文件有两个类,分别是ClassPathXmlApplication与FileSystemXmlApplicationContext; 两个类的区别: 1.ClassPathXmlApplication的使用方法public void testBean(){ //单配置文件方式 阅读全文
posted @ 2019-12-26 10:20 互联网蜜蜂 阅读(626) 评论(0) 推荐(0) 编辑