多数据源支持类注解(允许继承父类的注解)

This commit is contained in:
RuoYi
2019-07-26 20:19:47 +08:00
parent 9e2c685870
commit 71ff337ee0
2 changed files with 28 additions and 7 deletions

View File

@ -1,6 +1,8 @@
package com.ruoyi.common.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@ -11,8 +13,10 @@ import com.ruoyi.common.enums.DataSourceType;
*
* @author ruoyi
*/
@Target(ElementType.METHOD)
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource
{
/**