springboot
勝ち取った
这个作者很懒,什么都没留下…
展开
-
springboot2.2.7版本中sec:authorize无效解决
springboot 版本2.2.7.release在build.gradle中设置thymeleaf-extras-springsecurity为 compile(‘org.thymeleaf.extras:thymeleaf-extras-springsecurity5’)同时在html中设置 xmlns:sec=“http://www.thymeleaf.org/thymeleaf-extras-springsecurity5”详见https://segmentfault.com/a/119原创 2020-06-21 14:15:46 · 294 阅读 · 0 评论 -
springboot @RequestParam
@RequestParam 用于接收path中传递的参数@GetMapping("/{username}/blogs") public String listBlogsByOrder(@PathVariable("username") String username, @RequestParam(value="order",required=false,defaultValue="new...原创 2020-04-07 22:46:05 · 312 阅读 · 0 评论 -
springboot @PathVariable
@PathVariable用于接收路径中包含的参数@GetMapping("/{username}/blogs") public String listBlogsByOrder(@PathVariable("username") String username, @RequestParam(value="order",required=false,defaultValue="new")...原创 2020-04-07 22:41:54 · 352 阅读 · 0 评论