3
文档我使用了这些Spring注解一些代码:如何自动生成的类注释春天JMX注释
org.springframework.jmx.export.annotation.ManagedAttribute;
org.springframework.jmx.export.annotation.ManagedOperation;
org.springframework.jmx.export.annotation.ManagedOperationParameter;
org.springframework.jmx.export.annotation.ManagedOperationParameters;
org.springframework.jmx.export.annotation.ManagedResource;
我要生成使用注解注释的一些文件(甚至只是的javadoc)例如考虑以下方法?
@ManagedOperation(description="Does foo to bar")
@ManagedOperationParameters({
@ManagedOperationParameter(name = "bar", description = "The bar you want to foo.")})
public long fooBar(Bar bar) throws Exception {
...
}
有一些方法可以让我自动生成此文件,否则我将不得不重复,除了它在所有的javadoc注释字符串?
我想你错过了 'Java' 作为标签 – abalogh 2011-05-31 18:42:36
:)是微不足道的是转换成Java。我剪切和粘贴现有的代码。 – sourcedelica 2011-05-31 22:21:56
好吧好吧:)转换为java。 – sourcedelica 2011-05-31 22:49:08