struts的属性配置文件。默认为default.properties,已包含在struts2的发布包里面。
如果要修改配置文件,只需要在web application的classpath中放置一个struts.properties(一般放置在/WEB-INF/classes目录下)文件,并将需要修改的key和值写入该文件即可。
在开发环境下,需要配置的几个属性:
» struts.i18n.reload = true – enables reloading of internationalization files
» struts.devMode = true – enables development mode that provides more comprehensive debugging
» struts.configuration.xml.reload = true – enables reloading of XML configuration files (for the action)
when a change is made without reloading the entire web application in the servlet container
» struts.url.http.port = 8080 – sets the port that the server is run on (so that generated URLs are created correctly)
分享到:
相关推荐
Struts2学习笔记,介绍了struts2的基础部分
struts2学习笔记,非本人所写,但有学习的价值,总结的很好,分享一个!
struts2学习笔记总结
struts2学习笔记struts2学习笔记struts2学习笔记
struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换struts2学习笔记3数据类型转换
本人学习struts2的笔记,希望大家可以多多学习以后共同交流
1. struts2框架的引入 1)把struts2的相关jar包导入到项目中去 2)把struts2框架的配置文件struts.xml复制粘贴到项目中的src下面(同时也可以把log4j.properties放到src下) 在这里我们主要是要的这个struts.xml文件...
structs2很详细的学习笔记,structs2的建造,工作原理,例子,逐步讲解,纯文字的