Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit ed5bd19

Browse files
committed
Update SPR-13078
1 parent 52b6352 commit ed5bd19

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

SPR-13078/src/main/java/org/springframework/issues/SampleController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class SampleController {
2626
@RequestMapping("/user")
2727
MappingJackson2JsonView user() {
2828
MappingJackson2JsonView view = new MappingJackson2JsonView();
29+
view.setExtractValueFromSingleKeyModel(true);
2930
view.addStaticAttribute("user", new User("Sébastien", "Deleuze"));
3031
view.setPrefixJson(true);
3132
return view;

SPR-13078/src/main/webapp/index.html

752 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)