Closed
Description
In spring boot 3.4.5 I could setup my management server port as an env var with a prefix since 3.5.0 this is no longer the case. This might be due to changes from #45549
I could have
@SpringBootApplication
public class SpringBootIssuesApplication {
public static void main(String[] args) {
SpringApplicationBuilder myApp = new SpringApplicationBuilder(SpringBootIssuesApplication.class);
myApp.environmentPrefix("myapp");
myApp.run(args);
}
}
and launching my app with env var : MYAPP_MANAGEMENT_SERVER_PORT=9090
would start management server on 9090. since 3.5.0 I need to put MANAGEMENT_SERVER_PORT=9090
to have the same behavior