-
Spring Boot 自动配置原理
版本 Spring Boot 2.6.0 原理 @SpringBootApplication注解由@SpringBootConfiguration、@Enabl
2021-12-31, Views: 2771 , Topics: Spring Boot 面试
-
Spring、SpringMVC、Spring Boot 中的注解
Spring core @Order AOP @EnableAspectJAutoProxy 依赖注入 @Autowired @Value @Qual
2021-12-30, Views: 2071 , Topics: Spring SpringMVC Spring Boot
-
SpringMVC 请求流程
结合 Spring Boot Spring Boot 2.6.0 流程梳理 容器初始化阶段 IOC容器refresh时加载自动配置类DispatcherSer
-
Spring 中的设计模式
Builder RequestMappingInfo 工厂方法 BeanFactory的getBean 适配器 HandlerAdapter 代理
-
Spring 事务原理
用户配置 @EnableTransactionManagement @ComponentScan("com.example.learn.tx") @Config
-
Spring 事务失效的几种场景
检查异常 代码 未指定rollbackFor @Transactional public void transfer(int from, int to, int
-
Spring 事务
引入依赖 JdbcTemplate、MySQL驱动、HikariCP数据库连接池 <dependency> <groupId>o
-
Spring AOP 原理
版本 spring-aspects-5.3.13 步骤 @EnableAspectJAutoProxy开启AOP功能 @EnableAspectJAutoPr
-
Spring 循环依赖能否用二级缓存解决
结论 不能。 原因 bean创建分为三步:实例化、填充属性、初始化。 循环依赖发生在填充属性阶段,代理对象的创建在初始化完成后的后置处理器回调中。 如果只用二级
-
Spring 循环依赖
原因 ClassA的构造中需要ClassB,ClassB的构造中需要ClassA。 public class ClassA { public Clas
-
Spring 接口类型 getBeanNamesForType 获取实际类型的流程
版本 spring-context 5.3.13 案例 备注:实际TestService接口无需标注@Service注解,即使标注了注解也不会加入到BeanDe
2021-12-21, Views: 3252 , Topics: Spring
-
Spring 组件的注册时机
相关组件 被@Component、@Controller、@Service、@Repository、@Bean标注的组件。 相关后置处理器 主要是配置类后置处理
-
Spring @EventListener 加载流程
注解 /** * @see EventListenerMethodProcessor */ @Target({ElementType.METHOD, Ele
-
Spring 注册内置后置处理器流程
版本 spring-context 5.3.13 注册流程 AnnotationConfigApplicationContext构造函数中完成了Spring内置
-
Spring 依赖注入原理
版本 spring-context 5.2.6.RELEASE 依赖注入 AutowiredAnnotationBeanPostProcessor处理@Auto
-
Spring 创建 IOC 容器步骤
代码 AnnotationConfigApplicationContext applicationContext = new AnnotationConfigA
-
Java Log4j2 高危漏洞复现及解决办法
影响范围 影响< 2.15.0的所有2.x版本。且JDK版本在Oracle JDK 11.0.1、8u191、7u201、6u211及之前的版本。 Git
-
Spring Boot 整合 Log4j2 不起作用
现象 pom文件中引入了log4j2。 <dependency> <groupId>org.springframework.bo
2021-12-12, Views: 3669 , Topics: Spring Boot Log4j2
-
使用 ffmpeg 转换 m4a 为 mp3
说明 需下载ffmpeg,命令行中的路径需修改为ffmpeg保存路径。 单独转换 C:\Software\ffmpeg\bin\ffmpeg.exe -i "a
2021-12-12, Views: 13075 , Topics: ffmpeg
-
IDEA JavaFX Can't build artifact - fx:deploy is not available in this JDK
现象 在IDEA的Project Structure中添加Artifacts,选择JavaFX Application下的From Module...,但在页面