- 错误信息
2021-04-27 09:07:22,214 ERROR Startup errors : {}
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
- 还有就是启动的时候显示 cluster模式
- 解决方案
startup.cmd -m standalone
启动带上参数就行,因为默认启动是cluster模式,我们带参数改为单机版启动就行。
- 我也是看startup.cmd源码得出来的