摘要: //向application(ServletContext)域共享数据 @RequestMapping("/testApplication") public String testApplication(HttpSession session){ ServletContext application 阅读全文
posted @ 2021-08-23 20:12 L1998 阅读(50) 评论(0) 推荐(0)
摘要: //向Session域共享数据 @RequestMapping("/testSession") public String testSession(HttpSession session){ session.setAttribute("testSessionScope","hello,Session 阅读全文
posted @ 2021-08-23 20:02 L1998 阅读(46) 评论(0) 推荐(0)
摘要: index.html 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 阅读全文
posted @ 2021-08-23 19:54 L1998 阅读(110) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>传参测试页面</title> </head> <body> <a th:href="@{ 阅读全文
posted @ 2021-08-23 15:06 L1998 阅读(34) 评论(0) 推荐(0)