在用Springboot搭建项目的时候出现“无法访问此网站“是什么情况

这篇文章主要讲解了“在用Spring boot搭建项目的时候出现 “无法访问此网站“ 是什么情况”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“在用Spring boot搭建项目的时候出现 “无法访问此网站“ 是什么情况”吧!

专注于为中小企业提供网站设计、网站制作服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业宽甸免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了千余家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。

在用Spring boot 搭建项目的时候,也是按照往常的步骤搭建的,但是依然访问的时候出现”无法访问此网站“ 的问题。并且项目启动是正常的。

我的启动信息:

"E:\Program Files\Java\jdk1.8.0_171\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57206,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=57205 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "E:\Program Files\Java\jdk1.8.0_171\jre\lib\charsets.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\deploy.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\access-bridge-64.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\cldrdata.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\DNSns.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jaccess.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\jfxrt.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\localedata.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\nashorn.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunec.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunjce_provider.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunmscapi.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\sunpkcs11.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\ext\zipfs.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\javaws.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jce.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jfr.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jfxswt.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\jsse.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\management-agent.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\plugin.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\resources.jar;E:\Program Files\Java\jdk1.8.0_171\jre\lib\rt.jar;E:\workspace\spring-cloud-demo\eureka-server-demo\target\classes;E:\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-server\2.1.2.RELEASE\spring-cloud-starter-netflix-eureka-server-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-starter\2.1.2.RELEASE\spring-cloud-starter-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-context\2.1.2.RELEASE\spring-cloud-context-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\security\spring-security-crypto\5.1.5.RELEASE\spring-security-crypto-5.1.5.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-commons\2.1.2.RELEASE\spring-cloud-commons-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\maven\repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\maven\repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-eureka-server\2.1.2.RELEASE\spring-cloud-netflix-eureka-server-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-web\2.1.6.RELEASE\spring-boot-starter-web-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-json\2.1.6.RELEASE\spring-boot-starter-json-2.1.6.RELEASE.jar;E:\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;E:\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;E:\maven\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.6.RELEASE\spring-boot-starter-tomcat-2.1.6.RELEASE.jar;E:\maven\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.21\tomcat-embed-core-9.0.21.jar;E:\maven\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.21\tomcat-embed-el-9.0.21.jar;E:\maven\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.21\tomcat-embed-websocket-9.0.21.jar;E:\maven\repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;E:\maven\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;E:\maven\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;E:\maven\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;E:\maven\repository\org\springframework\spring-web\5.1.8.RELEASE\spring-web-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-webmvc\5.1.8.RELEASE\spring-webmvc-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.6.RELEASE\spring-boot-starter-actuator-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.6.RELEASE\spring-boot-actuator-autoconfigure-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-actuator\2.1.6.RELEASE\spring-boot-actuator-2.1.6.RELEASE.jar;E:\maven\repository\io\micrometer\micrometer-core\1.1.5\micrometer-core-1.1.5.jar;E:\maven\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\maven\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-freemarker\2.1.6.RELEASE\spring-boot-starter-freemarker-2.1.6.RELEASE.jar;E:\maven\repository\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;E:\maven\repository\org\springframework\spring-context-support\5.1.8.RELEASE\spring-context-support-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.2.RELEASE\spring-cloud-netflix-hystrix-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-aop\2.1.6.RELEASE\spring-boot-starter-aop-2.1.6.RELEASE.jar;E:\maven\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.1.2.RELEASE\spring-cloud-netflix-eureka-client-2.1.2.RELEASE.jar;E:\maven\repository\com\netflix\eureka\eureka-client\1.9.12\eureka-client-1.9.12.jar;E:\maven\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;E:\maven\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;E:\maven\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;E:\maven\repository\joda-time\joda-time\2.10.2\joda-time-2.10.2.jar;E:\maven\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;E:\maven\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;E:\maven\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;E:\maven\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;E:\maven\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;E:\maven\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\maven\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\maven\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\maven\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\maven\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\maven\repository\org\apache\httpcomponents\httpclient\4.5.9\httpclient-4.5.9.jar;E:\maven\repository\org\apache\httpcomponents\httpcore\4.4.11\httpcore-4.4.11.jar;E:\maven\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\maven\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;E:\maven\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\maven\repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;E:\maven\repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;E:\maven\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;E:\maven\repository\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;E:\maven\repository\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;E:\maven\repository\com\netflix\eureka\eureka-core\1.9.12\eureka-core-1.9.12.jar;E:\maven\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;E:\maven\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\maven\repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;E:\maven\repository\com\google\guava\guava\16.0\guava-16.0.jar;E:\maven\repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\maven\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.9.9\jackson-dataformat-xml-2.9.9.jar;E:\maven\repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.9.9\jackson-module-jaxb-annotations-2.9.9.jar;E:\maven\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;E:\maven\repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;E:\maven\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;E:\maven\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.2.RELEASE\spring-cloud-starter-netflix-archaius-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.2.RELEASE\spring-cloud-netflix-ribbon-2.1.2.RELEASE.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.2.RELEASE\spring-cloud-netflix-archaius-2.1.2.RELEASE.jar;E:\maven\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\maven\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.1.2.RELEASE\spring-cloud-starter-netflix-ribbon-2.1.2.RELEASE.jar;E:\maven\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\maven\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\maven\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\maven\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\maven\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\maven\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\maven\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\maven\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\maven\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\maven\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\maven\repository\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;E:\maven\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;E:\maven\repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;E:\maven\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\maven\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\maven\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;E:\maven\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;E:\maven\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;E:\maven\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\maven\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\maven\repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;E:\maven\repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar;E:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar" com.sg.eureka.server.EurekaServerDemoApplication
Connected to the target VM, address: '127.0.0.1:57206', transport: 'socket'
2019-08-06 18:04:16.156  INFO 17920 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$dc9dfac6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.6.RELEASE)

2019-08-06 18:04:17.849  INFO 17920 --- [           main] c.s.e.s.EurekaServerDemoApplication      : No active profile set, falling back to default profiles: default
2019-08-06 18:04:18.415  WARN 17920 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2019-08-06 18:04:18.591  INFO 17920 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=3abfa9a6-f867-3961-8aab-27358dbf505b
2019-08-06 18:04:18.658  INFO 17920 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$dc9dfac6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-08-06 18:04:18.865  INFO 17920 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 6000 (http)
2019-08-06 18:04:18.883  INFO 17920 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-08-06 18:04:18.883  INFO 17920 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]
2019-08-06 18:04:19.011  INFO 17920 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-08-06 18:04:19.011  INFO 17920 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1151 ms
2019-08-06 18:04:19.103  WARN 17920 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-08-06 18:04:19.103  INFO 17920 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-08-06 18:04:19.112  INFO 17920 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@2a8a3ada
2019-08-06 18:04:21.184  INFO 17920 --- [           main] o.s.cloud.commons.util.InetUtils         : Cannot determine local hostname
2019-08-06 18:04:21.411  INFO 17920 --- [           main] c.s.j.s.i.a.WebApplicationImpl           : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
2019-08-06 18:04:21.474  INFO 17920 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2019-08-06 18:04:21.475  INFO 17920 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2019-08-06 18:04:21.578  INFO 17920 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2019-08-06 18:04:21.578  INFO 17920 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2019-08-06 18:04:21.903  WARN 17920 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-08-06 18:04:21.903  INFO 17920 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-08-06 18:04:22.042  INFO 17920 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-08-06 18:04:23.998  INFO 17920 --- [           main] o.s.cloud.commons.util.InetUtils         : Cannot determine local hostname
2019-08-06 18:04:24.062  INFO 17920 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2019-08-06 18:04:24.086  INFO 17920 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2019-08-06 18:04:24.087  INFO 17920 --- [           main] com.netflix.discovery.DiscoveryClient    : Client configured to neither register nor query for data.
2019-08-06 18:04:24.093  INFO 17920 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1565085864092 with initial instances count: 0
2019-08-06 18:04:24.123  INFO 17920 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initializing ...
2019-08-06 18:04:24.125  WARN 17920 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : The replica size seems to be empty. Check the route 53 DNS Registry
2019-08-06 18:04:24.138  INFO 17920 --- [           main] c.n.e.registry.AbstractInstanceRegistry  : Finished initializing remote region registries. All known remote regions: []
2019-08-06 18:04:24.139  INFO 17920 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initialized
2019-08-06 18:04:24.147  INFO 17920 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2019-08-06 18:04:24.284  INFO 17920 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application EUREKA-SERVER-DEMO with eureka with status UP
2019-08-06 18:04:24.287  INFO 17920 --- [      Thread-32] o.s.c.n.e.server.EurekaServerBootstrap   : Setting the eureka configuration..
2019-08-06 18:04:24.288  INFO 17920 --- [      Thread-32] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka data center value eureka.datacenter is not set, defaulting to default
2019-08-06 18:04:24.288  INFO 17920 --- [      Thread-32] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka environment value eureka.environment is not set, defaulting to test
2019-08-06 18:04:24.306  INFO 17920 --- [      Thread-32] o.s.c.n.e.server.EurekaServerBootstrap   : isAws returned false
2019-08-06 18:04:24.307  INFO 17920 --- [      Thread-32] o.s.c.n.e.server.EurekaServerBootstrap   : Initialized server context
2019-08-06 18:04:24.308  INFO 17920 --- [      Thread-32] c.n.e.r.PeerAwareInstanceRegistryImpl    : Got 1 instances from neighboring DS node
2019-08-06 18:04:24.308  INFO 17920 --- [      Thread-32] c.n.e.r.PeerAwareInstanceRegistryImpl    : Renew threshold is: 1
2019-08-06 18:04:24.308  INFO 17920 --- [      Thread-32] c.n.e.r.PeerAwareInstanceRegistryImpl    : Changing status to UP
2019-08-06 18:04:24.317  INFO 17920 --- [      Thread-32] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2019-08-06 18:04:24.331  INFO 17920 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 6000 (http) with context path ''
2019-08-06 18:04:24.332  INFO 17920 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 6000
2019-08-06 18:04:24.333  INFO 17920 --- [           main] c.s.e.s.EurekaServerDemoApplication      : Started EurekaServerDemoApplication in 10.507 seconds (JVM running for 11.631)
诈一看启动时正常的,但是一访问:

在用Spring boot搭建项目的时候出现 “无法访问此网站“ 是什么情况

我的配置文件
server:
  port: 6000

spring:
  application:
    name: eureka-server-demo

eureka:
  instance:
    hostname: 127.0.0.1
    lease-expiration-duration-in-seconds: 30
    lease-renewal-interval-in-seconds: 30
  client:
    register-with-eureka: false
    fetch-registry: false
    service-url:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
就是感觉没啥毛病,但就很是郁闷呀,结果就直接把项目删除,重新搭建,啥也不改,竟然就成功了,对比发现就端口不一样,结果换了个端口,莫名其妙好了,经查资料说 6000端口一般是***端口,一般都是关闭的,所以才导致的这个问题,还能怎么办,改个端口呗!!!

感谢各位的阅读,以上就是“在用Spring boot搭建项目的时候出现 “无法访问此网站“ 是什么情况”的内容了,经过本文的学习后,相信大家对在用Spring boot搭建项目的时候出现 “无法访问此网站“ 是什么情况这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


分享题目:在用Springboot搭建项目的时候出现“无法访问此网站“是什么情况
当前路径:http://lszwz.com/article/jhdpgo.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款