Spring Cloud Config 使用之后,无法启动问题

	@EnableMBeanExport
	@Bean
	public IntegrationMBeanExporter integrationMbeanExporter(@Value("spring.jmx.default-domain") String domain, MBeanServer mBeanServer) {
		IntegrationMBeanExporter exporter = new IntegrationMBeanExporter();
		exporter.setDefaultDomain(domain);
		exporter.setServer(mBeanServer);
		return exporter;
	}
	@Bean
	@Primary
	public AnnotationMBeanExporter mbeanExporter(ObjectNamingStrategy namingStrategy, MBeanServer mBeanServer) {
		AnnotationMBeanExporter exporter = new AnnotationMBeanExporter();
		exporter.setRegistrationPolicy(RegistrationPolicy.FAIL_ON_EXISTING);
		exporter.setNamingStrategy(namingStrategy);
		exporter.setServer(mBeanServer);
		return exporter;
	}

你可能感兴趣的:(Spring Cloud Config 使用之后,无法启动问题)