SyntaxFix
Write A Post
Hire A Developer
Questions
If you set it in Java code, you can set it like this
static { System.getProperties().setProperty("env", "test"); System.getProperties().setProperty("spring.application.name", "spring-example"); }
reference:
https://stackoverflow.com/a/60654275/4712855
https://stackoverflow.com/a/10774432/4712855