0

Example

in Development Mode and Production Mode the following link is same

If you requested this password change, please click the link below to set a new password: http://www.facebook.com/reset_password?token=12345&email=test@gmail.com

But i want two different links for Prod & Dev Such as

For Dev

If you requested this password change, please click the link below to set a new password: http://www.facebook.com/reset_password?token=12345&email=test@gmail.com

For Prod

If you requested this password change, please click the link below to set a new password: http://www.twitter.com/reset_password?token=12345&email=test@gmail.com

Liyakhat Ali Sheikh
  • 163
  • 1
  • 5
  • 17
  • 1
    Maybe [profiles](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html) can help you here – Youcef LAIDANI Aug 27 '18 at 09:11

1 Answers1

0

You can have application.properties application-default.properties application-dev.properties etc

you can switch profiles by command line args to the jvm

you can override some things at test time using @TestPropertySource

Refer these links :

How to override application.properties during production in Spring-Boot?

https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html

Alien
  • 15,141
  • 6
  • 37
  • 57