# spring-framework-study **Repository Path**: hero12/spring-framework-study ## Basic Information - **Project Name**: spring-framework-study - **Description**: spring源码学习 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-30 - **Last Updated**: 2025-12-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #笔记 ### 1、Spring版本 5.3.10-SNAPSHOT ### 2、Gradle版本及配置 具体查看gradle/wrapper/gradle-wrapper.properties文件 ```md #distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip #通过地址下载文件,然后在本地路径引用。 distributionUrl=file:/Users/angw/tools/gradle-6.8.3-bin.zip ``` # 带着疑问阅读 (一)基础概念类 - 请解释什么是Spring?Spring的核心优势有哪些? - Spring的核心模块有哪些?各自的作用是什么? - 什么是IOC(控制反转)?Spring中IOC的实现原理是什么? - 什么是DI(依赖注入)?Spring中依赖注入的方式有哪些?请举例说明。 - Spring Bean是什么?Bean的作用域有哪些?不同作用域的区别是什么? (二)核心原理类 - Spring Bean的生命周期是什么?请详细描述从创建到销毁的全过程。 - 什么是AOP(面向切面编程)?AOP的核心概念有哪些(如切面、通知、连接点、切入点等)? - Spring AOP的实现原理是什么?动态代理有哪两种方式?它们的区别是什么? - Spring事务管理的核心机制是什么?事务的传播属性和隔离级别有哪些? - 如何解决Spring中的循环依赖问题?Spring是如何处理的? - Spring中Bean的加载过程是怎样的? (三)应用实践类 - 如何在Spring中配置Bean?有哪些配置方式? - Spring中如何实现属性赋值?@Value注解的使用场景和注意事项是什么? - 如何使用Spring实现AOP?请写一个简单的AOP示例(如日志切面)。 - Spring事务管理的使用方式有哪些?@Transactional注解的使用注意事项是什么? - Spring与MyBatis的整合流程是什么?核心配置有哪些? 三、SpringBoot专项面试真题 (一)基础概念类 - 什么是SpringBoot?SpringBoot的核心优势有哪些? - SpringBoot与Spring的区别是什么?为什么说SpringBoot是“约定优于配置”? - SpringBoot的核心注解是什么?@SpringBootApplication包含哪些注解的功能? - 什么是SpringBoot Starter?常用的Starter有哪些? - SpringBoot的自动配置原理是什么? (二)核心原理类 - SpringBoot自动配置的实现流程是什么?@EnableAutoConfiguration的作用是什么? - SpringBoot的启动流程是什么?请详细描述从main方法执行到容器初始化完成的过程。 - SpringBoot如何自定义自动配置?需要满足哪些条件? - SpringBoot中的配置文件有哪些格式?它们的区别是什么? - SpringBoot如何实现多环境配置?不同环境的配置如何切换? - SpringBoot的嵌入式容器有哪些?如何自定义嵌入式容器的配置? (三)应用实践类 - 如何创建一个SpringBoot项目?有哪些方式? - SpringBoot中如何配置数据库连接?多数据源如何配置? - SpringBoot中如何实现RESTful API?常用的注解有哪些? - SpringBoot如何集成Spring Security实现权限控制? - SpringBoot中如何实现日志管理?常用的日志框架有哪些? - SpringBoot项目如何打包部署?有哪些部署方式? - SpringBoot如何实现定时任务?@Scheduled注解的使用方式是什么? - SpringBoot中如何处理异常?全局异常处理的实现方式是什么? (四)进阶拓展类 - SpringBoot与微服务的关系是什么?如何基于SpringBoot构建微服务项目? - SpringBoot中如何集成Redis?Redis的作用是什么? - SpringBoot Actuator的作用是什么?如何使用Actuator监控项目运行状态? - SpringBoot如何实现热部署? - SpringBoot 2.x与1.x的主要区别有哪些? --- # Spring Framework [![Build Status](https://ci.spring.io/api/v1/teams/spring-framework/pipelines/spring-framework-5.3.x/jobs/build/badge)](https://ci.spring.io/teams/spring-framework/pipelines/spring-framework-5.3.x?groups=Build") [![Revved up by Gradle Enterprise](https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.spring.io/scans?search.rootProjectNames=spring) This is the home of the Spring Framework: the foundation for all [Spring projects](https://spring.io/projects). Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring". Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the [Overview](https://docs.spring.io/spring/docs/current/spring-framework-reference/overview.html#spring-introduction) section as reference for a more complete introduction. ## Code of Conduct This project is governed by the [Spring Code of Conduct](CODE_OF_CONDUCT.adoc). By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io. ## Access to Binaries For access to artifacts or a distribution zip, see the [Spring Framework Artifacts](https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Artifacts) wiki page. ## Documentation The Spring Framework maintains reference documentation ([published](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/) and [source](src/docs/asciidoc)), Github [wiki pages](https://github.com/spring-projects/spring-framework/wiki), and an [API reference](https://docs.spring.io/spring-framework/docs/current/javadoc-api/). There are also [guides and tutorials](https://spring.io/guides) across Spring projects. ## Micro-Benchmarks See the [Micro-Benchmarks](https://github.com/spring-projects/spring-framework/wiki/Micro-Benchmarks) Wiki page. ## Build from Source See the [Build from Source](https://github.com/spring-projects/spring-framework/wiki/Build-from-Source) Wiki page and the [CONTRIBUTING.md](CONTRIBUTING.md) file. ## Continuous Integration Builds Information regarding CI builds can be found in the [Spring Framework Concourse pipeline](ci/README.adoc) documentation. ## Stay in Touch Follow [@SpringCentral](https://twitter.com/springcentral), [@SpringFramework](https://twitter.com/springframework), and its [team members](https://twitter.com/springframework/lists/team/members) on Twitter. In-depth articles can be found at [The Spring Blog](https://spring.io/blog/), and releases are announced via our [news feed](https://spring.io/blog/category/news). ## License The Spring Framework is released under version 2.0 of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).