生成春3标注完整的XML配置 [英] Generate full XML configuration from Spring 3 annotations

查看:142
本文介绍了生成春3标注完整的XML配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以生成基于Spring完整的XML配置文件中的注释3散落各地的课吗?

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

在理想情况下,我正在寻找一个工具,可以解析一个春天三期工程和输出XML配置,有事的喜欢的XDoclet在做(不过关,当然从Spring注解)

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?

推荐答案

您可以随时编写自己的。我不知道一个。

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

有趣,因为添加注释,因为有些人抱怨沉重的XML配置。你游泳对这里的潮流。

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

只是好奇 - 为什么你现在想要的XML?为什么不标注是否足够?

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

这篇关于生成春3标注完整的XML配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆