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

com.github.dadiyang.httpinvoker.annotation.HttpApi Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.github.dadiyang.httpinvoker.annotation;

import java.lang.annotation.*;

/**
 * Indicate the interface is a http api interface.
 * 

* To simplified the urls, use {@link #prefix} attribute to set the prefix of url in @HttpReq. ie. http://localhost:8080 *

* Those interfaces annotated by this annotation will be scanned by {@link com.github.dadiyang.httpinvoker.spring.HttpApiConfigurer} * so that users can autowire the interface. *

* * @author huangxuyang */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented public @interface HttpApi { /** * when {@link #prefix} is empty, this value will be used * * @return the same as prefix */ String value() default ""; /** * @return the prefix */ String prefix() default ""; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy