项目端口设置 server.port=8092 #redis设置 spring.cache.type=redis spring.redis.database=1 spring.redis.host=127.0.0.1 spring.redis.password=jxkth123456 spring.redis.port=6379 spring.redis.ssl=false spring.redis.timeout=5000 spring.redis.expire=3600 properties转yml内容:server:

port: 8092

spring: cache: type: redis redis: database: 1 host: 127.0.0.1 password: jxkth123456 port: 6379 ssl: false timeout: 5000 expire: 3600

Spring Boot 项目配置:从 properties 到 yml 的转换示例

原文地址: https://www.cveoy.top/t/topic/qbrm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录