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,9 +13,10 @@
* be added without rebuilding this service.
* </p>
* <p>
* There is no JDBC datasource. Fat mock-sdk / vendor JARs on {@code loader.path}
* may shade Hibernate and Hikari; those auto-configurations are excluded in
* {@code application.properties} so Boot does not require a database URL.
* 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.
* </p>
*
* @since 1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 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
11 changes: 5 additions & 6 deletions biosdk-services/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ 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.
# Fat mock-sdk on loader.path also shades Hibernate/Hikari; do not start a DataSource.
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,\
# 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=\
io.mosip.kernel.idgenerator.vid.impl.VidGeneratorImpl,\
io.mosip.kernel.idgenerator.vid.util.VidFilterUtils,\
io.mosip.kernel.idgenerator.tokenid.impl.TokenIdGeneratorImpl,\
Expand All @@ -64,6 +62,7 @@ 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