#配置日志 logging: config : classpath:logback-spring.xml dirpath: D:/xlyweberp/logs/xlyAi level: root: info com.xly: debug org.springframework: warn dev.langchain4j: DEBUG server: port: 8099 servlet: context-path: /xlyAi encoding: charset: UTF-8 enabled: true spring: application: name: xlyAi version: 1.0.0 thymeleaf: prefix: classpath:/templates/ suffix: .html mode: HTML encoding: UTF-8 cache: false # 开发时关闭缓存 datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://118.178.19.35:3318/xlyweberp_saas?allowPublicKeyRetrieval=true&keepAlive=true&autoReconnect=true&autoReconnectForPools=true&connectTimeout=30000&socketTimeout=180000&nullCatalogMeansCurrent=true&&allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=utf-8&failOverReadOnly=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=CONVERT_TO_NULL username: xlyprint password: xlyXLYprint2016 # 连接池配置(使用HikariCP) hikari: maximum-pool-size: 20 minimum-idle: 10 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 # REDIS (RedisProperties) data: redis: host: 127.0.0.1 password: xlyXLY2015 port: 16379 database: 0 # index timeout: 30000ms # 连接超时时长(毫秒) block-when-exhausted: true lettuce: pool: max-active: 8 # 连接池最大连接数 max-idle: 8 # 连接池最大空闲连接 min-idle: 0 # 连接池最小空闲连接 # Actuator配置 management: endpoints: web: exposure: include: health,info,metrics endpoint: health: show-details: always # LLM:OpenAI 兼容协议(Ollama /v1、vLLM、云端网关皆可,换供应商只改这里) llm: base-url: http://112.82.245.194:41434/v1 api-key: ollama # Ollama 不校验(任意非空);云端填真实 key chat-model: qwen3.6-27b-iq3:latest # SQL/代码模型(QueryTool NL2SQL 专用) sql-model: qwen3.6-27b-iq3:latest erp: baseurl: http://118.178.19.35:8080/xlyEntry_saas