spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: jiejie931225
url: jdbc:mysql://localhost:3306/vhr?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
rabbitmq:
username: guest
password: guest
host: 127.0.0.1
publisher-confirms: true
publisher-returns: true
redis:
host: 127.0.0.1
database: 0
port: 6379
password:
cache:
cache-names: menus_cache
server:
port: 8081
#开启gzip压缩,提高页面反应速度
compression:
enabled: true
fastdfs:
nginx:
host: http://192.168.91.128/
logging:
level:
org.javaboy.vhr.*: debug
springboot开启压缩
最新推荐文章于 2026-03-08 23:52:49 发布
本文详细解析了一个包含多种技术栈配置的示例文件,包括数据库连接、消息队列、缓存服务等核心组件的设置参数,旨在展示如何在项目中正确配置和使用这些服务。

220

被折叠的 条评论
为什么被折叠?



