Java--Mybatis,mapper.xml files use association; collection implements one-to-one and one to many association
When we use JDBC to access the database, in addition to writing our own SQL, we must also operate connection, statement and resultset, which are actually auxiliary classes. Not only that, accessing different tables, but also writing a lot of the same code, which is cumbersome and boring. After using Mybatis, you only need to provide your own SQ ...
Posted by dagon on Wed, 05 Jan 2022 00:32:30 +0100