跳过正文

SQLite配置

·70 字·1 分钟·
目录

创建db文件
#

sqlite3 dbname.db

springboot集成sqlite和druid
#

spring:
  datasource:
    url: jdbc:sqlite:lib/asir.db
    driver-class-name: org.sqlite.JDBC
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 5
      min-idle: 5
      max-active: 20
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      validation-query: SELECT 1
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      pool-prepared-statements: true
      max-pool-prepared-statement-per-connection-size: 20
      connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
作者
Azur Tian
一个要成为海贼王的男人!

相关文章

图床搭建

·52 字·1 分钟
download picgo program https://github.com/Molunerfinn/PicGo open github personal page, choose settings and open develper settings, create a new classic token and check the repo box, then generate and copy the token set up the picgo program, choose github as the storage service, paste the token, choose the repo and the branch, then save