测试加载外部jar读取类信息
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
@@ -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 "";
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user