Spring BeanDoc 是一个根据spring的bean配置文件生成文档的工具
下载
springbeandoc:
ingbeandoctgz?version=
参考
graphviz:
exe
参考
apacheant:
antbinzip
安装解压springbeandoctgz和apacheantbinzip到d:
设置环境变量
ANT_HOME=D:\java\apacheant
Path=D:\jdk_\bin;D:\java\apacheant\bin;
运行graphvizexe安装到D:\Programs\ATT
到D:\java\springbeandoc\src\org\springframework\beandoc\output\in下
增加中文资源文件labels_zhproperties 然后对照翻译
#
# @since
ingenerated=beandoc \uF\u\uE
infilelist=files making up this application context
indescription=\uCF\uFF
inattributes=\uCE\u
inconstructorargs=\u\u\uC\u
inallTitle=\u\u Beans
insummaryTitle=beans\u\u
indetailTitle=beans\uBE\uC
ininnerbean=\uF\uD\u\uEbean
inhome=\u\u
insummary=\u\u
indetail=\uBE\uC
inabstractbean=\uBD\uC bean
indeps=\uFD\uD \uCE\u\uC \uC \uB\uCD \uCE\u
inbacktotop=\u\uDE\u\u\uE
inname=\uD\uB
inbean=bean
inargtypes=\uC\u\uCB\uB
#
再到D:\java\springbeandoc\下运行buildbat
到D:\java\springbeandoc\samples\
编辑beandocproperties
第行改为inlocale=zh
第行改为compilerdotExe=d:/Programs/ATT/GraphViz/bin/dotexe
清空 D:\java\springbeandoc\samples\jpetstore和 D:\java\springbeandoc\samples\petclinic复制spring配置文件
到D:\java\springbeandoc\samples\jpetstore
然后运行D:\java\springbeandoc\samples\runbeandocclibat
需要带参数
D:\java\SPRING~\samples>runbeandocclibat beandocproperties
然后打开D:\java\springbeandoc\target\sampleoutput\l
就可以看到生成好的文档了