【发布时间】:2017-03-03 12:10:25
【问题描述】:
我基本上想要做的是构建一个具有多个 ApplicationContexts 的 Webapp。这可以通过 SpringApplicationBuilder 实现。我面临的问题是,您必须在 Spring-Boot 应用程序中“硬编码”所有 ApplicationContexts (https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-spring-application.html#boot-features-fluent-builder-api)
我正在寻找一种方法来加载每个配置的子模块的 ApplicationContexts?我想包含和排除特定 Maven 构建的模块。这可能吗?这些模块彼此独立,因为我们使用的是领域驱动方法。
【问题讨论】:
标签: java spring spring-boot domain-driven-design