I have encountered similar problems. My development environment here is win7 and the release environment is Linux. Such a problem has occurred. It’s because of @RequestMapping("/token") on the class name in the controller. Print out the url and find it is http://localhost:8080//login Change it to @RequestMapping("token") . It’s just a personal problem.
@RequestMapping When mapping, do not start with /
Try changing "/upload/uploadLockUpdatePackage" in the controller to "upload/uploadLockUpdatePackage"~
If possible, you can check why by yourself
I have encountered similar problems. My development environment here is win7 and the release environment is Linux. Such a problem has occurred.
It’s because of @RequestMapping("/token") on the class name in the controller.
Print out the url and find it is http://localhost:8080//login
Change it to @RequestMapping("token") .
It’s just a personal problem.