Correct the classpath of your application so that it contains a single

文章目录

    • 前言
    • 一、这个jar包冲突了。
    • 二、在pom.xml找到对应的jar包删掉即可

前言

Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.session.Configuration
翻译:请更正应用程序的类路径,确保是单一路径,使其兼容org.apache.ibatis.session.Configuration的版本
解决思路:这表明是自己的jar包冲突了,删掉一些重复的jar包即可


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:427)

The following method did not exist:

org.apache.ibatis.session.Configuration.setVfsImpl(Ljava/lang/Class;)V

The method’s class, org.apache.ibatis.session.Configuration, is available from the following locations:

jar:file:/E:/RuanJian_2/IDEA/apache-maven-3.5.2/repository/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar!/org/apache/ibatis/session/Configuration.class
jar:file:/E:/RuanJian_2/IDEA/apache-maven-3.5.2/repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar!/org/apache/ibatis/session/Configuration.class

It was loaded from the following location:

file:/E:/RuanJian_2/IDEA/apache-maven-3.5.2/repository/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.session.Configuration

Process finished with exit code 1

一、这个jar包冲突了。

Correct the classpath of your application so that it contains a single_第1张图片

二、在pom.xml找到对应的jar包删掉即可

Correct the classpath of your application so that it contains a single_第2张图片

你可能感兴趣的:(java)