application.yml 2.05 KB
#配置日志
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

langchain4j:
  ollama:
    base-url: http://112.82.245.194:41434
    # 聊天模型(saaslocal 覆盖为 qwen3:14b)
    chat-model-name: qwen2.5:14b
    # SQL/代码模型(QueryTool NL2SQL 专用)
    sql-model-name: qwen2.5-coder:7b

erp:
  baseurl: http://118.178.19.35:8080/xlyEntry_saas