1, pom文件里添加依赖
bash
<!--sqlite-->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
</dependency>
2,yml文件引入sqlite数据库
bash
spring:
datasource:
driver-class-name: org.sqlite.JDBC
url: jdbc:sqlite:src/main/resources/db/dataset.db
logging:
level:
root: info
3,在generator.properties引入sqlite
bash
jdbc.driverClass=org.sqlite.JDBC
jdbc.connectionURL=jdbc:sqlite:app/src/main/resources/db/dataset.db
jdbc.userId=
jdbc.password=