1. Availability
Using Simplemappingexceptionresolver to implement exception handling
You only need to add the following in the spring configuration file Applicationcontext.xml:
<bean class= "Org.springframework.web.servlet.handler.SimpleMappingExceptionResolver" > <property name= " Defaulterrorview "value=" error "></property> <property name=" Exceptionattribute "value=" ex "></ property> <property name= "exceptionmappings" > <props> <prop key= "Com.core.exce Ption. Businessexception ">business_error</prop> <prop key=" Com.core.exception.ParameterException ">par ameter_error</prop> </props> </property> </bean>
2. Modifiable
JSP interface of each function corresponding to the function of the background, a function independently of the completion of a function, the configuration file determines the function to be executed by each function, when the function corresponding to the operation changes, only need to change the configuration file point to be able to.
3. Performance
4. Security
5. testability
6. Ease of Use
An example of an MVC pattern in a Java Web application