cb9c16a533
* Optimize build * Optimize build
17 lines
374 B
Java
17 lines
374 B
Java
package com.baeldung;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController(value = "/")
|
|
public class HelloController {
|
|
|
|
@GetMapping
|
|
@ResponseBody
|
|
public String getMapping() {
|
|
return "Hello world";
|
|
}
|
|
|
|
}
|