Spring Boot @ConfigurationProperties Example | How to read external properties file in spring boot ?

Spring Boot @ConfigurationProperties Example | How to read external properties file in spring boot ?

KK JavaTutorials

2 года назад

19,871 Просмотров

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


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

SB
SB - 18.10.2022 08:33

can you show how to autowire service to controller without @annotation

Ответить
Ashish Sahu
Ashish Sahu - 24.07.2022 19:44

Specific to the content. Interesting. Thank you!!

Ответить
Bhavik Gandhi
Bhavik Gandhi - 21.03.2022 00:58

You are hardcoding the environment value("dev") in the code. Is there a way to make it configurable?

Ответить
Gaurav Bhagat
Gaurav Bhagat - 14.08.2021 13:50

Well Explained. Just wanted to know we can also use @Value annotation to read data from properties file. So when to use @ConfigurationProperties and @Value?

Ответить
Vivek Kumar Singh
Vivek Kumar Singh - 22.07.2021 07:31

Excellent👍🙏🙏🙏

Ответить