17 lines
501 B
Java
17 lines
501 B
Java
package com.gmgauthier.springboot;
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@EnableAutoConfiguration
|
|
public class HelloWorldController {
|
|
|
|
@RequestMapping("/")
|
|
@ResponseBody
|
|
String hello() {
|
|
return "Hello World! Spring boot is so simple.";
|
|
}
|
|
} |