struts查看源码
比如我们查看struts2-core-2.3.12.jar的源码
就可以看到源码了
添加 struts.xml catalog提示
Properties -> catalog
http://struts.apache.org/dtds/struts-2.3.dtd
如果没有就添加一个
[img]http://dl.iteye.com/upload/attachment/0082/5290/98230cd9-da2d-3716-9222-000e569377fa.png[/img]
选择文件路径
[img]http://dl.iteye.com/upload/attachment/0082/5288/2f602a39-f3f7-3cb0-ba06-8f54ac2af8d7.jpg[/img]
设置保存
比如我们查看struts2-core-2.3.12.jar的源码
右键jar包 -> Properties -> 点击External Folder -> struts-2.3.12-all/struts-2.3.12/src/core/src/main/java -> OK就可以看到源码了
添加 struts.xml catalog提示
Properties -> catalog
http://struts.apache.org/dtds/struts-2.3.dtd
如果没有就添加一个
[img]http://dl.iteye.com/upload/attachment/0082/5290/98230cd9-da2d-3716-9222-000e569377fa.png[/img]
选择文件路径
[img]http://dl.iteye.com/upload/attachment/0082/5288/2f602a39-f3f7-3cb0-ba06-8f54ac2af8d7.jpg[/img]
设置保存
本文介绍如何查看Struts2框架的源码,并详细解释了如何在开发环境中配置Struts2-core-2.3.12.jar的源码路径及DTD目录,以便于开发者更好地理解和调试Struts2应用。

被折叠的 条评论
为什么被折叠?



