@Target(value={TYPE,METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @Documented @Qualifier public @interface MongoClientName
application.properties:
quarkus.mongodb.cluster1.connection-string=mongodb://localhost:27018Then to inject the proper
MongoClient, you would need to use MongoClientName like so:
@Inject
@MongoClientName("cluster1")
MongoClient client;
public abstract String value
Copyright © 2021 JBoss by Red Hat. All rights reserved.