报错: Cannot convert value of type ‘java.lang.String’ to required type
Caused by: java.lang.IllegalStateException: Cannot convert value of type ‘java.lang.String’ to required type ‘com.sun.org.apache.xpath.internal.operations.String’ for property ‘name’: no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:262)
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:585)
… 36 more
报错原因:
不能将lang包下的String类转换为com.sun.org.apache.xpath.internal.operations.String下的String类
解决办法:
将错误的包删除,重新导入lang下的String包
import java.lang.String;