实现增加数据接口

This commit is contained in:
2018-05-19 16:56:01 +08:00
parent 8fab922b00
commit 92b5d778d2
2 changed files with 76 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
* @date 2018-05-19 16:31
*/
@RestController
@RequestMapping("/get")
@RequestMapping("/get/book")
@Slf4j
public class GetBookController {
@@ -28,7 +28,7 @@ public class GetBookController {
* @param id
* @return
*/
@GetMapping("/book/novel")
@GetMapping("/novel")
public ResponseEntity get(@RequestParam(name = "id") String id){
if (id==null){
return new ResponseEntity(HttpStatus.NOT_FOUND);