ityouknow / blog-comments

15 stars 0 forks source link

springboot(四):thymeleaf使用详解 - 纯洁的微笑博客 #151

Open ityouknow opened 6 years ago

ityouknow commented 6 years ago

http://www.ityouknow.com/springboot/2016/05/01/spring-boot-thymeleaf.html

在上篇文章springboot(二):web综合开发中简单介绍了一下thymeleaf,这篇文章将更加全面详细的介绍thymeleaf的使用。thymeleaf 是新一代的模板引擎,在spring4.0中推荐使用thymeleaf来做前端模版引擎。

yemaiqingxiang commented 6 years ago

这个要不是前后端分离好像没啥用呢

whatalittlebear commented 6 years ago

注意controller中一定要是@Controller注解,而不是@RestController,这样才能找到页面!!!

2578197547 commented 5 years ago

请问下使用thymeleaf,layout:fragment不生效的原因的吗?通过th:include可以把页面加载进来,但是通过layout:decorator不生效,就是上面所说的thymeleaf布局

2578197547 commented 5 years ago

layout:fragment失败是什么原因吗?th:include和th:replace可以把th:fragment加载进来但是通过layout:decorator指向父页面(layout:fragment)失效了

a173030685 commented 5 years ago

该jstl 错别字

a173030685 commented 5 years ago

示例源码 路径不对

az-faker commented 5 years ago

感觉还是freemarker好用一点

Jacob3261 commented 5 years ago

There was an unexpected error (type=Not Found, status=404). 能正常访问controller,但是页面总是报上面的404错误,请问什么原因

LiJY2015 commented 5 years ago

请问页面布局fragment如何包含css和js,并且多个fragment引入同一个页面的时候又不会互相影响呢?