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

com.anwen.mongo.annotation.datasource.MongoDs Maven / Gradle / Ivy

There is a newer version: 2.1.5
Show newest version
package com.anwen.mongo.annotation.datasource;

import java.lang.annotation.*;

/**
 * 多数据源注解
 *
 * @author JiaChaoYang
 **/
@Target({ElementType.METHOD,ElementType.TYPE})
//运行时注解
@Retention(RetentionPolicy.RUNTIME)
//表明这个注解应该被 javadoc工具记录
//生成文档
@Documented
public @interface MongoDs {

    /**
     * 数据源名称
     * @author JiaChaoYang
     * @date 2024/4/5 1:20
    */
    String value();

    /**
     * 数据源处理类,需要实现{@link com.anwen.mongo.handlers.DataSourceHandler}接口
     * @author JiaChaoYang
     * @date 2024/4/5 1:20
    */
    Class dsHandler() default Void.class;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy