spring boot解决thymeleaf标签未关闭错误
来源:互联网 发布:linux dd备份 编辑:程序博客网 时间:2024/06/06 02:07
在首次使用thymeleaf时 常出现此错误 如:
<meta content="text/html;charset=utf-8"/>
<input type="text" name="username"/>
标签尾部未加“/”都会报错。
解决方案:
添加依赖:
gradle:
compile('net.sourceforge.nekohtml:nekohtml')
maven:
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</dependency>
然后修改spring boot配置文件,设置thymeleaf.mode: LEGACYHTML5
如果是用xml配置
阅读全文
1 0
- spring boot解决thymeleaf标签未关闭错误
- spring boot 使用thymeleaf 和shiro标签整合
- [spring-boot] thymeleaf 热交换
- Spring Boot + Gradle + Thymeleaf
- spring boot 整合 thymeleaf
- spring boot vue Thymeleaf
- spring boot thymeleaf 用法
- Spring Boot使用Thymeleaf
- Spring-Boot thymeleaf异常
- spring-boot集成thymeleaf
- Spring Boot整合thymeleaf
- spring boot thymeleaf错误之Circular view path [...]
- Spring Boot+Spring Security+Thymeleaf
- Thymeleaf系列一 Spring boot 集成Thymeleaf
- Spring Boot (三) Spring Boot for thymeleaf
- spring boot thymeleaf 入门 demo
- spring-boot--使用thymeleaf模板
- spring-boot--使用thymeleaf模板
- mysql密码忘记怎么办?
- Unity编程笔记----音效管理器
- Dragons UVALive
- 七大查找算法(附C语言代码实现)
- MOOC清华《面向对象程序设计》第4章:继承基类构造函数实验
- spring boot解决thymeleaf标签未关闭错误
- 剑指Offer—36—两个链表的第一个公共节点
- HR 模态登陆总结
- 【无用】随笔—算是,自辨?吧
- POJ 2689 Prime Distance [素数筛+想法]
- 《深入理解mybatis原理》 MyBatis的一级缓存实现详解 及使用注意事项
- 【BZOJ】2818 Gcd 欧拉函数
- HDU2255 奔小康赚大钱 —— KM算法(二分图最大权匹配)
- tensorflow日常小记---tensorboard曲线显示不全