在搭建springmvc框架结合thymeleaf报错
Error creating bean with name 'org.thymeleaf.spring5.templateresolver. SpringResourceTemplateResolver#2ab18723'
defined in class path resource [springMVC.xml]: Initialization of bean failed; nested exception
is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type
'java.lang. String' to required type 'org.thymeleaf.templatemode. TemplateMode' for property 'templateMode';
nested exception is java.lang.IllegalStateException: Cannot convert value of type
'java.lang. String' to required type 'org.thymeleaf.templatemode. TemplateMode' for property
'templateMode': no matching editors or conversion strategy found
大致上就是这种报错信息,看了网上很多的解决方法,但是都不管用,而且基本上都是一样的,感觉就像是同一个人不同的账号发布的一样,我的报错是templateresolver创建bean时出错,解决方法如下:新建lib,把搭建框架用到的maven包全部放进去