It is the second time that I stumble across that issue and I haven’t found a good solution yet. My problem is that I want to package a framework like JAR with a default Spring context and give the user of my JAR package the possibility to use this configuration (or even an ApplicationContext implementation) to add his own bean definitions (from another config file) and to use or overwrite definitions from the default context. Does anybody know a good way to do this?
Share
The people using your jar will have to import your
.xmlfile in theirs, with something like this:(
/META-INF/spring-yourframework-init.xmlis the path of your xml in your jar. This xml file is a regular spring configuration file)