![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
注解
岳利-随笔
Java python go js wechat oracle mysql redis mongodb
展开
-
策略模式-springboot使用Demo
1.生命一个注解 用于标记策略类 import java.lang.annotation.*; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface HandlerReportSubjectType { /** * 策略类型 * @return */ int value(); } 2.定义策略接口:原创 2020-06-08 16:34:17 · 348 阅读 · 0 评论 -
spring注解
目录 一、定义 二、作用域 三、解析方式 四、元注解 五、内置注解 5.1@Override 5.2 @Deprecated 5.3 @SuppressWarnings 六、常用注解 6.1 @SpringBootApplication 6.2 @Controller 6.3 @RequestMapping、GetMapping、PostMapping 6.3.1...原创 2019-09-12 17:57:35 · 431 阅读 · 0 评论