Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration&


2021-11-30 23:52:19.074  WARN 42392 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2021-11-30 23:52:19.081  INFO 42392 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-11-30 23:52:19.094 ERROR 42392 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

The dependencies of some of the beans in the application context form a cycle:

┌──->──┐
|  com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘

springboot版本与pagehelper版本冲突,调整版本即可。


	org.springframework.boot
	spring-boot-starter-parent
	2.6.1
	 


	com.github.pagehelper
	pagehelper-spring-boot-starter
	1.4.0

修改后


	org.springframework.boot
	spring-boot-starter-parent
	2.3.12.RELEASE
	 


	com.github.pagehelper
	pagehelper-spring-boot-starter
	1.3.0