0 File road map
1 sql(src\main\mysql\c_customer.sql)
First find sql file
got the answer
2 write sqlMapConfig.xml (src \ main \ resources \ sqlMapConfig.xml)
This is a mybatis profile, his role is to connect to the database and find the corresponding xml file
3 write entity class (src \ main \ java \ com \ buer \ domain \ Customer.java)
Entity class corresponding database field
4 编写 CustomerMapper (src \ main \ java \ com \ buer \ dao \ CustomerMapper.java)
5 编写 CustomerMapper.xml (src\main\resources\CustomerMapper.xml)
6 测试 (src\test\java\com\com.buer\Test.java)
7 results
Execution src \ test \ java \ com \ com.buer \ Test.java testing methods, and the results