16 lines
392 B
Java
16 lines
392 B
Java
|
package com.gmgauthier.trainer2;
|
||
|
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
@RestController
|
||
|
@RequestMapping(value = "/hello")
|
||
|
public class TrainerController {
|
||
|
|
||
|
@GetMapping
|
||
|
public String helloWorld(){
|
||
|
return "Hello, World!";
|
||
|
}
|
||
|
}
|