1.spring load two classes of resources:
Resourcebundlemessagesource: Load file available: Xxx/xx.xml or Xxx.xx.xml
Reloadableresourcebundlemessagesource: The load file must be used: Classpath:xxx/xx.xml
[Email protected] The method of annotating is executed before other methods of the controller are executed
3.SPRINGMVC returns the logical view./indicates sibling directory,.. /indicates the previous level of the directory
4.SPRINGMVC jumps between controllers:
Redirect:url Redirect request scope data cannot be shared
Forward:url forwarding request scope data can be shared
The data in the 5.SPRINGMVC model can be obtained using Request.getattribute ()
[Email protected] The method return value of the annotation is a cache attribute, when added to the class name, indicates that the class all the method return value will be cached
[Email protected] Annotation method is generally used in Basecontroller, For registering the editor (in Springmvc, the bean defines a type such as date,double, and the date and double cannot be bound if no processing is done.) )
[email protected] and @predestory implement actions prior to initializing and destroying beans (such as initialization constants)
SPRING/SPRINGMVC Knowledge Point Finishing