Compare commits
No commits in common. 'test-1.0.1-product' and 'main' have entirely different histories.
test-1.0.1
...
main
@ -1,16 +0,0 @@
|
|||||||
package com.example.demo.controller;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/product")
|
|
||||||
public class ProductController {
|
|
||||||
|
|
||||||
@GetMapping("/greet")
|
|
||||||
public String greet(@RequestParam(name = "name", defaultValue = "World") String name) {
|
|
||||||
return "Hello, " + name + "!";
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue