From 106012d8b9e7458ce5805f492b3020dfbf7b644b Mon Sep 17 00:00:00 2001 From: Takhsin Saraira Date: Sun, 19 Mar 2023 14:28:17 +0200 Subject: [PATCH] Update + set default values --- README.md | 5 ++--- .../tempresources/config/TemporaryResourcesProperties.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2c6f4ba..99a59d9 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,8 @@ implementation 'io.github.mrsaraira:temporary-resources:1.1.0' 2. By default, the library is **enabled**, but it checks for Sping Web dependency to ensure that the context has additional registered scopes: (session, request) for the library to work properly. -To enable/disable library auto-configuration you have to set property `temporary-resources.enabled` in your application -settings.
-To enable/disable Temporary files cleaner service set property: `temporary-files-cleaner-service-enabled`. +To set library auto-configuration enabled set property `temporary-resources.enabled` in your application +settings. Example: ```yaml temporary-resources: diff --git a/src/main/java/io/github/mrsaraira/tempresources/config/TemporaryResourcesProperties.java b/src/main/java/io/github/mrsaraira/tempresources/config/TemporaryResourcesProperties.java index 033db6f..5289d23 100644 --- a/src/main/java/io/github/mrsaraira/tempresources/config/TemporaryResourcesProperties.java +++ b/src/main/java/io/github/mrsaraira/tempresources/config/TemporaryResourcesProperties.java @@ -15,11 +15,11 @@ public class TemporaryResourcesProperties { /** * Set Temporary resources library configuration enabled */ - private Boolean enabled; + private Boolean enabled = true; /** * Set Temporary files cleaner service enabled */ - private Boolean temporaryFilesCleanerServiceEnabled; + private Boolean temporaryFilesCleanerServiceEnabled = true; }