加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

java – Thymeleaf模板解析错误

发布时间:2020-12-15 01:32:09 所属栏目:大数据 来源:网络整理
导读:当我尝试加载localhost时,我得到解析错误:8080 /. 我在模板中找不到任何错误,为什么我会犯这个错误? 错误 Whitelabel Error PageThis application has no explicit mapping for /error,so you are seeing this as a fallback.Mon Apr 20 16:59:56 EEST 201

查看(班级)

public String mainPage(Model model){
    ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
    PersonJDBCTemplate personJDBCTemplate = (PersonJDBCTemplate) context.getBean("personJDBCTemplate");
    List
最佳答案
可能是你错过了某处的结束标签.我不知道你在HTML模板中有什么,除非你发布完整的代码.

但是用这个模板替换你当前的文件.它应该工作.然后,您可以添加丢失的代码.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

当我尝试加载localhost时,我得到解析错误:8080 /.

我在模板中找不到任何错误,为什么我会犯这个错误?

错误

Whitelabel Error Page
This application has no explicit mapping for /error,so you are seeing this as a fallback.
Mon Apr 20 16:59:56 EEST 2015
There was an unexpected error (type=Internal Server Error,status=500).
Exception parsing document: template="index",line 26 - column 3

模板(HTML)