Basically, I have objects that need to become entities, but the code is generated and I can’t touch it (thus I can’t use annotations). I’d like to list them in an xml config. However, I’d also like spring to autodiscover and autowire the respective daos. How would I go about setting up my configuration?
Basically, I have objects that need to become entities, but the code is generated
Share
You can configure the component scan how you like (btw: you can have several component scans)
This example will create beans for all classes thet match the regex and are located within the base package.
@See Spring Reference Chapter 3.10.3 Using filters to customize scanning