After adding a constant configuration to the project's Struts.xml: <constant name= "Struts.devmode" value= "true"/>, restart the server.
In subsequent development of the project, modifying the Action.java or struts.xml still requires the reboot of Tomcat, which is the same as not configuring this constant.
Don't use
<constant name= "Struts.devmode" value= "true"/>
Change to:
<constant name= "Struts.configuration.xml.reload" value= "true"/>
It's OK.
Here is a brief introduction to the common configuration of 4 development modes---
<!--open using development mode, detailed error message--
<!--<constant name= "Struts.devmode" value= "true"/>-->
<!--specify that each request arrives and reload the resource file--
<!--<constant name= "Struts.i18n.reload" value= "true"/>-->
<!--specify that each configuration file changes automatically reload-
<!--<constant name= "Struts.configuration.xml.reload" value= "true"/>-->
<!--specify XSLT result using style sheet cache--
<!--<constant name= "Struts.xslt.nocache" value= "true"/>-->
Stuts2 "Struts.devmode" is set to true, it does not work and still requires a reboot of Tomcat