-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathapplication-dev.yml
More file actions
127 lines (120 loc) · 3.99 KB
/
Copy pathapplication-dev.yml
File metadata and controls
127 lines (120 loc) · 3.99 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
server:
port: 9090
spring:
config:
activate:
on-profile: dev
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
jackson:
date-format: yyyy-MM-dd HH:mm:ss
datasource:
driver-class-name: org.mariadb.jdbc.Driver
username: root
password: 111111
url: jdbc:mariadb://localhost:3306/tiny_engine_data_java?useUnicode=true&useSSL=false&characterEncoding=utf8
type: com.alibaba.druid.pool.DruidDataSource
druid:
initial-size: 5 # 连接池初始化时建立的连接数,默认值为 0。
min-idle: 5 # 连接池中最小的空闲连接数,默认值为 0。
max-active: 20 # 连接池中最大活动连接数(即同时可以被请求的连接数),默认值为 8。
test-on-borrow: true # 在从连接池获取连接时,是否进行有效性检查,默认值为 false。
validation-query: SELECT 1 # 用于检测连接是否有效的 SQL 查询语句,通常为简单的查询,比如 `SELECT 1`。如果连接不可用,会被关闭并重新建立。
max-wait: 60000 # 获取连接的最大等待时间(单位:毫秒),超时会抛出异常,默认值为 30000。
time-between-eviction-runs-millis: 60000 # 空闲连接检测线程运行的时间间隔(单位:毫秒)。空闲连接检测线程会定期检查空闲连接,默认值为 30000。
min-evictable-idle-time-millis: 300000 # 连接在池中保持空闲的最小时间(单位:毫秒)。如果空闲时间超过这个值,连接将被回收,默认值为 1800000。
pool-prepared-statements: true # 是否缓存 PreparedStatement 对象,默认值为 true。
max-open-prepared-statements: 20 # 最大缓存的 PreparedStatement 数量,默认值为 -1,表示无限制。如果 `pool-prepared-statements` 设置为 true,设置此值以限制缓存数量。
ai:
mcp:
server:
enabled: true
protocol: STREAMABLE
version: 1.0.0
tool-change-notification: true
type: SYNC
annotation-scanner:
enabled: false
capabilities:
tool: true
streamable-http:
mcp-endpoint: /tiny-engine/mcp
name: tiny-engine-mcp
# 清空任务配置
cleanup:
enabled: false
use-truncate: false
cron-expression: "0 0 0 * * ?"
send-warning: true
whitelist-tables:
- t_resource
- t_resource_group
- r_resource_group_resource
- t_app_extension
- t_block
- t_block_carriers_relation
- t_block_group
- t_block_history
- r_material_block
- r_material_history_block
- r_block_group_block
- t_datasource
- t_i18n_entry
- t_model
- t_page
- t_page_history
- t_page_template
#切面启用
aop:
proxy-target-class: true #默认为false
auto: true #默认为false
springdoc:
api-docs:
#是否开启文档功能
enabled: true
#swagger后端请求地址
path: /api-docs
swagger-ui:
enabled: true
path: /swagger-ui.html #自定义swagger-ui HTML文档路径
#包扫描路径
packages-to-scan: com.tinyengine.it.controller
mybatis-plus:
mapper-locations: classpath:mappers/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
auto-mapping-behavior: full
type-handlers-package: com.tinyengine.it.common.handler
logging:
level:
ROOT: INFO
druid.sql.Statement: INFO
pattern:
file: "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
file:
name: /logs
cors:
allowed-origins: "*"
ai:
allow-any-host: false
allowed-hosts:
- api.openai.com
- api.deepseek.com
- dashscope.aliyuncs.com
- qianfan.baidubce.com
- api.hunyuan.cloud.tencent.com
- ark.cn-beijing.volces.com
- open.bigmodel.cn
- api.moonshot.cn
- api.01.ai
- api.minimax.chat
- spark-api.cn-huabei-1.xf-yun.com
- api.sensenova.cn
- api.baichuan-ai.com
- api.tiangong.cn
- localhost
- 127.0.0.1
- raw.githubusercontent.com