Generate full XML configuration from Spring 3 anno

2019-03-27 05:09发布

问题:

Is there is a way to generate full XML configuration file based on Spring 3 annotations scattered all over the classes?

Ideally, I'm looking for a tool that can "parse" a Spring 3 project and output XML configuration, something like xdoclet was doing (but off course from Spring annotations)

Is there a tool like this, or a way I could write my own if none exists?

回答1:

You can always write your own. I'm not aware of one.

Funny, because annotations were added because some people complained about heavy XML configuration. You're swimming against the tide here.

Just curious - why do you want the XML now? Why aren't the annotations sufficient?