10 2022 档案

摘要:Spring事务 Spring事务简介 事务作用:在数据层保障一系列的数据库操作同成功同失败 Spring事务作用:在数据层或业务层保障一系列的数据库操作同成功同失败 public interface PlatformTransactionManager( void commit(Transacti 阅读全文
posted @ 2022-10-16 22:16 LegendR 阅读(19) 评论(0) 推荐(0) 编辑
摘要:AOP AOP核心概念 AOP(Aspect Oriented Programming)面向切面编程,一种编程范式,指导开发者如何组织程序结构 OOP(Object Oriented Programming)面向对象编程 作用:在不惊动原始设计的基础上为其进行功能增强 Spring理念:无侵入式、无 阅读全文
posted @ 2022-10-12 21:49 LegendR 阅读(32) 评论(0) 推荐(0) 编辑
摘要:Spring整合 整合MyBatis SqlSessionFactoryBean public class MyBatisConfig { @Bean public SqlSessionFactoryBean sqlSessionFactory(DataSource dataSource){ Sql 阅读全文
posted @ 2022-10-08 21:41 LegendR 阅读(15) 评论(0) 推荐(0) 编辑
摘要:spring 注解开发定义bean 使用 @Component定义bean @Component("bookDao") public class BookDaoImpl implements BookDao { } @Component public class BookServiceImpl im 阅读全文
posted @ 2022-10-08 16:56 LegendR 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示