Skip to content

Commit 1ddc372

Browse files
ericdalloelo7-developer
authored andcommitted
Update README.md
1 parent 8e77434 commit 1ddc372

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ repositories {
1414
}
1515
```
1616
```groovy
17-
compile "com.spring.loader:s3-loader:1.0.4"
17+
compile "com.spring.loader:s3-loader:2.0.0"
1818
```
1919
Maven:
2020
```xml
2121
<dependency>
2222
<groupId>com.spring.loader</groupId>
2323
<artifactId>s3-loader</artifactId>
24-
<version>1.0.4</version>
24+
<version>2.0.0</version>
2525
<type>pom</type>
2626
</dependency>
2727
```
2828

2929
## How to use
3030

31-
There 2 ways to configure your application to load properties from s3:
32-
33-
**Anotation**
34-
3531
- Adding this annotation to any spring managed bean
3632
```java
3733
@S3PropertiesLocation("my-bucket/my-folder/my-properties.properties")
@@ -42,20 +38,10 @@ There 2 ways to configure your application to load properties from s3:
4238
```
4339
- Load from a System env variable
4440
```java
45-
@S3PropertiesLocation(path = "${AWS_S3_LOCATION}", profiles = "production")
46-
```
47-
**Configuration**
48-
```java
49-
@Bean
50-
S3PropertyPlaceholderConfigurer s3PropertyPlaceholderConfigurer(AmazonS3 amazonS3) {
51-
S3PropertyPlaceholderConfigurer s3PropertyPlaceholderConfigurer = new S3PropertyPlaceholderConfigurer(amazonS3);
52-
s3PropertyPlaceholderConfigurer.setS3Locations("s3://my-bucket/my-folder/my-properties.properties");
53-
54-
return s3PropertyPlaceholderConfigurer;
55-
}
41+
@S3PropertiesLocation(path = "${AWS_S3_LOCATION}", profiles = "developer")
5642
```
5743

5844
## Requisites
5945

6046
Official spring aws sdk lib.
61-
See: https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-aws
47+
See: https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-aws

0 commit comments

Comments
 (0)