1
0
mirror of synced 2026-08-05 17:57:15 +00:00
This commit is contained in:
Johnny Lim
2016-11-17 13:22:20 +09:00
committed by Rob Winch
parent 94fb1893de
commit f94399cff9
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -7020,7 +7020,7 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal;
// ...
@PutMapping("/users/self")
public ModelAndView updateName(@AuthenticationPrincipal(expression = "@jpaEntityManager.merge(#this)") CustomUser attachedCustomUser
public ModelAndView updateName(@AuthenticationPrincipal(expression = "@jpaEntityManager.merge(#this)") CustomUser attachedCustomUser,
@RequestParam String firstName) {
// change the firstName on an attached instance which will be persisted to the database