随笔分类 - Spring
摘要:一个常见的错误是以为 session 在有客户端访问时就被创建,然而事实是直到某 server 端程序(如 Servlet )调用HttpServletRequest.getSession(true)这样的语句时才会被创建。 一开始不信是因为,用 FireFox 测试清空了Cookie ,只要一跑一
阅读全文
摘要:1、@RequestParam,@RequestParam("xx") 表示在前端传递过来的参数中必须有个参数名称为“xx”(可以使用required=false避免必须) 2、@ModelAttribute,@ModelAttribute("xx") 表示将前端传递过来的参数值(value),按照
阅读全文
摘要:1)pom.xml 2)application.yml 3)controller 4)前端Thymeleaf
阅读全文
摘要:Spring之注解注入bean 此文章转载自 https://blog.csdn.net/sinat_37004149/article/details/87915518
阅读全文

浙公网安备 33010602011771号