I want to update the application.properties when i login the application.
public class DemoApplication {
@Value("${spring.application.webServer}")
private String webServer;
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@RequestMapping("/setProperty")
public String webServer() {
return webServer;
}
}
I want to set the application.properties while calling setProperty endpoint.is it possible to do with spring boot!