로그인 성공 데이터 받아야함

This commit is contained in:
root
2025-07-25 16:25:41 +09:00
parent 8132000b92
commit 8dc0bac98c

View File

@@ -9,6 +9,7 @@ import java.util.HashMap;
import java.util.Map;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@@ -16,7 +17,8 @@ import org.springframework.web.bind.annotation.RestController;
public class LoginController {
@PostMapping("login/oauth-kakao")
public Map<String, Object> kakaoLogin() {
public Map<String, Object> kakaoLogin(ResponseBody entity) {
System.out.println(entity);
HttpClient client = HttpClient.newHttpClient();
Map<String, Object> returnValue = new HashMap<>();
HttpRequest request = HttpRequest.newBuilder()