| | |
| | | server: |
| | | port: 8080 |
| | | servlet: |
| | | context-path: /admin |
| | | |
| | | spring: |
| | | application: |
| | | name: web-manage-back |
| | | |
| | | #mcv配置 |
| | | mvc: |
| | | pathmatch: |
| | | matching-strategy: ant_path_matcher |
| | | |
| | | # 数据源配置 |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driver-class-name: org.postgresql.Driver |
| | | url: jdbc:postgresql://localhost:5432/web_manage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: postgres |
| | | password: postgres |
| | | password: AES:d9d2d3e0d586e76d02a97c451f3256bffdc806b4c7626904 |
| | | druid: |
| | | # 初始连接数 |
| | | initial-size: 5 |
| | |
| | | secret-key: minioadmin |
| | | bucket-name: web-manage |
| | | |
| | | # MyBatis Plus配置 |
| | | mybatis-plus: |
| | | configuration: |
| | | # 开启驼峰命名 |
| | | map-underscore-to-camel-case: true |
| | | # 开启sql日志 |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | global-config: |
| | | db-config: |
| | | # 主键类型 |
| | | id-type: auto |
| | | # 逻辑删除配置 |
| | | logic-delete-field: deleted |
| | | logic-delete-value: 1 |
| | | logic-not-delete-value: 0 |
| | | mapper-locations: classpath*:/mapper/**/*.xml |
| | | |
| | | # 日志配置 |
| | | logging: |
| | | level: |
| | | com.webmanage: debug |
| | | org.springframework.web: debug |
| | | pattern: |
| | | console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{50} - %msg%n" |
| | | |
| | | # Knife4j配置 |
| | | knife4j: |
| | | enable: true |
| | | setting: |
| | | language: zh-CN |
| | | enable-swagger-models: true |
| | | enable-document-manage: true |
| | | swagger-model-name: 实体类列表 |
| | | basic: |
| | | enable: false |
| | | |
| | | # 购物车配置 |
| | | cart: |
| | | # Redis缓存过期时间(天) |
| | | expire-days: 30 |
| | | # 是否启用数据库持久化 |
| | | enable-persistence: true |
| | | # 是否启用数据一致性检查 |
| | | enable-consistency-check: true |
| | | # 同步策略:realtime(实时同步)、batch(批量同步)、manual(手动同步) |
| | | sync-strategy: realtime |