Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
* be added without rebuilding this service.
* </p>
* <p>
* There is no JDBC datasource. A local fat mock-sdk JAR on {@code loader.path}
* may register Hibernate/Hikari auto-config; {@code application-local.properties}
* excludes those so Boot does not require a database URL. The cluster profile
* must not exclude them unless they are actual auto-configuration classes.
* There is no JDBC datasource. Vendor or mock-sdk JARs on {@code loader.path}
* may register Hibernate/Hikari; those auto-configurations are excluded in
* {@code application.properties} so Boot does not require a database URL.
* </p>
*
* @since 1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# Local profile: run-local.bat|sh passes -Dspring.profiles.active=local
spring.cloud.config.enabled=false
# Fat mock-sdk-*-jar-with-dependencies.jar on loader.path registers Boot JDBC/JPA.
# Cluster zip does not, so these excludes must not be in the default profile.
spring.autoconfigure.exclude=\
org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration,\
org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration,\
org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration,\
org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfiguration,\
${biosdk.kernel.autoconfigure.exclude}
server.tomcat.accesslog.enabled=false
# Swagger Try-it-out target for this machine only. Cluster uses mosipbox.public.url from config server.
mosipbox.public.url=http://localhost:${server.port}
Expand Down
14 changes: 7 additions & 7 deletions biosdk-services/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ management.metrics.export.prometheus.enabled=true

logging.level.root=INFO

# kernel-core 1.4.1 EnableAutoConfiguration list (ID gen, PDF, websub, applicant-type).
# This module is an IBioApiV2 HTTP wrapper — do not start those beans.
# Do not exclude Boot JDBC/JPA here: cluster mock-sdk zip can put those classes on
# loader.path without registering them as auto-config, and Boot 4 then fails startup.
# Local fat mock-sdk does register them; those excludes live in application-local.properties.
biosdk.kernel.autoconfigure.exclude=\
# kernel-core EnableAutoConfiguration list (ID gen, PDF, websub, applicant-type).
# Fat mock-sdk on loader.path also registers Hibernate/Hikari; this service has no DB.
spring.autoconfigure.exclude=\
org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration,\
org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration,\
org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration,\
org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfiguration,\
io.mosip.kernel.idgenerator.vid.impl.VidGeneratorImpl,\
io.mosip.kernel.idgenerator.vid.util.VidFilterUtils,\
io.mosip.kernel.idgenerator.tokenid.impl.TokenIdGeneratorImpl,\
Expand All @@ -62,7 +63,6 @@ io.mosip.kernel.websub.api.config.IntentVerificationConfig,\
io.mosip.kernel.websub.api.config.WebSubClientConfig,\
io.mosip.kernel.websub.api.config.publisher.WebSubPublisherClientConfig,\
io.mosip.kernel.websub.api.config.publisher.RestTemplateHelper
spring.autoconfigure.exclude=${biosdk.kernel.autoconfigure.exclude}

openapi.info.title=Biosdk Service
openapi.info.description=Rest Endpoints for operations related to Biosdk
Expand Down
Loading