Check for Incompatible Dependencies in Intellij's Dependency Tree
In Intelllij: Go to view -> Tool Windows -> Maven -> Dependencies
and check if multiple versions of JUnit or Spring libraries are present.
If you find conflicting versions, try forcing specific versions in pom.xml