Generate full XML configuration from Spring 3 annotations

社会主义新天地 提交于 2020-01-01 04:50:29

问题


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?



来源:https://stackoverflow.com/questions/5749041/generate-full-xml-configuration-from-spring-3-annotations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!