Add Contributor

This commit is contained in:
oppofind 2020-03-25 18:57:43 +08:00
parent 2fc4d27d6e
commit 30b1bb7ce1
4 changed files with 4 additions and 2 deletions

View File

@ -179,6 +179,7 @@ Thanks to the following people who have submitted major pull requests:
- [@zuonidelaowang](https://github.com/zuonidelaowang) - [@zuonidelaowang](https://github.com/zuonidelaowang)
- [@su-qiu](https://github.com/su-qiu) - [@su-qiu](https://github.com/su-qiu)
- [@qinkangdeid](https://github.com/qinkangdeid) - [@qinkangdeid](https://github.com/qinkangdeid)
- [@br7roy](https://github.com/br7roy)
## Other reference ## Other reference
- [Smart-doc manual](https://github.com/shalousun/smart-doc/wiki) - [Smart-doc manual](https://github.com/shalousun/smart-doc/wiki)

View File

@ -162,6 +162,7 @@ mvn clean install -Dmaven.test.skip=true
- [@zuonidelaowang](https://github.com/zuonidelaowang) - [@zuonidelaowang](https://github.com/zuonidelaowang)
- [@su-qiu](https://github.com/su-qiu) - [@su-qiu](https://github.com/su-qiu)
- [@qinkangdeid](https://github.com/qinkangdeid) - [@qinkangdeid](https://github.com/qinkangdeid)
- [@br7roy](https://github.com/br7roy)
## Other reference ## Other reference
- [smart-doc功能使用介绍](https://my.oschina.net/u/1760791/blog/2250962) - [smart-doc功能使用介绍](https://my.oschina.net/u/1760791/blog/2250962)
- [smart-doc官方wiki](https://gitee.com/sunyurepository/smart-doc/wikis/Home?sort_id=1652800) - [smart-doc官方wiki](https://gitee.com/sunyurepository/smart-doc/wikis/Home?sort_id=1652800)

View File

@ -171,7 +171,7 @@ public class JsonBuildHelper {
} }
List<JavaAnnotation> annotations = field.getAnnotations(); List<JavaAnnotation> annotations = field.getAnnotations();
for (JavaAnnotation annotation : annotations) { for (JavaAnnotation annotation : annotations) {
String annotationName = annotation.getType().getSimpleName(); String annotationName = annotation.getType().getName();
if (DocAnnotationConstants.SHORT_JSON_IGNORE.equals(annotationName) && isResp) { if (DocAnnotationConstants.SHORT_JSON_IGNORE.equals(annotationName) && isResp) {
continue out; continue out;
} else if (DocAnnotationConstants.SHORT_JSON_FIELD.equals(annotationName) && isResp) { } else if (DocAnnotationConstants.SHORT_JSON_FIELD.equals(annotationName) && isResp) {

View File

@ -226,7 +226,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate {
List<JavaAnnotation> annotations = parameter.getAnnotations(); List<JavaAnnotation> annotations = parameter.getAnnotations();
boolean paramAdded = false; boolean paramAdded = false;
for (JavaAnnotation annotation : annotations) { for (JavaAnnotation annotation : annotations) {
String annotationName = annotation.getType().getSimpleName(); String annotationName = JavaClassUtil.getAnnotationSimpleName(annotation.getType().getName());
String fullName = annotation.getType().getSimpleName(); String fullName = annotation.getType().getSimpleName();
if (!springMvcRequestAnnotations.contains(fullName) || paramAdded) { if (!springMvcRequestAnnotations.contains(fullName) || paramAdded) {
continue; continue;