我对微服务(和SI)有点新意,并希望按照微服务架构风格制作POC。我已经看到我可以使用Spring Boot进行部署,使用SI进行开发,但是发现很少有关于如何组合它们的文档(只是Spring Boot主页中的一个例子)。您是否了解如何将这两种技术结合起来的最佳实践或建议?
答案 0 :(得分:1)
许多sample apps(包括dsl
和stomp-chat
应用下的应用都是Spring Boot / Spring Integration应用。
答案 1 :(得分:1)
此事没有具体内容。
Spring Boot利用IntegrationAutoConfiguration
打开@EnableIntegration
,然后您可以从两个世界中获得最佳效果:引导注入的内容,例如AmqpTemplate
,MongoTemplate
,DataSource
等对Spring Integration配置或使用SI XML组件定义。
请参阅我们关于基于Spring Boot的事项的示例:
https://github.com/spring-projects/spring-integration-samples/tree/master/dsl https://github.com/spring-projects/spring-integration-samples/tree/master/basic/web-sockets https://github.com/spring-projects/spring-integration-samples/tree/master/applications/stomp-chat