The construction of SSM framework in Java and the method of realizing CRUD
Recently, I was developing a system of the company. The framework of the system was built with the SSM framework. Of course, it is different from this blog. It has a lot of configuration files. The configuration files required for enterprise level development are very cumbersome. Today, I will record the construction of a simple SSM framework and the operation of implementing a crud.
The Maven plug-in is used to configure the jar package we need. Because there are few operations, there are not many configurations. Pay attention to the version of JDK you use and select JDK with different version numbers
Then configure the database connection and change it to your own database
Configuration file spring Dao XML, spring will automatically find the classes under it
Configuration file integration file of spring and mybatis
Configuration file
Configure spring MVC XML file
okay!!! The files to be configured have been configured, which is enough for us to carry out a wave of operations
Next are some background codes, mainly entity classes, Dao layer, service layer and controller layer. I uploaded the background files together, mapper XML file is the key to the implementation method