测试加载外部jar读取类信息

This commit is contained in:
暮光:城中城
2020-10-31 20:47:52 +08:00
parent ccf4196f0e
commit e0289aa247
12 changed files with 477 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package com.zyplayer.doc.annotation;
import java.lang.annotation.*;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DocMethod {
/**
* @return 方法的说明
*/
String value();
/**
* @return 返回结果的说明
*/
String response() default "";
}

View File

@@ -0,0 +1,20 @@
package com.zyplayer.doc.annotation;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(DocParams.class)
public @interface DocParam {
/**
* @return 说明
*/
String value();
/**
* @return 字段名
*/
String name() default "";
}

View File

@@ -0,0 +1,14 @@
package com.zyplayer.doc.annotation;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DocParams {
/**
* @return 多个参数说明
*/
DocParam[] value();
}