|
@@ -3,6 +3,7 @@ package com.book.server.controller;
|
|
|
import com.book.dao.cps.pojo.User;
|
|
|
import com.book.server.common.entity.Result;
|
|
|
import com.book.server.service.UserService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -12,9 +13,9 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
/**
|
|
|
* 用户
|
|
|
*/
|
|
|
-@CrossOrigin
|
|
|
@RestController
|
|
|
@RequestMapping("/api/user")
|
|
|
+@Slf4j
|
|
|
public class UserController extends BaseController {
|
|
|
@Autowired
|
|
|
private UserService userService;
|