java - spring application yaml中如何维护rootKey和childKey的多个值?
问题描述
我需要根据输入键从 application.yml 中提取消息。我使用以下方法在 STS 中看到编译错误。非常感谢这里的任何帮助。
parentKey: parent
childKey1: child1
grandChildKey1: grandChild11
grandChildKey2: grandChild12
childKey2: child2
grandChildKey2: grandChild21
解决方案
推荐阅读
- sitemap - 无法在 netlify 上将 sitemap.xml 添加到 Google 控制台
- c# - C# EF Random Order 导致相关列表消失
- python - Python中阈值检测功能的实现
- html - 2 个字符串/值之间的正则表达式捕获
- types - 用于 javascript 的 Flow 的替代品
- keras - Keras input_shape、output_shape、get_weights、get_config 和 summary 的 PyTorch 替代方案是什么
- angular - Angular 6拦截器:获得新令牌后再次请求
- django - 如何通过单击链接在内联表单集中创建新表单
- objective-c - 生成的头文件“MyProject-Swift.h”的位置
- python - Django 组权限激活