Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java学习笔记15:数据结构 #98

Open
QiYongchuan opened this issue Jul 19, 2024 · 1 comment
Open

Java学习笔记15:数据结构 #98

QiYongchuan opened this issue Jul 19, 2024 · 1 comment
Labels
notes notes

Comments

@QiYongchuan
Copy link
Owner

image

// 创建一个 HashMap 实例来存储请求头信息
Map<String, String> headers = new HashMap<>();

// 添加授权信息到请求头中
headers.put("Authorization", "Bearer " + accessToken);

// 设置接受的响应类型为 JSON
headers.put("Accept", "application/json"); // 改为接受 JSON 格式的响应
@QiYongchuan
Copy link
Owner Author

image

@QiYongchuan QiYongchuan added the notes notes label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes notes
Projects
None yet
Development

No branches or pull requests

1 participant