Spring consolidates related properties in the Velocity configuration file
1 <BeanID= "Viewresolver"class= "Org.springframework.web.servlet.view.velocity.VelocityViewResolver" >2 <!--whether to cache templates -3 < Propertyname= "Cache"value= "false" />4 5 < Propertyname= "suffix"value= ". VM" />6 <!--Request Property Reference name -7 < Propertyname= "Requestcontextattribute"value= "Request" />8 <!--whether to open the request property -9 < Propertyname= "Exposerequestattributes"value= "true" />Ten <!--sets whether all session properties are added to the model before merging with the template - One < Propertyname= "Exposesessionattributes"value= "true" /> A <!--whether to use spring's support for macro definitions - - < Propertyname= "Exposespringmacrohelpers"value= "true" /> - the < Propertyname= "ContentType"value= "Text/html;charset=utf-8" /> - <!--number Function name - - < Propertyname= "Numbertoolattribute"value= "Numbertool" /> - <!--Date Function name - + < Propertyname= "Datetoolattribute"value= "Datetool" /> - </Bean>
Spring consolidates the properties in the velocity configuration file