mofdan 发表于 2018-1-6 18:27:30

spring-boot 和 docker 集成

docker run -p 6666:8080 registry.****.com/demo  .   ____          _            __ _ _
  /\\ / ___'_ __ _ _(_)_ ____ _ \ \ \ \
  ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  \\/___)| |_)| | | | | || (_| |) ) ) )
  '|____| .__|_| |_|_| |_\__, | / / / /
  =========|_|==============|___/=/_/_/_/
  :: Spring Boot ::(v1.3.2.BUILD-SNAPSHOT)
  2015-12-21 08:30:05.303INFO 1 --- [         main] org.beyondblog.DemoApplication         : Starting DemoApplication v0.0.1-SNAPSHOT on a734ef04ef23 with PID 1 (/demo-0.0.1-SNAPSHOT.jar started by root in /)
  2015-12-21 08:30:05.307INFO 1 --- [         main] org.beyondblog.DemoApplication         : No active profile set, falling back to default profiles: default
  2015-12-21 08:30:05.463INFO 1 --- [         main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@429e6a3d: startup date ; root of context hierarchy

  2015-12-21 08:30:06.471INFO 1 --- [         main] o.s.b.f.s.DefaultListableBeanFactory   : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
  2015-12-21 08:30:07.745INFO 1 --- [         main] o.apache.catalina.core.StandardService   : Starting service Tomcat
  2015-12-21 08:30:07.746INFO 1 --- [         main] org.apache.catalina.core.StandardEngine: Starting Servlet Engine: Apache Tomcat/8.0.30
  2015-12-21 08:30:07.834INFO 1 --- o.a.c.c.C...[/]       : Initializing Spring embedded WebApplicationContext
  2015-12-21 08:30:07.835INFO 1 --- o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2386 ms
  2015-12-21 08:30:08.106INFO 1 --- o.s.b.c.e.ServletRegistrationBean      : Mapping servlet: 'dispatcherServlet' to [/]
  2015-12-21 08:30:08.110INFO 1 --- o.s.b.c.embedded.FilterRegistrationBean: Mapping filter: 'characterEncodingFilter' to: [/*]
  2015-12-21 08:30:08.110INFO 1 --- o.s.b.c.embedded.FilterRegistrationBean: Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  2015-12-21 08:30:08.110INFO 1 --- o.s.b.c.embedded.FilterRegistrationBean: Mapping filter: 'httpPutFormContentFilter' to: [/*]
  2015-12-21 08:30:08.111INFO 1 --- o.s.b.c.embedded.FilterRegistrationBean: Mapping filter: 'requestContextFilter' to: [/*]
  2015-12-21 08:30:08.523INFO 1 --- [         main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@429e6a3d: startup date ; root of context hierarchy
  2015-12-21 08:30:08.566INFO 1 --- [         main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{,methods=}" onto public java.lang.Object org.beyondblog.controller.HelloController.hello()
  2015-12-21 08:30:08.568INFO 1 --- [         main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{,produces=}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
  2015-12-21 08:30:08.568INFO 1 --- [         main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{}" onto public org.springframework.http.ResponseEntity
页: [1]
查看完整版本: spring-boot 和 docker 集成