Solution to org.springframework.boot.autoconfigure.*jar package conflict

problem

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration.persistenceExceptionTranslationPostProcessor

Insert picture description here

the reason

In the pom file, the imported file version is incompatible, and the jar package conflicts.

solution

(1) Click the button to clear cache and restart

Insert picture description here

(2) Annotate the conflicting package

In the pom file that may send conflicts, use the shortcut keys ,Ctrl+Alt+Shift+uto 红色的线view the conflicting jar package through the following figure :
Insert picture description here

Zoom in to see the specific conflicting jar package.
Insert picture description here

Go to the pom file, find the conflicting jar package, and comment it out.
Insert picture description here

The project is ready to run.

Guess you like

Origin blog.csdn.net/a954553391/article/details/107948955