Skip to content

Use ResponseCookieBuilder in Spring 5.0.2 [SPR-16401] #20947

@spring-projects-issues

Description

@spring-projects-issues

EHRET Guillaume opened SPR-16401 and commented

Hi

I want to put a cookie in my Spring WebFlux application. For that I want to use the new method .cookie() defined on the class ServerResponse

To create a cookie I have to use org.springframework.http.ResponseCookie.ResponseCookieBuilder. But you have in the class ResponseCookie, 2 elements with the same name (ResponseCookieBuilder), an interface and an implementation.

In my code I am not able to import the implementation. And as I can't create a ResponseCookieBuilder I can't use this feature.

Is it a bug ? How can I do that


Affects: 5.0.2

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions