ssm realizes Boot-crm management system

The project has been published on GitHub: Link: GitHub .

Effect screenshot:
Insert picture description here
Insert picture description here
The pits that I have stepped on in writing this project:
1. The parameters of the method in the controller class conflict with the parameters set by the model, causing the el expression to obtain the method parameters, and the textbooks are all the same? As shown in the figure, after the modification
Insert picture description here
Insert picture description here
2. If you develop based on the MapperScannerConfigurer interface,
there are the following precautions:
2.1. The mapping interface name must be consistent with the mapping xml file name and placed in the same package. The
namespace is named package + interface
2.2. In the xml file The id of the SQL tag must be consistent with the method name of the interface
2.3, pay attention to the return type and input parameters

3, @Autowired annotation layer dao error! Unresolved !!!
There is no big brother figure it
therefore adopt such a way to load configuration file

Solved: Add the @repository annotation on the dao class to inject it into the container~, otherwise the spring container cannot be found
Insert picture description here 4. Do not have extra spaces in the URL

Guess you like

Origin blog.csdn.net/m0_46267375/article/details/107444841