SaltFish
2022-02-10 0209dc89c9d5a65aaa1c6e3ae8140dfdb5020dcb
src/main/resources/all-application.yml
@@ -5,6 +5,11 @@
spring:
    # [可选]上传文件大小限制
    servlet:
        multipart:
            max-file-size: 10MB
            max-request-size: 100MB
    # REDIS数据库配置
    redis:
        # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
@@ -27,7 +32,7 @@
    datasource:
        # 使用mysql 打开23-28行注释, 删除29-36行
        # name: wvp
        # url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
        # url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&allowMultiQueries=true
        # username:
        # password:
        # type: com.alibaba.druid.pool.DruidDataSource
@@ -38,6 +43,9 @@
        password:
        type: com.alibaba.druid.pool.DruidDataSource
        driver-class-name:  org.sqlite.JDBC
        journal_mode: WAL
        synchronous: NORMAL
        transaction_mode: IMMEDIATE
        max-active: 1
        min-idle: 1
@@ -153,6 +161,8 @@
    wait-track: false
    # 是否开启接口鉴权
    interface-authentication: true
    # 自动配置redis 可以过期事件
    redis-config: true
    # 接口鉴权例外的接口, 即不进行接口鉴权的接口,尽量详细书写,尽量不用/**,至少两级目录
    interface-authentication-excludes:
        - /api/v1/**
@@ -171,4 +181,4 @@
version:
    version: "@project.version@"
    description: "@project.description@"
    artifact-id: "@project.artifactId@"
    artifact-id: "@project.artifactId@"