SpringBoot+thymeleaf报错
An error happened during template parsing (template: "class path resource [templates/emp/error.html]
找了许多方法,,都不是我要的结果。
最终发现我的异常处理类里面的Exception的E是大写,而返回异常处理信息页面的error.html中exception.message等之类的是小写,改了之后运行成功。
SpringBoot+thymeleaf报错
An error happened during template parsing (template: "class path resource [templates/emp/error.html]
找了许多方法,,都不是我要的结果。
最终发现我的异常处理类里面的Exception的E是大写,而返回异常处理信息页面的error.html中exception.message等之类的是小写,改了之后运行成功。