Announcement Announcement Module
Collapse
No announcement yet.
Import Spring-Config files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Import Spring-Config files

    Hi,

    Iīm very new to spring, and i got the problem that i have two libraries (one API and a service that uses that API) that are both configured with Spring. Both configuration-files are included in the "root" of their corresponding jarīs and have the same name (applicationConfig.xml). But currently i have to add whole configuration of both artifacts in both configuration files to make it work. How can i import the configuration of the api "into" the service? I know there is an import statement like:

    <import resource="classpath:applicationConfig.xml" />

    but that doesnīt work to me, even if i rename the applicationConfig.xml in one of the jarīs.

    Thanks in advance for your help and sorry for my bad english
    Last edited by snuuts; Jan 28th, 2009, 02:10 PM.

  • #2
    Originally posted by snuuts View Post
    Hi,
    <import resource="classpath:applicationConfig.xml" />
    ...
    what do you mean this does not work? what version of spring are you using?

    Comment

    Working...
    X