java nekohtml,java – Spring Boot和Thymeleaf Neko HTML错误
我试图用Spring Boot和Thymeleaf运行一个例子.我收到了这个错误:
There was an unexpected error (type=Internal Server Error,
status=500). Cannot perform conversion to XML from legacy HTML: The
nekoHTML library is not in classpath. nekoHTML 1.9.15 or newer is
required for processing templates in “LEGACYHTML5” mode
这些是我的依赖:
org.springframework.boot
spring-boot-starter-jersey
org.springframework.boot
spring-boot-starter-security
org.springframework.boot
spring-boot-starter-thymeleaf
org.thymeleaf.extras
thymeleaf-extras-springsecurity4
2.1.2.RELEASE
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
这是我的应用程序属性:
spring.thymeleaf.cache=false
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
当我添加Neko HTML依赖性错误消失.但是它应该通过我当前的依赖项包含在内.可能是什么问题?
解决方法:
对于Maven,简单地添加这个依赖:
mvn依赖:tree -Dincludes = net.sourceforge.nekohtml:nekohtml
结果没什么
似乎spring-boot-thymeleaf不包括nekohtml库.
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: '1.9.22'
标签:java,spring,spring-boot,spring-mvc,thymeleaf
来源: https://codeday.me/bug/20190828/1756320.html
java nekohtml,java – Spring Boot和Thymeleaf Neko HTML错误相关推荐
- java 模板引擎_极简 Spring Boot 整合 Thymeleaf 页面模板
点击"牧码小子"关注,和众多大牛一起成长! 关注后,后台回复 java ,领取松哥为你精心准备的技术干货! 虽然现在慢慢在流行前后端分离开发,但是据松哥所了解到的,还是有一些公司在 ...
- 第64节:Java中的Spring Boot 2.0简介笔记
Java中的Spring Boot 2.0简介笔记 spring boot简介 依赖java8的运行环境 多模块项目 打包和运行 spring boot是由spring framework构建的,sp ...
- sb版 java后端(spring boot)应用Conflux Java SDK尝试交互Conflux实录
sb版 java后端(spring boot)应用Conflux-java-尝试链接Conflux实录 2021/5/3 更新: 请看最新博客!!!内容更详实且包含本文所有内容(不删此篇纯粹是因为阅读 ...
- java 502错误,Spring Boot连接超时导致502错误的实战案例
1.问题描述 内部系统之间通过Nginx来实现路由转发. 但最近发现有一个系统,经常报502错误,每天达到上百次,完全无法忍受. 2. 原因排查 于是进行排查, 发现配置人员把连接超时时间(serve ...
- Spring Boot 使用Thymeleaf
2019独角兽企业重金招聘Python工程师标准>>> 1.引入thymeleaf: <dependency> <groupId>org.springfram ...
- 没有找到 html 模板,Spring Boot and Thymeleaf:找不到HTML模板
我正在嘗試用Thymeleaf創建一個基於Spring Boot的應用程序.我使用PetClinic樣本作爲起點. 我的應用程序找不到一些模板.Spring Boot and Thymeleaf:找不 ...
- Spring Boot (十五): Spring Boot + Jpa + Thymeleaf 增删改查示例
<p>这篇文章介绍如何使用 Jpa 和 Thymeleaf 做一个增删改查的示例.</p> 先和大家聊聊我为什么喜欢写这种脚手架的项目,在我学习一门新技术的时候,总是想快速的搭 ...
- Spring Boot 引入 Thymeleaf 及入门使用
目录: 引言 1.Spring Boot 引入 Thymeleaf 1.1 修改 Thymeleaf 版本 1.2 修改 Thymeleaf Layout Dialect 版本 2.Thymeleaf ...
- Spring Boot集成Thymeleaf模板引擎
一.Thymeleaf 模板介绍 Spring Boot 推荐使用Thymeleaf 来代替传统开发中的JSP,那么什么是Thymeleaf 模板引擎呢?下面就来简单的介绍一下. Thymeleaf ...
- Spring Boot整合Thymeleaf模板引擎
转载自 Spring Boot整合Thymeleaf模板引擎 什么是Thymeleaf Thymeleaf是一款用于渲染XML.XHTML.HTML5内容的模板引擎.类似Velocity,FreeMa ...
最新文章
- 人在职场,干得好真的不如汇报得好?
- 生成可执行jar文件
- 【PAT (Advanced Level) Practice】1001 A+B Format (20 分)
- 再谈Erlang代码热替换
- MPlayer在ARM上的移植(S5PV210开发板)
- [转载][总结]函数getopt(),getopt_long及其参数optind
- 如何使用sdkmanager命令行接受SDK package的license
- nedc和epa续航里程什么意思_NEDC、WLTP和EPA续航里程哪种最真实,用车注意事项都有什么...
- ArrayBlockingQueue与LinkedBlockingQueue
- memset汇编实现,跟踪得到的
- 语句 查询每个人每个科目的最高分_Mysql中常用的查询实例详解
- etree不能使用,etree.HTML()不能使用。
- 中兴网络设备交换机路由器查看所有端口光功率命令
- 最好用的微信编辑器(图文排版工具) -构思微信编辑器
- 浅谈人脸识别技术原理分析
- arcgis10之根据lyr文件进行配色
- css如何绘制一个等边三角形
- Pwnable之passcode
- SAS学习之基本统计过程
- 差分进化算法_想用遗传算法?来看看这些已为你做好的开源优化框架
热门文章
- [架构之路-47]:目标系统 - 系统软件 - Linux OS硬件设备驱动 - CPU内存管理单元MMU、DMA与IO内存管理单元IOMMU
- 高效办公之远程电脑控制:再也不用带着厚重笔记本
- python中pass的使用_Python pass详细介绍及实例代码
- MindManager思维导图 PRDBRD写作方法与技巧 产品规划模板下载
- 华为桌面云解决方案概述_解决方案概述和数据安全建议
- cron风格定时器_QuartzCron表达式在线生成-在线QuartzCron定时器表达式生成工具
- UE4GamePlay框架
- linux安装Telnet工具
- Javaweb基础-SQL增删改查
- word文档怎么给数字加千分符_如何在word中设置数字的千位分隔符?两种方法轻松搞定...