Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
+ set default values
  • Loading branch information
mrsaraira committed Mar 19, 2023
1 parent 857f0cd commit 106012d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

0 comments on commit 106012d

Please sign in to comment.