question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No option to update env or refresh properties.

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
guerricmcommented, May 4, 2020

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

0reactions
agamgupta6commented, Jan 11, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found