How to read application.yml in spring boot | Read data types in YAML | Spring Boot

How to read application.yml in spring boot | Read data types in YAML | Spring Boot

Manikanth Vanka

2 года назад

12,216 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Manasi Chavan
Manasi Chavan - 11.07.2023 19:25

Hi, thank you for sharing, i jave a doubt, when i tried to print the values, for each value i am getting as null

Ответить
Muhammad Numan Jabbar
Muhammad Numan Jabbar - 24.06.2023 13:04

Good Share ! Can you please tell us how to access the values for nested structures when the key name is same in yml file. For example,
employees:
- name: John Doe
age: 30
- name: Jane Smith
age: 35


Thanks in anticipation

Ответить
Akshay Dubey
Akshay Dubey - 16.11.2022 18:16

Able to access the value in src/main but not able to access them in src/test. Could you please provide some guidance on that?

Ответить
FM NEWS
FM NEWS - 17.10.2022 20:09

Good share .. Thank🙏👍

Ответить
Pourya Biodie
Pourya Biodie - 18.08.2022 15:10

Thanks!
I needed this!

Ответить
Akshay Tiwari
Akshay Tiwari - 21.01.2022 19:17

how to read below yml format ?
config:
env:
- dev
- qa
- prod

Ответить
Aman Singh
Aman Singh - 10.09.2021 21:09

Nice video....can you please tell if there is any similar way to read the yaml file if we are not using Spring boot.....Please do reply...Thank you in advance.

Ответить
RATHNAM SASI
RATHNAM SASI - 27.06.2021 19:03

Hi

Ответить