search

Home  >  Q&A  >  body text

java - spring boot项目使用了thymeleaf模板,分别对在本地和服务器上的同一个项目访问同一个页面时的问题.

怪我咯怪我咯2768 days ago848

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:47:10

    @RequestMapping When mapping, do not start with /

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:47:10

    Try changing "/upload/uploadLockUpdatePackage" in the controller to "upload/uploadLockUpdatePackage"~
    If possible, you can check why by yourself

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 10:47:10

    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.

    reply
    0
  • Cancelreply