
io.github.hengyunabc.endpoints.autoconfigure2.ManagementApplicationcontextHolderConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of endpoints-spring-boot-autoconfigure2 Show documentation
Show all versions of endpoints-spring-boot-autoconfigure2 Show documentation
Show all spring boot endpoints mappings url.
The newest version!
package io.github.hengyunabc.endpoints.autoconfigure2;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
@ManagementContextConfiguration
public class ManagementApplicationcontextHolderConfiguration {
@Autowired
private ConfigurableApplicationContext context;
@PostConstruct
public void init() {
ManagementApplicationcontextHolder holder = context.getBean(ManagementApplicationcontextHolder.class);
holder.setManagementApplicationContext(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy