application.yml
2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#配置日志
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