-
-
Save hyunc/eeb9bb7e3cf2c1b910b1 to your computer and use it in GitHub Desktop.
blog
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 demo.web; | |
import org.springframework.boot.*; | |
import org.springframework.boot.autoconfigure.*; | |
import org.springframework.stereotype.*; | |
import org.springframework.web.bind.annotation.*; | |
@Controller | |
@EnableAutoConfiguration | |
public class SampleController { | |
@RequestMapping("/") | |
@ResponseBody | |
String home() { | |
return "Hello World!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment