阅读背景:

是否可以通过配置文件禁用Spring Boot的自动配置?

来源:互联网 

I am researching how to modify our Spring Boot-based services so that they can run both on-premises and on AWS. We already know that we can push our Docker containers anywhere we want and run things that way. Ideally, what I'm looking for is the ability to take advantage of the available AWS features, when available. For example, on-premises we use RabbitMQ for messaging. If deployed on AWS, we want to use SQS instead. I already know know how to conditionally enable/disable beans via the profile so we can dynamically swap out the messaging gateway bean simple enough. The challenge comes with the RabbitMQ autoconfiguration. When running in AWS, I need all the bits that come along with I am researching how to modify our Spring Boot-




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: