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

server 线程池实例 查看时,请求响应的内容是xml格式的,解析不兼容 #1583

Open
1 of 3 tasks
nickfan opened this issue Dec 4, 2024 · 4 comments
Open
1 of 3 tasks

Comments

@nickfan
Copy link

nickfan commented Dec 4, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Linux

Hippo4j version

1.5.0

What happened

配置好线程池后
访问 server 后台: Dashboard/动态线程池/线程池实例

image

点查看后报错,看消息信息应该是响应的xml格式的内容,服务端无法解析

How to reproduce

配置好线程池后
访问 server 后台: Dashboard/动态线程池/线程池实例

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@nickfan nickfan added the type: bug Something isn't working label Dec 4, 2024
@magestacks
Copy link
Member

是不是你们的客户端应用加了鉴权?

@magestacks magestacks added type: question and removed type: bug Something isn't working labels Dec 4, 2024
@nickfan
Copy link
Author

nickfan commented Dec 4, 2024

并非鉴权,只是没有做过 ContentNegotiationConfigurer 的 defaultContentType(MediaType.APPLICATION_JSON) 的配置 ,默认响应内容应该是xml,这个应该是根据请求的Accept头确定的

@magestacks magestacks changed the title [Bug] server 线程池实例 查看时,请求响应的内容是xml格式的,解析不兼容 server 线程池实例 查看时,请求响应的内容是xml格式的,解析不兼容 Dec 5, 2024
@magestacks
Copy link
Member

提供下你们的配置,方便复现

@nickfan
Copy link
Author

nickfan commented Dec 5, 2024

spring boot 2.3.7
应用没配置mvc注解,基本上就是相当于没配置,这应该是默认设置
能不能通过accept头解决:

curl -H "Accept: application/json" https://api.example.com/resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants