Remove bean override

This commit is contained in:
Tadgh
2021-08-28 18:52:41 -04:00
parent a8a98c311c
commit e26364670d
6 changed files with 0 additions and 15 deletions

View File

@@ -29,14 +29,6 @@ public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
/*
* https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/246
* This will be allowed for a short period until we know how MDM should be configured
* or don't have multiple equal bean instantiations.
*
* This will require changes in the main project as stated in the Github comment
* */
System.setProperty("spring.main.allow-bean-definition-overriding","true");
System.setProperty("spring.batch.job.enabled", "false");
SpringApplication.run(Application.class, args);

View File

@@ -31,9 +31,6 @@ spring:
batch:
job:
enabled: false
main:
# TODO 5.6.0 -> Prevent duplicate bean definitions in the Spring batch config in HAPI: see:
allow-bean-definition-overriding: true
hapi:
fhir:
### This is the FHIR version. Choose between, DSTU2, DSTU3, R4 or R5

View File

@@ -21,7 +21,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
"spring.batch.job.enabled=false",
"hapi.fhir.fhir_version=dstu2",
"spring.datasource.url=jdbc:h2:mem:dbr2",
"spring.main.allow-bean-definition-overriding=true"
})
public class ExampleServerDstu2IT {

View File

@@ -46,7 +46,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
"hapi.fhir.subscription.websocket_enabled=true",
"hapi.fhir.allow_external_references=true",
"hapi.fhir.allow_placeholder_references=true",
"spring.main.allow-bean-definition-overriding=true"
})

View File

@@ -39,7 +39,6 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
"hapi.fhir.fhir_version=r5",
"hapi.fhir.subscription.websocket_enabled=true",
"hapi.fhir.subscription.websocket_enabled=true",
"spring.main.allow-bean-definition-overriding=true"
})
public class ExampleServerR5IT {

View File

@@ -25,7 +25,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
"hapi.fhir.fhir_version=r4",
"hapi.fhir.subscription.websocket_enabled=true",
"hapi.fhir.partitioning.partitioning_include_in_search_hashes=false",
"spring.main.allow-bean-definition-overriding=true"
})
public class MultitenantServerR4IT {