com.envision.annotation.MarsApiController Maven / Gradle / Ivy
package com.envision.annotation;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* MarsApiController注解
* 这个注解是集合了RestController和RequestMapping两个注解的功能
* value的值为RequestMapping的value
*
* @author qiweishi
* @date 2018/11/13
* @see RestController
* @see RequestMapping
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@RestController
@RequestMapping(produces = "application/json;charset=UTF-8")
public @interface MarsApiController {
@AliasFor(annotation = RequestMapping.class, attribute = "value")
String[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy