08 2023 档案
摘要:**SpringBoot支持通过properties或者yaml方式读取配置** 1. yaml配置方式(**SpringBoot推荐**) ```yaml people: name: wcjjj${random.uuid}} # 可以使用随机uuid方式赋值 age: 31 happy: true
阅读全文
摘要:```yaml # yaml对空格敏感且严格 # 对象 User: name: xxx age: 18 school: Tqinghua # 对象行内 User: {name: xxx,age: 18,school: Tqinghua} # 数组 pets: - cat - dog - duck `
阅读全文