llegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.

Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/List; from class org.springframework.boot.SpringApplication
    at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:401)
 

我报这个错误 是第一次用IntelliJ IDEA 打开 eclipse 开发的微服务 后台代码 引起的。 后来重新按照引入eclips项目的操作

llegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.

 

llegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.

后面按照标准步骤做,

llegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.

走到这一步 ,有XX的 二选一 

llegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.

 

然后就导入完成了。