java 启动方法如下
package com.example.product;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class ProductApplication {
public static void main(String[] args) {
SpringApplication.run(ProductApplication.class, args);
}
}
控制台打印启动信息如下
D:\Java_DevelopTools\jdk\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=52687 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=52688:D:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath D:\Java_DevelopTools\jdk\jre\lib\charsets.jar;D:\Java_DevelopTools\jdk\jre\lib\deploy.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\access-bridge-64.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\cldrdata.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\dnsns.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\jaccess.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\jfxrt.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\localedata.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\nashorn.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\sunec.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\sunjce_provider.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\sunmscapi.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\sunpkcs11.jar;D:\Java_DevelopTools\jdk\jre\lib\ext\zipfs.jar;D:\Java_DevelopTools\jdk\jre\lib\javaws.jar;D:\Java_DevelopTools\jdk\jre\lib\jce.jar;D:\Java_DevelopTools\jdk\jre\lib\jfr.jar;D:\Java_DevelopTools\jdk\jre\lib\jfxswt.jar;D:\Java_DevelopTools\jdk\jre\lib\jsse.jar;D:\Java_DevelopTools\jdk\jre\lib\management-agent.jar;D:\Java_DevelopTools\jdk\jre\lib\plugin.jar;D:\Java_DevelopTools\jdk\jre\lib\resources.jar;D:\Java_DevelopTools\jdk\jre\lib\rt.jar;D:\Java_DevelopTools\spring_cloud\eureka\product\target\classes;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.0.0.RC1\spring-cloud-starter-netflix-eureka-client-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-starter\2.0.0.RC1\spring-cloud-starter-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-context\2.0.0.RC1\spring-cloud-context-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\security\spring-security-crypto\5.0.4.RELEASE\spring-security-crypto-5.0.4.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-commons\2.0.0.RC1\spring-cloud-commons-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\security\spring-security-rsa\1.0.5.RELEASE\spring-security-rsa-1.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-netflix-core\2.0.0.RC1\spring-cloud-netflix-core-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.1.RELEASE\spring-boot-autoconfigure-2.0.1.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.0.1.RELEASE\spring-boot-starter-aop-2.0.1.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-aop\5.0.5.RELEASE\spring-aop-5.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-beans\5.0.5.RELEASE\spring-beans-5.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.0.0.RC1\spring-cloud-netflix-eureka-client-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\eureka\eureka-client\1.8.8\eureka-client-1.8.8.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\google\code\gson\gson\2.8.2\gson-2.8.2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\google\guava\guava\16.0\guava-16.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.3\jackson-core-2.9.3.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.3\jackson-databind-2.9.3.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\eureka\eureka-core\1.8.8\eureka-core-1.8.8.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.0.RC1\spring-cloud-starter-netflix-archaius-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.0.RC1\spring-cloud-netflix-ribbon-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.0.RC1\spring-cloud-netflix-archaius-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.0.RC1\spring-cloud-starter-netflix-ribbon-2.0.0.RC1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-codec-http\4.1.23.Final\netty-codec-http-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-codec\4.1.23.Final\netty-codec-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-transport-native-epoll\4.1.23.Final\netty-transport-native-epoll-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-common\4.1.23.Final\netty-common-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-buffer\4.1.23.Final\netty-buffer-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-transport-native-unix-common\4.1.23.Final\netty-transport-native-unix-common-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-transport\4.1.23.Final\netty-transport-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\netty\netty-resolver\4.1.23.Final\netty-resolver-4.1.23.Final.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.1.RELEASE\spring-boot-starter-2.0.1.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\boot\spring-boot\2.0.1.RELEASE\spring-boot-2.0.1.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-context\5.0.5.RELEASE\spring-context-5.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-expression\5.0.5.RELEASE\spring-expression-5.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.1.RELEASE\spring-boot-starter-logging-2.0.1.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-core\5.0.5.RELEASE\spring-core-5.0.5.RELEASE.jar;C:\Users\Administrator.PC-20170206AXEG\.m2\repository\org\springframework\spring-jcl\5.0.5.RELEASE\spring-jcl-5.0.5.RELEASE.jar com.example.product.ProductApplication
2018-05-04 00:31:20.110 INFO 6584 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@188715b5: startup date [Fri May 04 00:31:20 CST 2018]; root of context hierarchy
2018-05-04 00:31:20.423 INFO 6584 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-05-04 00:31:20.477 INFO 6584 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$9b2aed5f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.1.RELEASE)
2018-05-04 00:31:21.132 INFO 6584 --- [ main] com.example.product.ProductApplication : No active profile set, falling back to default profiles: default
2018-05-04 00:31:21.152 INFO 6584 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6aa61224: startup date [Fri May 04 00:31:21 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@188715b5
2018-05-04 00:31:21.707 INFO 6584 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=965adc9a-6c1a-3c2f-842d-23f04ef43ad5
2018-05-04 00:31:21.723 INFO 6584 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-05-04 00:31:21.867 INFO 6584 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$9b2aed5f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-05-04 00:31:21.906 WARN 6584 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-05-04 00:31:21.906 INFO 6584 --- [ 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.
2018-05-04 00:31:21.920 WARN 6584 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2018-05-04 00:31:21.920 INFO 6584 --- [ 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.
2018-05-04 00:31:23.152 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-05-04 00:31:23.162 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2018-05-04 00:31:23.163 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure
2018-05-04 00:31:23.165 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshScope' has been autodetected for JMX exposure
2018-05-04 00:31:23.169 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2018-05-04 00:31:23.183 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2018-05-04 00:31:23.198 INFO 6584 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=6aa61224,type=ConfigurationPropertiesRebinder]
2018-05-04 00:31:23.207 INFO 6584 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2018-05-04 00:31:23.217 INFO 6584 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2018-05-04 00:31:23.266 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2018-05-04 00:31:23.973 INFO 6584 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2018-05-04 00:31:23.973 INFO 6584 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2018-05-04 00:31:24.140 INFO 6584 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2018-05-04 00:31:24.140 INFO 6584 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2018-05-04 00:31:24.389 INFO 6584 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2018-05-04 00:31:24.568 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2018-05-04 00:31:24.799 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2018-05-04 00:31:24.803 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
2018-05-04 00:31:24.805 INFO 6584 --- [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
2018-05-04 00:31:24.811 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1525365084809 with initial instances count: 1
2018-05-04 00:31:24.815 INFO 6584 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application client with eureka with status UP
2018-05-04 00:31:24.816 INFO 6584 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1525365084816, current=UP, previous=STARTING]
2018-05-04 00:31:24.821 INFO 6584 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CLIENT/192.168.0.141:client:8764: registering service...
2018-05-04 00:31:24.833 INFO 6584 --- [ main] com.example.product.ProductApplication : Started ProductApplication in 5.978 seconds (JVM running for 9.398)
2018-05-04 00:31:24.838 INFO 6584 --- [ Thread-17] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6aa61224: startup date [Fri May 04 00:31:21 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@188715b5
2018-05-04 00:31:24.839 INFO 6584 --- [ Thread-17] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application client with eureka with status DOWN
2018-05-04 00:31:24.840 WARN 6584 --- [ Thread-17] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1525365084840, current=DOWN, previous=UP]
2018-05-04 00:31:24.841 INFO 6584 --- [ Thread-17] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0
2018-05-04 00:31:24.843 INFO 6584 --- [ Thread-17] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...
2018-05-04 00:31:24.876 INFO 6584 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CLIENT/192.168.0.141:client:8764 - registration status: 204
2018-05-04 00:31:24.876 INFO 6584 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CLIENT/192.168.0.141:client:8764: registering service...
2018-05-04 00:31:24.881 INFO 6584 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CLIENT/192.168.0.141:client:8764 - registration status: 204
2018-05-04 00:31:24.882 INFO 6584 --- [ Thread-17] com.netflix.discovery.DiscoveryClient : Unregistering ...
2018-05-04 00:31:24.887 INFO 6584 --- [ Thread-17] com.netflix.discovery.DiscoveryClient : DiscoveryClient_CLIENT/192.168.0.141:client:8764 - deregister status: 200
2018-05-04 00:31:24.899 INFO 6584 --- [ Thread-17] com.netflix.discovery.DiscoveryClient : Completed shut down of DiscoveryClient
2018-05-04 00:31:24.901 INFO 6584 --- [ Thread-17] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2018-05-04 00:31:24.902 INFO 6584 --- [ Thread-17] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans
Process finished with exit code 0
注意最后一行, 直接退出来了
解决办法:
在pom文件中加入坐标
<!-- web应用 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>