|
@@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -22,6 +23,7 @@ import java.util.List;
|
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
|
@RequestMapping("/admin")
|
|
|
+@Slf4j
|
|
|
public class AdminController {
|
|
|
|
|
|
private final UserService userService;
|
|
@@ -37,6 +39,8 @@ public class AdminController {
|
|
|
public List<User> getUserInfo(User user) {
|
|
|
try {
|
|
|
List<User> list = userService.list();
|
|
|
+ log.info("1");
|
|
|
+ log.error("2");
|
|
|
return list;
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|