Adding configurable properties for max_binary_size

This commit is contained in:
Sean McIlvenna
2020-02-10 15:17:44 -08:00
parent 88445618dd
commit b108ef73e4
2 changed files with 376 additions and 364 deletions

View File

@@ -168,7 +168,13 @@ public class FhirServerConfigCommon {
@Lazy
@Bean
public IBinaryStorageSvc binaryStorageSvc() {
return new DatabaseBlobBinaryStorageSvcImpl();
DatabaseBlobBinaryStorageSvcImpl binaryStorageSvc = new DatabaseBlobBinaryStorageSvcImpl();
if (HapiProperties.getMaxBinarySize() != null) {
binaryStorageSvc.setMaximumBinarySize(HapiProperties.getMaxBinarySize());
}
return binaryStorageSvc;
}
@Bean()