课程大纲
Spring 框架简介
- Spring 生态系统概述
- 控制反转(IoC)和依赖注入(DI)
- 面向切面编程(AOP)简介
Spring 配置与 Bean 生命周期
- 通过 XML 文件进行配置
- Bean 生命周期与 BeanPostProcessor
- 使用 Mockito 测试 Spring 应用程序
基于注解的配置
- 使用 @Component 和 @Autowired 注解
- 结合 XML 和基于注解的配置
- 使用 @Configuration 和 JavaConfig 进行无 XML 配置
Spring Boot 3.5.5 入门
- Spring Boot 简介与关键概念
- 使用 Spring Initializr 创建 Spring Boot 项目
- 构建并运行第一个 REST 应用程序
面向切面编程(AOP)与事务
- 使用 AspectJ 与 Spring:原则与配置
- 理解 Spring 中的声明式事务
- 使用 XML 和 @Configuration 配置事务
使用 Spring 和 JPA 进行数据持久化
- 配置 JPA 和数据库连接
- 使用 JPA Boot 配置 DAO 和 Repository 层
- 提取配置文件并管理属性
使用 JPA 构建 RESTful 应用程序
- 使用 JPA 创建简单的 CRUD REST API
- 开发带有嵌套 Bean 的 CRUD REST
- Jackson 序列化:@JsonIgnore、处理 Hibernate 代理、防止循环
高级 REST 与数据处理
- 使用 REST DTO 与 MapStruct
- 在 REST 应用程序中处理异常
- JPA 双模型模式
使用 Spring Data JPA 进行 Spring REST
- 通过方法名派生查询
- 使用 Spring Data JPA 进行分页和排序
- 使用 @Query 进行自定义查询
总结与下一步
要求
- 对基本 Java 编程概念的理解
- 具备面向对象编程的经验
- 熟悉构建工具,如 Maven 或 Gradle
受众
- 刚接触 Spring 生态系统的 Java 开发者
- 希望快速构建 RESTful Web 应用程序的软件工程师
- 寻求现代 Spring Boot 和 JPA 动手实践经验的程序员
客户评论 (4)
Detailed information provided on the more advanced topics requested.
Farukh Khan - Tandem Solution
课程 - RabbitMQ with Java and Spring
In this training we’re not only learned for the fundamental technical knowledge of Java spring/technology and most important things we also gaining the worldly knowledge which you have shared with us during the class.
Kelvin Low - Sonova Warsaw Service Center Sp z o o
课程 - Java 8 and Spring
Despite the format used to give this course, which should not be used in any educational context and even more in a professional. The part that was beneficial for me was when we presented several extracts of our project to get hints on where we could do some changes to see if that fixes some issues.
Veronica - NOESIS SOLUTIONS NV
课程 - Spring and Hibernate in Java Applications
I liked that there were many exercises, Re activity and flexibility of the Trainer.