繁体   English   中英

How to find Spring XML definition from Java Class in Eclipse

[英]How to find Spring XML definition from Java Class in Eclipse

我在 Eclipse 从事一个大型 Spring/Struts 项目。 我必须经常做的一件事是挖掘 spring.xml 文件,以便更新我正在处理的 class 的定义。 It seems like there should be an easy 2 or 3 click way to go from the Java class I am in to the Spring definition.

我安装了 SpringSource,但这似乎没有提供任何对我真正有用的东西。 有谁知道这在 Eclipse 中是否可行以及怎么做?

额外问题:是否可以从 Struts Action class 跳转到 Eclipse 中相应的 struts.xml 定义?

在您的 eclipse 项目中,只需添加 spring 性质。 右键项目select Spring Tools选项->添加Spring Nature。 这将确保 eclipse 使您的 java 类和 spring 上下文保持同步。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM