spring-boot thymeleaf对没有结束符的HTML5标签解析出错解决办法
来源:互联网 发布:小众运动鞋知乎 编辑:程序博客网 时间:2024/06/05 16:43
原文来自:http://blog.csdn.net/ngl272/article/details/70215435
问题:
使用springboot的thymeleaf模板时默认会对HTML进行严格的检查,导致当你的标签没有闭合时就会通不过,例如:
- 1
- 2
- 1
- 2
个人发现不仅是HTML代码会这样,js代码同样会这样,例如:
- 1
- 2
- 3
- 4
- 1
- 2
- 3
- 4
解决办法:
- 引入nokohtml库
- 1
- 2
- 3
- 4
- 5
- 6
- 1
- 2
- 3
- 4
- 5
- 6
- 修改配置文件application_dev.yml加入
- 1
- 2
- 1
- 2
大功告成。
阅读全文
0 0
- spring-boot thymeleaf对没有结束符的HTML5标签解析出错解决办法
- spring-boot thymeleaf对没有结束符的HTML5标签解析出错解决办法
- spring-boot thymeleaf对没有结束符的HTML5标签解析出错解决办法
- thymeleaf对没有结束符的HTML5标签解析出错
- thymeleaf模板对没有结束符的HTML5标签解析出错的解决办法
- thymeleaf模板对没有结束符的HTML5标签解析出错的解决办法
- Thymeleaf模板HTML5没有结束标签解决办法
- 解决spring-boot thymeleaf模板对非严格HTML5格式文件的解析
- [spring boot][thymeleaf]因html中没有结束标签而经常报异常-解决方案
- spring boot thymeleaf的使用
- spring boot结合thymeleaf通过后台传入的数值循环生成标签
- springboot模板引擎thymeleaf对于没有关闭标签的错误解析
- Spring Boot (三):Thymeleaf 的使用
- Spring Boot模板thymeleaf的基本配置
- Spring boot遇到的thymeleaf一些问题
- spring boot 使用thymeleaf 和shiro标签整合
- spring boot解决thymeleaf标签未关闭错误
- Spring Boot+Thymeleaf出现org.xml.sax.SAXParseException: 元素类型 "meta" 必须由匹配的结束标记 "</meta>" 终止。
- OpenGL ES应用开发实践指南(android 卷)笔记 第三章2
- 关于定时器-闭包分析
- 脚本
- CC2640R2F BLE5.0 蓝牙协议栈Off-Chip OAD功能
- 如何才能成为一个好的Java架构师?
- spring-boot thymeleaf对没有结束符的HTML5标签解析出错解决办法
- Java内存不足之PermGen space(Tomcat报错)
- 做产品的小白
- Fiddler修改请求和响应
- HDU6044-Limited Permutation(fread挂&&阶乘求逆元&&组合数)
- Go语言实现并行分段求和计算
- Jquery的each(),attr()方法介绍
- dos命令 端口被占用
- ORACLE体系结构