com.blade.mvc.annotation.Path Maven / Gradle / Ivy
package com.blade.mvc.annotation;
import com.blade.ioc.annotation.Bean;
import java.lang.annotation.*;
/**
* Route class notes, identifying whether a class is routed
*
* @author biezhi
* @since 1.6.6
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Bean
public @interface Path {
/**
* @return namespace
*/
String value() default "/";
/**
* @return route suffix
*/
String suffix() default "";
/**
* @return is restful api
*/
boolean restful() default false;
/**
* @return path description
*/
String description() default "";
}