cc.shacocloud.mirage.web.bind.annotation.RestController Maven / Gradle / Ivy
package cc.shacocloud.mirage.web.bind.annotation;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Controller;
import java.lang.annotation.*;
/**
* RestApi的控制器,{@link Controller}与{@link ResponseBody}的结合体
*
* @see Controller
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Controller
@ResponseBody
public @interface RestController {
/**
* 被标识的处理器名称
*/
@AliasFor(annotation = Controller.class)
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy