No option to update env or refresh properties.
See original GitHub issueHi,
I am using spring-boot-admin this is my pom for server:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter</artifactId>
<version>2.1.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
In the client I have this:
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>2.1.6</version>
</dependency>
I have enabled all actuator endpoint and made all security to false:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
<version>2.2.0.RELEASE</version>
</dependency>
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
http.csrf().disable();
http.authorizeRequests()
.antMatchers("/actuator/**")
.permitAll()
.anyRequest()
.authenticated()
.and()
.oauth2Login()
.userInfoEndpoint()
.oidcUserService(userService)
I am able to refresh properties from Postman by sending post request to /actuator refresh. But I do not see any option on spring-boot-admin page to change and refresh the configuration property. Is is supported? Did I miss any configuration?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Reloading Properties Files in Spring - Baeldung
Learn a few approaches to getting property values to reload in Spring Beans, including Spring Cloud's refresh scope.
Read more >How to hot-reload properties in Java EE and Spring Boot?
First of all, in my case I no need auto-reload, I just call the REST controller for updating properties. The second case @David...
Read more >Refreshing environment variables
Hello, Is there any way to get IntelliJ to refresh Windows environment variables, e.g. M2_HOME, JBOSS_HOME, etc from within Ant or Maven build ......
Read more >How do you add a Windows environment variable without ...
You have to close the command prompt, and reopen it again, for your path variables to update. The variables are loaded when cmd...
Read more >Spring Cloud Config Refresh Strategies - Soshace
When it comes to refreshing the properties in the application context, there are two steps again; reloading the property sources in the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same issue but after upgraded springboot/springcloud version. For people that have the same thing, the issue reference : https://github.com/spring-projects/spring-boot/issues/20509 and https://github.com/spring-cloud/spring-cloud-commons/issues/681
I found the problem. I was using external configuration and in one of such file “app.cors” was enabled which was preventing the Environment Manager to be displayed.