You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »





package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class DemoApplication {

    @RequestMapping("/")
    public String hello(){
        return "Hello Spring reactor docker!";
    }
    
	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

}


C:\PDS\study\demo>gradlew build

BUILD SUCCESSFUL in 17s
5 actionable tasks: 2 executed, 3 up-to-date
C:\PDS\study\demo>gradlew bootRun

> Task :bootRun

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

2019-04-22 15:26:52.334  INFO 50120 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication on SanseLG with PID 50120 (C:\PDS\study\demo\build\classes\java\main started by SanseLG in C:\PDS\study\demo)
2019-04-22 15:26:52.344  INFO 50120 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default
2019-04-22 15:26:53.707  INFO 50120 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2019-04-22 15:26:53.716  INFO 50120 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-04-22 15:26:53.785  INFO 50120 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 37ms. Found 0 repository interfaces.
2019-04-22 15:26:58.584  INFO 50120 --- [           main] o.s.b.web.embedded.netty.NettyWebServer  : Netty started on port(s): 8080
2019-04-22 15:26:58.589  INFO 50120 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 7.228 seconds (JVM running for 8.227)
<=========----> 75% EXECUTING [19s]
> :bootRun

  • No labels