![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
Anur
这个作者很懒,什么都没留下…
展开
-
定义一个Configuration Processor读取spring配置!
1、引入maven依赖 <!-- configuration-processor --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-c...原创 2018-03-20 10:21:03 · 4389 阅读 · 2 评论 -
Spring AOP概念Aspect、Advice、JoinPoint、JoinCut与Execution
基本知识其实, 接触了这么久的 AOP, 我感觉, AOP 给人难以理解的一个关键点是它的概念比较多, 而且坑爹的是, 这些概念经过了中文翻译后, 变得面目全非, 相同的一个术语, 在不同的翻译下, 含义总有着各种莫名其妙的差别. 鉴于此, 我在本章的开头, 着重为为大家介绍一个 Spring AOP 的各项术语的基本含义. 为了术语传达的准确性, 我在接下来的叙述中, 能使用英文术语的地方,...转载 2018-04-03 09:39:33 · 15198 阅读 · 1 评论 -
Spring Boot / Spring Cloud 项目中获取本项目端口号
import org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent;import org.springframework.context.ApplicationListener;import org.springframework.context.annotation.Configu...原创 2018-05-08 11:11:44 · 9554 阅读 · 2 评论