Skip to content
Snippets Groups Projects
Commit 877e0fe4 authored by 정 원빈's avatar 정 원빈
Browse files

Hello world

parent c6212a05
Branches
No related tags found
No related merge requests found
......@@ -2,12 +2,18 @@ package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@GetMapping(value="/")
public String HelloWorld(){
return "Hello World";
}
}
\ No newline at end of file
spring.application.name=demo
server.port = 3000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment