This commit deprecates CookieGenerator
in favor of a more modern alternative in ResponseCookie
.
Ideally, all Framework generated cookies should be consistent is sense they use the same infrastructure for creating response cookies. CookieGenerator
has only two usages that either have PRs to replace them with ResponseCookie
(CookieLocaleResolver
) or are about to be deprecated (CookieThemeResolver
).
Related:
- https://github.com/spring-projects/spring-framework/pull/28779
- https://github.com/spring-projects/spring-framework/issues/28868