16 lines
393 B
Java
16 lines
393 B
Java
package com.baeldung.endpoint.controller;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
public class HelloController {
|
|
|
|
@GetMapping("/hello")
|
|
public ResponseEntity<String> hello() {
|
|
return ResponseEntity.ok("hello baeldung");
|
|
}
|
|
|
|
}
|