
JavaWeb
Javaweb开发实用技巧,框架知识。
Bryan_良
这个作者很懒,什么都没留下…
展开
-
SpringMVC+Thymeleaf if判断
SpringMVC+Thymeleaf th:if判断原创 2021-11-23 23:41:08 · 814 阅读 · 0 评论 -
Springboot+thymeleaf 获取Request和Session中的值
th:text=""中如何传入Session和Request的值原创 2021-11-13 00:22:49 · 4321 阅读 · 0 评论 -
Springboot+thymeleaf th:text=““中使用三目运行
th:test=""中使用三目运行使用th:text 修改标签内容需要三目运行判断时,注意:式子是被** 双引号“”括住,而${}里面写判断部分**,用单引号’'写字符串(不可以用双引号),在大括号{}后面接上问号?true的情况,冒号:false的情况 th:text="${session.account.persm == 'student'}?学生: 教师"...原创 2021-11-13 00:27:12 · 855 阅读 · 0 评论 -
SpringMVC+Thymeleaf for循环
SpringMVC+Thymeleaf for循环需要在HTML页面进行for循环遍历显示内容,例如显示列表内容后端Controller类传入集合把需要显示的数据posts,通过Model绑定。Posts是实体类@RequestMapping("/resourcedetail/{resourceId}")public String resourceDetail(@PathVariable(value = "resourceId") Integer resourceId, Model model){原创 2021-12-12 22:41:01 · 738 阅读 · 0 评论 -
SpringMVC+Thymeleaf URL请求Thymeleaf设置请求中的变量,表单上传参数的两种形式
解决Thymeleaf语法中 URL请求设置请求中的变量问题,表单两种提交参数方式的解决原创 2021-11-14 22:21:12 · 1519 阅读 · 0 评论