实现增加数据接口
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user