optimized code

This commit is contained in:
oppofind 2019-09-19 11:00:48 +08:00
parent 58407be58c
commit c0836d514f
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,18 @@
package com.power.doc.constants;
/**
* java注解
* @author yu 2019/9/19.
*/
public class AnnotationConstants {
public static final String SHORT_CONTROLLER = "Controller";
public static final String SHORT_REST_CONTROLLER = "RestController";
public static final String SHORT_JSON_IGNORE= "Ignore";
public static final String SHORT_JSON_PROPERTY = "JsonProperty";
public static final String SHORT_JSON_FIELD = "JSONField";
}

View File

@ -15,8 +15,24 @@ public class GlobalConstants {
*/
public static final String REST_CONTROLLER_FULLY = "org.springframework.web.bind.annotation.RestController";
public static final String GET_MAPPING_FULLY = "org.springframework.web.bind.annotation.GetMapping";
public static final String POST_MAPPING_FULLY = "org.springframework.web.bind.annotation.PostMapping";
public static final String PUT_MAPPING_FULLY = "org.springframework.web.bind.annotation.PutMapping";
public static final String DELETE_MAPPING_FULLY = "org.springframework.web.bind.annotation.DeleteMapping";
public static final String REQUEST_MAPPING_FULLY = "org.springframework.web.bind.annotation.RequestMapping";
public static final String REQUEST_BODY_FULLY = "org.springframework.web.bind.annotation.RequestBody";
public static final String MODE_AND_VIEW_FULLY = "org.springframework.web.servlet.ModelAndView";
/**
* java object类名
*/
public static final String JAVA_OBJECT = "java.lang.Object";
public static final String JAVA_OBJECT_FULLY = "java.lang.Object";
}