自定义注解实现对get请求url中的参数,使用实体类接收

这个类本来时属于springdoc中的,我单独拿了出了,不用导入过多的依赖。

package com.zhy.talent.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.PARAMETER, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyParameterObject {
}