Skip to content
Snippets Groups Projects
Commit ed3ba6d4 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

exclude partition based config bean

parent 93050d8f
No related branches found
No related tags found
1 merge request!401Fix spring context for GC baremetal
Pipeline #190474 passed with warnings
......@@ -18,6 +18,7 @@
package org.opengroup.osdu.partition.provider.gcp;
import org.opengroup.osdu.core.di.GcpPartitionClientFactory;
import org.opengroup.osdu.core.gcp.osm.translate.postgresql.PgTenantOsmDestinationResolver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
......@@ -25,13 +26,16 @@ import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.PropertySource;
@ComponentScan(basePackages = {"org.opengroup.osdu"}, excludeFilters =
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {GcpPartitionClientFactory.class})
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {
GcpPartitionClientFactory.class,
PgTenantOsmDestinationResolver.class
})
)
@SpringBootApplication
@PropertySource("classpath:swagger.properties")
public class PartitionGcpApplication {
public static void main(String[] args) {
SpringApplication.run(PartitionGcpApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(PartitionGcpApplication.class, args);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment