application.yml
2.32 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
74
75
76
77
78
79
80
81
82
83
#配置日志
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
# 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