Created
December 29, 2018 00:12
-
-
Save kamisrini/fddcba9e98a8951109dc918c3cf40ef4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aiaddicted.microservicedocker; | |
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 MicroserviceDockerApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(MicroserviceDockerApplication.class, args); | |
} | |
@RequestMapping("/") | |
public String message() { | |
return "My First Dockerized Microservice"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment