![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 311 阅读 · 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 · 326 阅读 · 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 · 365 阅读 · 0 评论