All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blade.mvc.annotation.Path Maven / Gradle / Ivy

There is a newer version: 2.0.15.RELEASE
Show newest version
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 "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy