• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Read and write value from active profile in spring boot

Resolved: Read and write value from active profile in spring boot

0
By Isaac Tonny on 15/03/2023 Issue
Share
Facebook Twitter LinkedIn

In this post, we will see how to resolve Read and write value from active profile in spring boot

Question:

I have some values in application-dev and application-qa properties. Now based on my active profile I would like to change the
I know that @Profile gives me my active profile but I am not very successful in fetching that value?

Best Answer:

Good Evening Friend, have you tried using the following snippet:

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com

java spring-boot
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Comments are closed.

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.