| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- server:
- port: 8004
- spring:
- application:
- name: ai-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.ai.entity
- configuration:
- map-underscore-to-camel-case: true
- log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
- global-config:
- db-config:
- id-type: assign_uuid
-
- # Nacos配置
- cloud:
- nacos:
- discovery:
- server-addr: ${NACOS_SERVER_ADDR:localhost:8848}
- namespace: public
- group: DEFAULT_GROUP
- # DeepSeek API配置
- deepseek:
- api-url: ${DEEPSEEK_API_URL:https://api.deepseek.com}
- api-key: ${DEEPSEEK_API_KEY:}
- timeout: 30000
- # 日志配置
- logging:
- level:
- root: INFO
- com.lingyue: DEBUG
|