com.kasinf.framework.rest.web.controller.SearchableController Maven / Gradle / Ivy
package com.kasinf.framework.rest.web.controller;
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;
/**
* @author lkhsh
* 自定义controller注解
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@RestController
@RequestMapping
public @interface SearchableController {
@AliasFor(annotation = RequestMapping.class)
String value() default "";
}