在官方春天教程代碼source coode有沒有控制器需要,所以我沒有把它們放在我的樣品中,但是當我嘗試運行我的簡單的應用程序我一直得到了http://localhost:8080/或http://localhost:8080/invoice錯誤: Whitelabel Error Page This application has no explicit mapping for /error,
我必須在我的應用程序中添加一個或多個用戶角色。目前,我每次一個角色添加到用戶使用這種方法: UserController.java @RequestMapping(value = "users/{id}/{roleId}", method = RequestMethod.POST)
public User assignRole(@PathVariable Long id, @PathVariab