【Thymeleaf】
Thymeleaf
在路上s
生如蝼蚁当立鸿鹄之志,命似纸薄应有不屈之心。
展开
-
springboot集成Thymeleaf(一)
传统Java WEB工程时,我们可以使用JSP页面模板语言,但是在SpringBoot中已经不推荐使用了。SpringBoot支持如下页面模板语言Thymeleaf FreeMarker Velocity Groovy JSP …………其中Thymeleaf是SpringBoot官方所推荐使用的,接下来说说Thymeleaf使用。一、特点动静结合: 1、Thym...原创 2019-09-19 10:54:59 · 335 阅读 · 0 评论 -
springboot集成Thymeleaf(二)
一、基本语法使用1、传递对象:@Controllerpublic class MyController1 { @Autowired private HeroService heroService; @RequestMapping("/hello") public String hello(Model model) { ...原创 2019-09-19 20:04:26 · 129 阅读 · 0 评论