1, the project architecture is shown in
web3.0 project, tomcat9.0, automatically generates web.xml file
According mybatis configured to automatically generate dao layer, the information changed
How do I configure mybatis: https://www.cnblogs.com/wangxue1314/p/11852137.html
2, showing the specific configuration file
1, web.xml configured as follows
2, mybatis.xml configured as follows
3, springMVC-servlet configured as follows
4, applicationContext.xml configured as follows
5, jar package below
3, project ideas
---- view layer, ---- JSP page sends a request to the control layer AccountAcion
---- layer sends to the control logic layer AccountService do logic, call mapping interface persistence layer Dao the determination process, the interface call xml file corresponding to layer mapper maps,
---- service layer in the query returns data to the view layer