sqlite
- 嵌入型数据库
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.5.1</version>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.36.0.3</version>
</dependency>
配置文件
spring.datasource.driver-class-name=org.sqlite.JDBC
# 相对路径 src 同级别目录下的resources
spring.datasource.url=jdbc:sqlite:resources/sqlite/ssm.db
spring.datasource.username=
spring.datasource.password=
mybatis.mapperLocations=classpath:mapper/**/*.xml
- 其他和mysql大致相同