#配置日志 logging: config : classpath:logback-spring.xml dirpath: D:/xlyweberp/logs/xlyAi level: root: info com.xly: debug com.xlyflow: debug org.springframework: warn server: port: 8099 servlet: context-path: /xlyAi encoding: charset: UTF-8 enabled: true compression: enabled: true mime-types: audio/mpeg spring: main: allow-bean-definition-overriding: true application: name: xlyAi version: 1.0.0 thymeleaf: prefix: classpath:/templates/ suffix: .html mode: HTML encoding: UTF-8 cache: false # 开发时关闭缓存 mvc: static-path-pattern: /static/** web: resources: static-locations: classpath:/static/ # 禁用默认的静态资源处理规则 add-mappings: 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) # redis: # host: 127.0.0.1 # password: xlyXLY2015 # port: 6380 # database: 8 # index # timeout: 30000ms # 连接超时时长(毫秒) # block-when-exhausted: true #redis配置结束 # lettuce: # pool: # # 连接池中的最大空闲连接 # max-idle: 20 # # 连接池中的最小空闲连接 # min-idle: 20 # # 连接池最大连接数(使用负值表示没有限制) # max-active: 200 # # 连接池最大阻塞等待时间(使用负值表示没有限制) # max-wait: -1 # application.yml 或 application.properties langchain4j: ollama: # 聊天模型配置(用于一般对话) base-url: http://121.43.128.225:11434 chat-model-name: qwen2.5:7b-instruct # SQL/代码模型配置(专门用于代码和SQL生成) sql-model-name: qwen2.5-coder:14b # 或者如果两个模型在同一服务器,可以使用同一个URL mybatis: mapper-locations: classpath:mapper/*.xml type-aliases-package: com.xly.entity configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 情感预设缓存 cache: enabled: true max-size: 100 # 最大缓存条目数 expire-time: 3600 # 缓存过期时间(秒) # TTS配置 tts: python: url: http://localhost:8000 timeout: 30000 max-connections: 10 erp: baseurl: http://118.178.19.35:8080/xlyEntry_saas