BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistratio
2021-03-02 18:28
标签:erro tab def spring with dep lis hub details https://www.cnblogs.com/edhg/p/10130112.html https://blog.csdn.net/yudianxiaoxiao/article/details/93674293 BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistration' 以及 Windows 找到端口对应pid 标签:erro tab def spring with dep lis hub details 原文地址:https://www.cnblogs.com/linus-tan/p/13037618.html
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableFeignClients
@SpringBootApplication
public class WebappApplication{
public static void main(String[] args) {
SpringApplication.run(WebappApplication.class, args);
}
}
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableFeignClients
@SpringBootApplication
public class WebappApplication implements BeanFactoryPostProcessor {
@Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
BeanDefinition bd = beanFactory.getBeanDefinition("feignContext");
bd.setDependsOn("eurekaServiceRegistry", "inetUtils");
}
public static void main(String[] args) {
SpringApplication.run(WebappApplication.class, args);
}
}
netstat -ano| findstr "8002"
Get-Process -Id (Get-NetTCPConnection -LocalPort 8002).OwningProcess
taskkill /F /PID 6640
文章标题:BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistratio
文章链接:http://soscw.com/index.php/essay/59161.html