Is it possible link spring context configuration from other module.

We have java sources in one module. And some app modules in one project used this sources but with different facets configurations.
Is it possible link spring and other configs from other modules?

1 comment

Gubber wrote:

We have java sources in one module. And some app modules in one project used this sources but with different facets configurations.
Is it possible link spring and other configs from other modules?


To the best of my knowledge, you cannot link a facet definition from one module to another. You can, however, link spring contexts. It does require a dependency relationship. So if the "Webapp" has a dependency on the "API" module, you can configure it so the Webapp module knows about the spring context files in the "API" module. In the project structure dialog, select the module you want to have access to the spring context file(s), "Webapp" in this example. Add a spring facet to it (right click on the module name and select add). With the new facet selected, in the Spring Facet settings dialog, add a new application context. Select the facets that combine to form a complete context definition. Add additional context definitions as needed.

0

Please sign in to leave a comment.