Skip to content

When used with Springboot, the Content-type becomes: application/cbor; Charset =UTF-8, not application/json; Charset =UTF-8 #3411

Closed
@RunInto

Description

@RunInto

Describe the bug

When I integrated the AWS Java SDK V2-based class library into the Springboot Web project, the data responding to the front end became application/ CBOR; Charset = utF-8, which should be application/json; Charset =UTF-8, why does this happen? How do I fix this?

1
2

Expected Behavior

The correct result is to return a JSON-based packet

Current Behavior

The current packet returned is based on CBOR, which is not recognized by the front end

Reproduction Steps

none

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.17.230 && 1.11.837 concurrence

JDK version used

1.8

Operating System and version

windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions