如果依赖库不存在,maven 安装依赖库
JDBC的依赖项:spring-jdbc
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>5.3.14</version> </dependency>
MySQL连接的依赖项:mysql-connector-java
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.21</version> </dependency>
数据库连接池的依赖项:commons-dbcp2
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-dbcp2</artifactId> <version>2.8.0</version> </dependency>
sqlite依赖项:sqlite-jdbc
<dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>3.34.0</version> </dependency>
标签:sqlite,依赖,Spring,数据库,boot,commons,jdbc,mysql,org From: https://www.cnblogs.com/phoenixy/p/17591151.html