zoukankan      html  css  js  c++  java
  • SpringBoot使用thymeleaf模板引擎引起的模板视图解析错误

    1 Whitelabel Error Page
    2 This application has no explicit mapping for /error, so you are seeing this as a fallback.
    3 
    4 Thu Sep 19 16:54:45 CST 2019
    5 There was an unexpected error (type=Internal Server Error, status=500).
    6 An error happened during template parsing (template: "class path resource [templates/emp/list.html]")

    template: “class path resource [templates/emp/list.html]”
    模板解析过程中出错(模板:“类路径资源[templates/emp/list.html]”)

    我一开始的想法就是错误的,这个问题和模板引擎本身毫无关系,回归原题,这个的错误是thymeleaf 引入公共代码片段出错了,导致连这个视图都不会解析出来

    引入公共代码片段请参考这个链接:https://blog.csdn.net/qq_37638061/article/details/83276472

  • 相关阅读:
    VIM 编辑器命令
    Ubuntu LAMP 便捷配置
    Linux基础命令
    Sql sever 定时任务设置
    C#自动发送邮件
    序列化与反序列化
    字符串.特殊引用类型
    抽象方法、接口
    函数的返回值
    线程
  • 原文地址:https://www.cnblogs.com/phyqxx/p/11558639.html
Copyright © 2011-2022 走看看