learning of struts 2

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:

  1. struts-default.xml   included in the struts2.jar file
  2. struts-plugin.xml
  3. struts.xml
  4. struts.properties
  5. web.xml

你可能感兴趣的:(xml,Web,struts,performance)