diff --git a/pom.xml b/pom.xml index 4f4c4b4..c26fc1e 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,13 @@ ${gson.version} + + + org.springframework + spring-context + ${spring.version} + + org.springframework.data diff --git a/src/main/java/com/loafle/overflow/module/core/annotation/RPCService.java b/src/main/java/com/loafle/overflow/module/core/annotation/RPCService.java new file mode 100644 index 0000000..82842f1 --- /dev/null +++ b/src/main/java/com/loafle/overflow/module/core/annotation/RPCService.java @@ -0,0 +1,17 @@ +package com.loafle.overflow.module.core.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import org.springframework.core.annotation.AliasFor; +import org.springframework.stereotype.Component; + +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +@Component +public @interface RPCService { + @AliasFor(annotation = Component.class) + String value() default ""; +}