Fix misconfiguration
modelConfig is part of DaoConfig and should not have a separate lifecycle.
This commit is contained in:
@@ -160,8 +160,8 @@ public class FhirServerConfigCommon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public ModelConfig modelConfig(AppProperties appProperties) {
|
public ModelConfig modelConfig(AppProperties appProperties, DaoConfig daoConfig) {
|
||||||
ModelConfig modelConfig = new ModelConfig();
|
ModelConfig modelConfig = daoConfig.getModelConfig();
|
||||||
modelConfig.setAllowContainsSearches(appProperties.getAllow_contains_searches());
|
modelConfig.setAllowContainsSearches(appProperties.getAllow_contains_searches());
|
||||||
modelConfig.setAllowExternalReferences(appProperties.getAllow_external_references());
|
modelConfig.setAllowExternalReferences(appProperties.getAllow_external_references());
|
||||||
modelConfig.setDefaultSearchParamsCanBeOverridden(appProperties.getAllow_override_default_search_params());
|
modelConfig.setDefaultSearchParamsCanBeOverridden(appProperties.getAllow_override_default_search_params());
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
spring:
|
spring:
|
||||||
flyway:
|
flyway:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
check-location: false
|
||||||
|
baselineOnMigrate: true
|
||||||
datasource:
|
datasource:
|
||||||
url: 'jdbc:h2:file:./target/database/h2'
|
url: 'jdbc:h2:file:./target/database/h2'
|
||||||
#url: jdbc:h2:mem:test_mem
|
#url: jdbc:h2:mem:test_mem
|
||||||
@@ -12,9 +14,6 @@ spring:
|
|||||||
# database connection pool size
|
# database connection pool size
|
||||||
hikari:
|
hikari:
|
||||||
maximum-pool-size: 10
|
maximum-pool-size: 10
|
||||||
flyway:
|
|
||||||
check-location: false
|
|
||||||
baselineOnMigrate: true
|
|
||||||
jpa:
|
jpa:
|
||||||
properties:
|
properties:
|
||||||
hibernate.format_sql: false
|
hibernate.format_sql: false
|
||||||
@@ -92,6 +91,8 @@ hapi:
|
|||||||
# graphql_enabled: true
|
# graphql_enabled: true
|
||||||
# narrative_enabled: true
|
# narrative_enabled: true
|
||||||
# mdm_enabled: true
|
# mdm_enabled: true
|
||||||
|
# local_base_urls:
|
||||||
|
# - https://hapi.fhir.org/baseR4
|
||||||
# partitioning:
|
# partitioning:
|
||||||
# allow_references_across_partitions: false
|
# allow_references_across_partitions: false
|
||||||
# partitioning_include_in_search_hashes: false
|
# partitioning_include_in_search_hashes: false
|
||||||
|
|||||||
Reference in New Issue
Block a user