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

REST默认返回JSON格式 #387

Merged
merged 1 commit into from
Oct 7, 2014
Merged

Conversation

jtraviss
Copy link
Contributor

由于request中accept header中默认加入xml参数,导致contentNegotiationManager默认返回XML(即使设置defaultContentType=json)
还有加入ignoreAcceptHeader=true

由于request中accept header中默认加入xml参数,导致contentNegotiationManager默认返回XML(即使设置defaultContentType=json)
还有加入ignoreAcceptHeader=true
springside pushed a commit that referenced this pull request Oct 7, 2014
REST默认返回JSON格式
@springside springside merged commit 7ed5da0 into springside:master Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants