java - spring boot项目使用了thymeleaf模板,分别对在本地和服务器上的同一个项目访问同一个页面时的问题.
怪我咯
怪我咯 2017-04-18 10:45:10
0
3
847
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
刘奇

@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

Peter_Zhu

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template