随笔分类 - Spring
摘要:基于SpringBoot版本如下: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> <r
阅读全文
摘要:标准bean生命周期 Bean工厂实现应该尽可能支持标准Bean生命周期接口。整套初始化方法及其标准顺序如下: BeanNameAware.setBeanName, BeanClassLoaderAware.setBeanClassLoader, BeanFactoryAware.setBeanFa
阅读全文
摘要:我用的SpringBoot版本 parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> <rela
阅读全文
摘要:构建版本: 5.2.x 通过git拉取的方式 本地环境构建 获取代码 从github或者gitee将代码拉取下来 idea打开项目 打开gradle-wrapper.properties文件 查看gradle版本 distributionUrl=https\://services.gradle.or
阅读全文
摘要:在Spring-Framework下新建Module 工程结构 依赖 spring-test-fy.gradle需要添加spring-context的依赖 可参考 spring-test.gradle 代码 Teacher package com.fy.test.model; public clas
阅读全文