![](https://img-blog.csdnimg.cn/20190927151053287.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring/Spring Cloud
文章平均质量分 80
Spring/Spring Cloud
c_hmnzs
这个作者很懒,什么都没留下…
展开
-
理解spring-boot-starter-parent
它表示当前pom文件从spring-boot-starter-parent继承下来,在spring-boot-starter-parent中提供了很多默认的配置,这些配置可以大大简化我们的开发。转载 2023-04-13 15:17:42 · 1655 阅读 · 0 评论 -
自定义注解详细介绍
1 注解的概念 1.1 注解的官方定义 首先看看官方对注解的描述: An annotation is a form of metadata, that can be added to Java source code. Classes, methods, variables, parameters and packages may be annotated. Annotations have no direct effect on the operation of the code they annota转载 2021-12-22 16:34:48 · 256 阅读 · 0 评论 -
springboot 注入,一个接口多个实现,怎么来获取对应实例对象
我的做法: 在每个接口中加一个对应的标识【唯一】,如: @Getter public enum MessageTypeEnum { SEND_MESSAGE_XCX("标识1","xcx"), SEND_MESSAGE_SMS("标识2","sms"), SEND_MESSAGE_WX("标识3","wx"); MessageTypeEnum(String name, String type) { this.name = name; this原创 2020-09-14 11:17:35 · 1220 阅读 · 0 评论