I have two projects and each project has Spring XML files in their respective resources folder.
But one project is referenced by the other projects like importing jar.
How can I use XML in jar?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
classpath*:/application-context.xml– replaceapplication-context.xmlwith your filename.If your Spring XML file is named applicaiton-context.xml move it under a folder spring in both the projects. You can then create a context with both XML files like this