-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-dev.yml
More file actions
78 lines (78 loc) · 1.75 KB
/
application-dev.yml
File metadata and controls
78 lines (78 loc) · 1.75 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
# 公共配置文件
# @author which
spring:
# 支持 swagger3
mvc:
pathmatch:
matching-strategy: ant_path_matcher
# session 配置
session:
# 30 天过期
timeout: 2592000
# 数据库配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/api_platform
username: root
password: 123456
redis:
host: localhost
port: 6379
password: 123456
database: 0
rabbitmq:
host: centos
port: 5672
username: hjc
password: 123456
virtual-host: /api
server:
port: 9001
servlet:
context-path: /api
# cookie 30 天过期
session:
cookie:
max-age: 2592000
mybatis-plus:
configuration:
map-underscore-to-camel-case: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
logic-delete-field: isDelete # 全局逻辑删除的实体字段名
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
dubbo:
application:
name: dubbo-springboot-provider
protocol:
name: dubbo
port: -1
registry:
id: nacos-registry
address: nacos://localhost:8848
com:
which:
client:
# gateway host/api(仅用于 dev 环境)
host: http://localhost:9000/api
# 必须修改,否则不能运行 oss 服务
# 对象存储 oss,不会请参考官方文档
alibaba:
cloud:
oss:
endpoint: your_oss_serve_url
access-key: xxx
secret-key: xxx
# 必须修改至少一个,否则不能运行 AI 服务
# AI 服务,不会请参考官方文档
# 鱼聪明AI
yuapi:
client:
access-key: xxx
secret-key: xxx
# OpenAI
open-ai-client:
api-key: "sk-xxx"
api-host: https://代理地址