You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* Copyright (C), 2015-2019
|
|
|
|
|
* Author: HJL
|
|
|
|
|
* Date: 2019/6/4 15:51
|
|
|
|
|
* Description: 定义DataSource的注解
|
|
|
|
|
*/
|
|
|
|
|
package com.emr.util;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Documented;
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
|
|
|
|
//RetentionPolicy.RUNTIME注解不仅被保存到class文件中,jvm加载class文件之后,仍然存在
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
|
@Target({ElementType.METHOD, ElementType.TYPE})
|
|
|
|
|
@Documented
|
|
|
|
|
public @interface DataSourceChange {
|
|
|
|
|
String dataSource() default "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|