vlog/book-api/src/main/resources/application-dev.yml
2025-05-14 04:20:56 +08:00

69 lines
2.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: ${port:8099}
spring:
datasource: # 数据源的相关配置
type: com.zaxxer.hikari.HikariDataSource # 数据源的类型可以更改为其他的数据源配置比如druid
driver-class-name: com.mysql.cj.jdbc.Driver # mysql/MariaDB 的数据库驱动类名称
# url: jdbc:mysql://82.156.121.2:23306/shop_dev?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
url: jdbc:mysql://43.143.227.203:23306/wzj_shop?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
username: wzj
password: A085F27A43B0
hikari:
connection-timeout: 30000 # 等待连接池分配连接的最大时间毫秒超过这个时长还没有可用的连接则会抛出SQLException
minimum-idle: 5 # 最小连接数
maximum-pool-size: 20 # 最大连接数
auto-commit: true # 自动提交
idle-timeout: 300000 # 连接超时的最大时长毫秒超时则会被释放retired
pool-name: DataSourceHikariCP # 连接池的名字
max-lifetime: 540000 # 连接池的最大生命时长毫秒超时则会被释放retired
connection-test-query: SELECT 1
redis:
host: 82.156.121.2
port: 26379
password: e4ea0caebfd2
database: 1 # 使用的数据库编号
jedis:
pool:
max-idle: 200 # 最大空闲连接
max-active: 200 # 连接池最大连接数
max-wait: 100 # 连接池最大阻塞等待时间, -1表示没有限制
min-idle: 4 # 最小空闲连接
timeout: 50000
redisson:
file: classpath:redisson.yml
data:
mongodb:
# uri: mongodb://admin:A1969bf8@82.156.121.2:37017/admin
uri: mongodb://admin:A1969bf8@43.143.227.203:37017/admin
rabbitmq:
host: 182.92.182.217
port: 5672
username: admin
password: 123123
virtual-host: imooc-red-book
application:
name: imooc-red-book-nacos
cloud:
nacos:
discovery:
# server-addr: 182.92.182.217:8848 # nacos 所在的地址
server-addr: 82.156.121.2:28848 # nacos 所在的地址
# 打开监控
management:
endpoint:
web:
exposure:
include: '*'
# MinIO 配置
minio:
endpoint: http://43.143.227.203:29000 # MinIO服务地址
fileHost: http://43.143.227.203:29000 # 文件地址host
bucketName: bucket # 存储桶bucket名称
accessKey: 5Zo50S9AHlszNjIqnHI1 # 用户名
secretKey: 6QOoW0QL7WR2tYId5b3WcajJVmNnnMaFl8CGjKsD # 密码
imgSize: 1024 # 图片大小限制单位m
fileSize: 1024 # 文件大小限制单位m