springboot启动微服务项目时,启动后没有端口号信息,也访问不了

时间:2023-01-23 12:19:33
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase - Add child StandardWrapper[dispatcherServlet] StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]] to [INITIALIZING]
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Servlet,WebModule=//localhost/,name=dispatcherServlet,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet] Tomcat:j2eeType=Servlet,WebModule=//localhost/,name=dispatcherServlet,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]] to [INITIALIZED]
2018-06-05 13:43:42.282 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]] to [STARTING_PREP]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]]] to [INITIALIZING]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]]] to [INITIALIZED]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]]] to [STARTING_PREP]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardWrapperValve[dispatcherServlet]] to [INITIALIZING]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardWrapperValve[dispatcherServlet]] to [INITIALIZED]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardWrapperValve[dispatcherServlet]] to [STARTING_PREP]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardWrapperValve[dispatcherServlet]] to [STARTING]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardWrapperValve[dispatcherServlet]] to [STARTED]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]]] to [STARTING]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]]] to [STARTED]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]] to [STARTING]
2018-06-05 13:43:42.283 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[].StandardWrapper[dispatcherServlet]] to [STARTED]
2018-06-05 13:43:42.293 [localhost-startStop-1] DEBUG org.apache.catalina.core.StandardContext - Configuring application event listeners
2018-06-05 13:43:42.293 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Configuring event listener class 'org.apache.tomcat.websocket.server.WsContextListener'
2018-06-05 13:43:42.296 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Sending application start events
2018-06-05 13:43:42.325 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.session.StandardManager[]] to [INITIALIZING]
2018-06-05 13:43:42.325 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:type=Manager,host=localhost,context=/
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister org.apache.catalina.session.StandardManager[] Tomcat:type=Manager,host=localhost,context=/
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.session.StandardManager[]] to [INITIALIZED]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.session.StandardManager[]] to [STARTING_PREP]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.springframework.boot.web.embedded.tomcat.LazySessionIdGenerator@32528b26] to [INITIALIZING]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.springframework.boot.web.embedded.tomcat.LazySessionIdGenerator@32528b26] to [INITIALIZED]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.springframework.boot.web.embedded.tomcat.LazySessionIdGenerator@32528b26] to [STARTING_PREP]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.springframework.boot.web.embedded.tomcat.LazySessionIdGenerator@32528b26] to [STARTING]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.springframework.boot.web.embedded.tomcat.LazySessionIdGenerator@32528b26] to [STARTED]
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.session.StandardManager - Start: Loading persisted sessions
2018-06-05 13:43:42.326 [localhost-startStop-1] DEBUG org.apache.catalina.session.StandardManager - Loading persisted sessions from [SESSIONS.ser]
2018-06-05 13:43:42.327 [localhost-startStop-1] DEBUG org.apache.catalina.session.StandardManager - No persisted data file found
2018-06-05 13:43:42.327 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.session.StandardManager[]] to [STARTING]
2018-06-05 13:43:42.327 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.session.StandardManager[]] to [STARTED]
2018-06-05 13:43:42.327 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Starting filters
2018-06-05 13:43:42.327 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Starting filter 'requestContextFilter'
2018-06-05 13:43:42.332 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Filter,WebModule=//localhost/,name=requestContextFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.332 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister ApplicationFilterConfig[name=requestContextFilter, filterClass=org.springframework.boot.web.servlet.filter.OrderedRequestContextFilter] Tomcat:j2eeType=Filter,WebModule=//localhost/,name=requestContextFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.332 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Starting filter 'Tomcat WebSocket (JSR356) Filter'
2018-06-05 13:43:42.332 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Filter,WebModule=//localhost/,name=Tomcat WebSocket (JSR356) Filter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister ApplicationFilterConfig[name=Tomcat WebSocket (JSR356) Filter, filterClass=org.apache.tomcat.websocket.server.WsFilter] Tomcat:j2eeType=Filter,WebModule=//localhost/,name=Tomcat WebSocket (JSR356) Filter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Starting filter 'httpPutFormContentFilter'
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Filter,WebModule=//localhost/,name=httpPutFormContentFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister ApplicationFilterConfig[name=httpPutFormContentFilter, filterClass=org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter] Tomcat:j2eeType=Filter,WebModule=//localhost/,name=httpPutFormContentFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Starting filter 'hiddenHttpMethodFilter'
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Filter,WebModule=//localhost/,name=hiddenHttpMethodFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister ApplicationFilterConfig[name=hiddenHttpMethodFilter, filterClass=org.springframework.boot.web.servlet.filter.OrderedHiddenHttpMethodFilter] Tomcat:j2eeType=Filter,WebModule=//localhost/,name=hiddenHttpMethodFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] -  Starting filter 'characterEncodingFilter'
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:j2eeType=Filter,WebModule=//localhost/,name=characterEncodingFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister ApplicationFilterConfig[name=characterEncodingFilter, filterClass=org.springframework.boot.web.servlet.filter.OrderedCharacterEncodingFilter] Tomcat:j2eeType=Filter,WebModule=//localhost/,name=characterEncodingFilter,J2EEApplication=none,J2EEServer=none
2018-06-05 13:43:42.333 [localhost-startStop-1] DEBUG org.apache.catalina.core.StandardContext - Starting completed
2018-06-05 13:43:42.334 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]] to [STARTING]
2018-06-05 13:43:42.334 [localhost-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]] to [STARTED]
2018-06-05 13:43:42.335 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost]]] to [INITIALIZING]
2018-06-05 13:43:42.336 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost]]] to [INITIALIZED]
2018-06-05 13:43:42.336 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost]]] to [STARTING_PREP]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.valves.ErrorReportValve[localhost]] to [INITIALIZING]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:type=Valve,host=localhost,name=ErrorReportValve
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister org.apache.catalina.valves.ErrorReportValve[localhost] Tomcat:type=Valve,host=localhost,name=ErrorReportValve
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.valves.ErrorReportValve[localhost]] to [INITIALIZED]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.valves.ErrorReportValve[localhost]] to [STARTING_PREP]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.valves.ErrorReportValve[localhost]] to [STARTING]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.valves.ErrorReportValve[localhost]] to [STARTED]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardHostValve[localhost]] to [INITIALIZING]
2018-06-05 13:43:42.337 [Tomcat-startStop-1] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:type=Valve,host=localhost,name=StandardHostValve
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister org.apache.catalina.core.StandardHostValve[localhost] Tomcat:type=Valve,host=localhost,name=StandardHostValve
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardHostValve[localhost]] to [INITIALIZED]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardHostValve[localhost]] to [STARTING_PREP]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardHostValve[localhost]] to [STARTING]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardHostValve[localhost]] to [STARTED]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost]]] to [STARTING]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat].StandardHost[localhost]]] to [STARTED]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost]] to [STARTING]
2018-06-05 13:43:42.338 [Tomcat-startStop-1] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat].StandardHost[localhost]] to [STARTED]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat]]] to [INITIALIZING]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat]]] to [INITIALIZED]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat]]] to [STARTING_PREP]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardEngineValve[Tomcat]] to [INITIALIZING]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.tomcat.util.modeler.Registry - Managed= Tomcat:type=Valve,name=StandardEngineValve
2018-06-05 13:43:42.339 [main] DEBUG org.apache.tomcat.util.modeler.BaseModelMBean - preRegister org.apache.catalina.core.StandardEngineValve[Tomcat] Tomcat:type=Valve,name=StandardEngineValve
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardEngineValve[Tomcat]] to [INITIALIZED]
2018-06-05 13:43:42.339 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardEngineValve[Tomcat]] to [STARTING_PREP]
2018-06-05 13:43:42.340 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardEngineValve[Tomcat]] to [STARTING]
2018-06-05 13:43:42.340 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.core.StandardEngineValve[Tomcat]] to [STARTED]
2018-06-05 13:43:42.340 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat]]] to [STARTING]
2018-06-05 13:43:42.340 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [Pipeline[StandardEngine[Tomcat]]] to [STARTED]
2018-06-05 13:43:42.340 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat]] to [STARTING]
2018-06-05 13:43:42.341 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardEngine[Tomcat]] to [STARTED]
2018-06-05 13:43:42.342 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.mapper.MapperListener@1823b9c4] to [STARTING_PREP]
2018-06-05 13:43:42.342 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.mapper.MapperListener@1823b9c4] to [STARTING]
2018-06-05 13:43:42.344 [main] DEBUG org.apache.catalina.mapper.Mapper - Registered host [localhost]
2018-06-05 13:43:42.344 [main] DEBUG org.apache.catalina.mapper.MapperListener - Register Wrapper [default] in Context [] for service [StandardService[Tomcat]]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.mapper.MapperListener - Register Wrapper [dispatcherServlet] in Context [] for service [StandardService[Tomcat]]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.mapper.MapperListener - Register Context [] for service [StandardService[Tomcat]]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.mapper.MapperListener - Register host [localhost] at domain [null] for service [StandardService[Tomcat]]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [org.apache.catalina.mapper.MapperListener@1823b9c4] to [STARTED]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardService[Tomcat]] to [STARTED]
2018-06-05 13:43:42.345 [main] DEBUG org.apache.catalina.util.LifecycleBase - Setting state for [StandardServer[-1]] to [STARTED]
2018-06-05 13:46:42.349 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG org.apache.catalina.session.ManagerBase - Start expire sessions StandardManager at 1528177602349 sessioncount 0
2018-06-05 13:46:42.350 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG org.apache.catalina.session.ManagerBase - End expire sessions StandardManager processingTime 1 expired sessions: 0
2018-06-05 13:49:42.354 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG org.apache.catalina.session.ManagerBase - Start expire sessions StandardManager at 1528177782354 sessioncount 0
2018-06-05 13:49:42.354 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG org.apache.catalina.session.ManagerBase - End expire sessions StandardManager processingTime 0 expired sessions: 0


如上,同时最后的两行代码不断重复,控制台停止按钮一直显示红方框,但是就是没有端口号信息,也不能访问,网上查询也没有解决

最后发现是因为在注册中心注册时出的问题,我的配置文件没有写注册中心的端口号,将其更正以后,就OK了。

# dubbo 注册地址及端口.
zookeeper.address=127.0.0.1
#192.168.3.54:2181
dubbo.port=20886
将如上的注册中心更改为zookeeper.address=127.0.0.1:2181就ok了。