当前位置:网站首页>9.1 sqlsessionfactorybuilder - SSM in depth analysis and project practice

9.1 sqlsessionfactorybuilder - SSM in depth analysis and project practice

2020-11-06 01:13:59 Memory

All the source code in the project can be found in the linked repository :https://github.com/chenhaoxiang/uifuture-ssm

The first 3 piece MyBatis

The first 9 Chapter MyBatis Components

In front of 1.2.1 In the festival , A brief introduction to MyBatis.MyBatis It's a persistence layer framework , Think of it as a framework for interacting with a database . and MyBatis Similar frameworks also have Hibernate etc. .MyBatis Yes JDBC The process of operating database is encapsulated , Make developers more focused SQL In itself , You don't have to deal with registration drivers , establish Connection( Represents the connection to the database ), establish Statement( Responsible for the execution of SQL), Result set retrieval and other tedious process code .

We can go through XML Or annotations to configure various Statement, And through Java Objects and Statement Medium SQL The mapping generation needs to be executed finally SQL sentence , Finally through M

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢