org.springframework.boot.actuate.autoconfigure.ManagementServerProperties Java Examples

The following examples show how to use org.springframework.boot.actuate.autoconfigure.ManagementServerProperties. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActuatorContextConfig.java    From onetwo with Apache License 2.0 5 votes vote down vote up
/***
 * 修改actuator的默认contextPath
 */
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
	if(bean instanceof ManagementServerProperties){
		/*ManagementServerProperties props = (ManagementServerProperties) bean;
		if(StringUtils.isBlank(props.getContextPath())){
			props.setContextPath(BootWebUtils.CONTROLLER_PREFIX+"/management");
		}*/
		/*if(props.getAddress()==null){
			props.setAddress(NetUtils.getInetAddress("127.0.0.1", null));
		}*/
	}
	return bean;
}