Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动order报错 #38

Closed
jonyhy96 opened this issue Dec 22, 2017 · 1 comment
Closed

启动order报错 #38

jonyhy96 opened this issue Dec 22, 2017 · 1 comment

Comments

@jonyhy96
Copy link

我在把您的项目部署到K8S上的时候
infrastructure
basic-ms
monitor-ms
虽然报的一些异常但是还是启动成功能跑起来,spring-boot-admin里有几个是跑起来的但是还是offine
比较棘手的问题就是因为没法用docker-compose部署
所以我准备单个单个服务部署
business启动都报错,部署order的时候报出了如下的错误
Error handling failed (ApplicationEventMulticaster n ot initialized - call 'refresh' before multicasting events via the context: org. springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationCont ext@45ca843: startup date [Thu Jan 01 08:00:00 CST 1970]; parent: org.springfram ework.context.annotation.AnnotationConfigApplicationContext@2ed94a8b)
分配的CPU是0.5核,内存512MB

@jonyhy96
Copy link
Author

问题原因是config-server不是以url注册,无法dns 服务hostname
解决方式:在config-server的参数里加上preferIpAddress: true即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant