Springboot整合MybatisPlus 启动报错

Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\IDEAWork\robot_distribution\gateway\gateway-admin\target\classes\mapper\GatewayRoutesMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\IDEAWork\robot_distribution\gateway\gateway-admin\target\classes\mapper\GatewayRoutesMapper.xml]'. Cause: java.lang.IllegalStateException: No typehandler found for property predicates
 

 

记录一次报错

因为本来实体类是String 类型 我为了转换方便吧String 钻换成了List 类型导致出错 具体什么原因不知待深究.

 

你可能感兴趣的:(JAVA,Mybatis-plus,SpringBoot,Spring)