server: port: 8002 spring: application: name: document-service # 数据库配置(Druid) datasource: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: org.postgresql.Driver url: jdbc:postgresql://localhost:5432/lingyue_zhibao username: ${DB_USERNAME:postgres} password: ${DB_PASSWORD:postgres} 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 filters: stat,wall,slf4j # MyBatis Plus配置 mybatis-plus: mapper-locations: classpath*:mapper/**/*Mapper.xml type-aliases-package: com.lingyue.document.entity configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl global-config: db-config: id-type: assign_uuid properties: hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect # Nacos配置 cloud: nacos: discovery: server-addr: ${NACOS_SERVER_ADDR:localhost:8848} namespace: public group: DEFAULT_GROUP # 日志配置 logging: level: root: INFO com.lingyue: DEBUG