-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Christopher Smith opened SPR-13165 and commented
When a method does not have an explicit return type of String
(which causes, among other things, problems with Spring HATEOAS), returning a Groovy GString
(particularly helpful with building redirect:
links) confuses MVC. Using the regular string-return semantics requires an explicit call to toString()
.
It would be helpful, when groovy.lang.GString
is present on the classpath, for the dispatcher servlet to automatically call toString()
on returned GString values.
Affects: 4.2 RC1
Issue Links:
- Coerce @ResponseBody CharSequences to strings [SPR-13423] #18002 Coerce
@ResponseBody
CharSequences to strings
Referenced from: commits a2d3c27
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement