Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1702 Interim solution by documentation in s3 integration readme #1708

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```

Loading