Struts2-配置
来源:互联网 发布:淘宝买家等级怎么升的 编辑:程序博客网 时间:2024/06/09 20:51
常量配置
Struts2可以包含大量的常量配置,这些常量起了一个整体性的作用,他可以用来配置struts2的属性,例如,Locale,encodeing,configration等,
这些常量都可以在org/apacher/struts2下面的default.properties中找到详细信息。
struts2会默认加载类路径下的struts.xml,struts-default.xml,struts-plugin.xml三类文件,其中struts.xml是开发者自定义的配置文件,struts-default.xml是框架自带的配置文件,struts-plugin.xml是struts2插件的默认配置文件。这些常量可以配置在这些文件,如果发生冲突,那么会按照搜索顺序加载配置文件并且覆盖掉前面的:
顺序
1. struts-default.xml
2. struts-plugin.xml
3. struts.xml
4. struts.properties
5. web.xml
包含其他配置文件
为了解决struts.xml过于臃肿的问题,可以将struts.xml、拆分成多个配置文件,然后使用include元素包含到struts.xml中来,便于模块化。
0 0
- struts2配置
- struts2配置
- Struts2配置
- Struts2配置
- struts2 配置
- Struts2配置
- Struts2配置
- Struts2 配置
- struts2 配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- 使用js监听手机端输入法的变化
- 一维码EAN 13简介及其解码实现(zxing-cpp)
- CSS+DIV定位分析(relative,absolute,static,fixed)
- 链表应用----二进制数加1进位表示链表存储
- FilterDispatcher is deprecated!
- Struts2-配置
- zepto笔记
- 关于程序的数组
- 文章标题
- 计算字符串的最长回文子序列
- day9 part2:JavaScript DOM编程学习笔记03
- 上位机之实时动态折线图制作
- 并查集入门
- 欢迎使用CSDN-markdown编辑器