File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ repositories {
14
14
}
15
15
```
16
16
``` groovy
17
- compile "com.spring.loader:s3-loader:1.0.1 "
17
+ compile "com.spring.loader:s3-loader:1.0.2 "
18
18
```
19
19
Maven:
20
20
``` xml
21
21
<dependency >
22
22
<groupId >com.spring.loader</groupId >
23
23
<artifactId >s3-loader</artifactId >
24
- <version >1.0.1 </version >
24
+ <version >1.0.2 </version >
25
25
<type >pom</type >
26
26
</dependency >
27
27
```
@@ -32,8 +32,7 @@ Declare a spring bean `S3PropertyPlaceholderConfigurer` using yours AWS credenci
32
32
``` java
33
33
@Bean
34
34
S3PropertyPlaceholderConfigurer s3PropertyPlaceholderConfigurer(AmazonS3 s3) {
35
- S3ResourceLoader s3ResourceLoader = new S3ResourceLoader (s3);
36
- S3PropertyPlaceholderConfigurer s3PropertyPlaceholderConfigurer = new S3PropertyPlaceholderConfigurer (s3ResourceLoader);
35
+ S3PropertyPlaceholderConfigurer s3PropertyPlaceholderConfigurer = new S3PropertyPlaceholderConfigurer (s3);
37
36
s3PropertyPlaceholderConfigurer. setS3Locations(new String []{" s3://my-bucket/my-folder/my-properties.properties" });
38
37
39
38
return s3PropertyPlaceholderConfigurer;
You can’t perform that action at this time.
0 commit comments