io.github.flynn.polaris.data.jdbc.anno.EnableMongoDBMultiDataSource Maven / Gradle / Ivy
package io.github.flynn.polaris.data.jdbc.anno;
import io.github.flynn.polaris.data.jdbc.configuration.MongoDBMultiDataSourceConfiguration;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@ImportAutoConfiguration(
value = MongoDBMultiDataSourceConfiguration.class,
exclude = {
MongoAutoConfiguration.class,
MongoDataAutoConfiguration.class
}
)
public @interface EnableMongoDBMultiDataSource {
}