1

我正在使用 maven 创建一个项目,如下所示

mvn archetype:generate -B -DgroupId=com.myApplication -DartifactId=MyApplication -
DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -
DarchetypeVersion=2.3.7

之后在struts.properties文件中我正在改变

struts.ui.theme=xhtml

struts.ui.theme=simple

但是当我运行应用程序时,simple主题不适用。

4

1 回答 1

1

struts.properties struts.xml在项目和部署中找到文件。检查每个找到的文件在运行前和运行后是否包含必要的更改。并且struts.xml不包含<constant name="struts.ui.theme". 如果没有帮助,请尝试在磁盘或计算机中搜索关键字struts.ui.theme。高温高压

于 2013-01-01T08:31:13.023 回答