![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring笔记
漠北银虎
这个作者很懒,什么都没留下…
展开
-
Spring高级进阶:SpringBoot自动化配置(autoconfigure)常见注解之@ConditionalOnProperty
一、含义从注解命名上可以看出这个注解叫条件注解,就是说只有当满足一定条件时才会进行自动装配。二、源码//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package org.springframework.boot.autoconfigure.condition;import java.lang.annotation.Documented原创 2020-09-12 20:44:25 · 1186 阅读 · 0 评论 -
Spring高级进阶:SpringBoot自动化配置(autoconfigure)常见注解之@ConditionalOnClass
一、含义从注解命名上可以看出这个注解叫条件类,就是说只有当类满足时才会进行自动装配。二、源码//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package org.springframework.boot.autoconfigure.condition;import java.lang.annotation.Documented;im原创 2020-09-12 21:08:18 · 1698 阅读 · 0 评论