Compare commits

...

2 Commits

Author SHA1 Message Date
xwjxunlei2024 748388e17f [update]-产品服务更新 4 months ago
xwjxunlei2024 59c6402400 [add]-创建产品服务 4 months ago

@ -0,0 +1,16 @@
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…
Cancel
Save