Batch addition example of SSM framework (synchronous request JSP view parsing)
Preparation environment: SSM framework + jdk8 / JDK7 + mysql5 7 + maven3up + tomcat8 / 7 application server
Example description:
Coupons distributed to users through check@R_447_2419 @Select batch distribution, which corresponds to batch increase.
It has some enlightenment for companies to use freemarket or JSP or volocity.
Whether the view is JSP or non JSP, you can refer to this example.
The following is MVC mode.
Simply put, MVC mode
The MVC pattern represents the model view controller pattern, which is used for hierarchical development of applications.
The following example is sufficient to verify MVC for reference:
The JSP code is as follows:
Controller code:
The corresponding Dao and service and their implementation classes and XML are as follows:
Dao and service codes are the same
The service implementation classes are as follows:
xml:
The corresponding entities are as follows: