Springboot启动错误:Error creating bean with name 'persistenceExceptionTranslationPostProcessor'

Springboot启动错误:Error creating bean with name ‘persistenceExceptionTranslationPostProcessor’

springboot启动时报如下错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistenceExceptionTranslationPostProcessor’ defined in class path resource [org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: No persistence exception translators found in bean factory. Cannot perform exception translation.

Caused by: java.lang.IllegalStateException: No persistence exception translators found in bean factory. Cannot perform exception translation.

主要是我的Springboot项目中引用了dubbo,dubbo 包和SpringBoot 冲突

解决方法:
maven中添加以下包:


            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            1.1.1

没深究是为什么,可先解燃眉之急。

你可能感兴趣的:(排错日志)