field.getAnnotations()能取到,而field.getAnnotation(Required.class)却不能取到不知道为什么会出现这种现象,哪位大神可以帮忙分析一下吗
你定义的注解有指定使用场景啥的么
https://blog.csdn.net/andyzhu_2005/article/details/81355399