[update]-产品服务更新

dev-1.0.1-product
xwjxunlei2024 5 months ago
parent 59c6402400
commit 748388e17f

@ -1,8 +1,16 @@
package com.example.demo.controller; package com.example.demo.controller;
import org.springframework.stereotype.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;
@Controller @RestController
@RequestMapping("/product")
public class ProductController { public class ProductController {
@GetMapping("/greet")
public String greet(@RequestParam(name = "name", defaultValue = "World") String name) {
return "Hello, " + name + "!";
}
} }

Loading…
Cancel
Save