package ameba.db.annotation;

/**
 * Created by sulijuan on 15/4/7.
 */
public @interface DataSource {
}

package ameba.db.annotation;

import javax.validation.constraints.NotNull;
import java.lang.annotation.*;

/**
 * change default data source name
 *
 * @author icode
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
public @interface DataSource {
    @NotNull String value();
}
添加model上标记@DataSource注解设置默认数据源