• 周日. 11月 27th, 2022

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Integration of mybatis – springboot2. X

[db:作者]

1月 6, 2022

In domestic companies , Use Mybatis To manipulate data . The main thing is that the flexibility is very good , Today I’d like to introduce to you how to SpringBoot In the integration Mybatis. First of all, add the corresponding Maven rely on : <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> After the dependence is added, it will be in application.properties Add relevant configuration information . First, add the connection information of the database , as follows : ` spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注