today , I am re-learning the Struts 2 ,and take some notes .
1. about the devMode
a. it is good for devolopment ,and will reload the sourse like struts.xml ,web.xml etc. other than
re-start the sever .
b. however , it is the cost of the performance , so do not forget to remove it when you release
your project .
2. Constants can be declared in multiple files. By default, constants are searched for in the following order, allowing for subsequent files to override previous ones:
- struts-default.xml included in the struts2.jar file
- struts-plugin.xml
- struts.xml
- struts.properties
- web.xml
本文档记录了作者重新学习 Struts2 框架的过程,并总结了关于开发模式 (devMode) 的优缺点及常量声明顺序等内容。开发模式有利于开发阶段的文件热更新,但会牺牲运行效率;此外还介绍了 Struts2 中常量覆盖的默认顺序。
776

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



