struts.xml和struts-config.xml [英] struts.xml and struts-config.xml

查看:152
本文介绍了struts.xml和struts-config.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

struts.xml和struts-config.xml有什么区别?它们是相同的还是它们之间有什么区别?

What is the difference between struts.xml and struts-config.xml? Are both the same or is there any difference between them?

推荐答案

Struts框架的核心配置文件默认为< Struts 2的code> struts.xml 和Struts 1的 struts-config.xml

The core configuration file for the Struts framework is by default the struts.xml for Struts 2 and struts-config.xml for Struts 1.

它们都是配置文件,所以它们是相同的,但它们是不同的野兽,因为它们引用了不同版本的Struts框架。

They are both configuration files so that is the same, but they are different beasts because they refer to different versions of the Struts framework.

Struts 1和2之间存在很大差异,因为你可以见这里

There are large differences between Struts 1 and 2 as you can see here.

这些文件具有不同的结构和内容,因此您无法将其中一个与其他文件进行比较(除了用途)。

The files have different structure and content so you can't really compare one with the other (except for their purpose).

这篇关于struts.xml和struts-config.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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