Skip to content

Commit

Permalink
#1702 Interim solution by documentation in s3 integration readme (#1708)
Browse files Browse the repository at this point in the history
* add additional config to readme

* add additional config to readme
  • Loading branch information
boal authored May 23, 2024
1 parent fccc8ee commit 2abe261
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion digiwf-integrations/digiwf-s3-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,37 @@ The following steps are needed to run the integration (service and client exampl
2. Execute http test located in `/digiwf-integrations/digiwf-s3-integration/digiwf-s3-integration-client-example/src/main/resources/s3-client.http`
3. Inspect the console of the client


## Additional configuration

If there is no requirement for the use of a message broker and the s3 integration is addressed exclusively via REST, the following settings can be used to deactivate the spring-cloud-stream-feature in a service which uses the `digiwf-s3-integration-starter`.

A hardcoded solution to disable the default behaviour with exclusion of specific auto-configuration classes on start up can be found down below.

```java
...
import org.springframework.cloud.stream.config.BindingServiceConfiguration;
import org.springframework.cloud.stream.function.FunctionConfiguration;
...

/**
* Application class for starting the micro-service.
*/
@SpringBootApplication(
...
// Deactivating the Spring Cloud Stream functionality that is activated by default
exclude = { BindingServiceConfiguration.class, FunctionConfiguration.class },
...
)
```

An alternative to the hard coded solution is to exclude the classes via the following spring property.

```yml
spring:
autoconfigure:
exclude:
# Deactivating the Spring Cloud Stream functionality that is activated by default
- org.springframework.cloud.stream.config.BindingServiceConfiguration
- org.springframework.cloud.stream.function.FunctionConfiguration
```

0 comments on commit 2abe261

Please sign in to comment.