Idea version: 2020, JDK version: 11
Use Maven to import other springboot modules, modify the JDK and compiler of the module to 11, and run with an error:
(original JDK version of this module: 1.8, spring boot starter parent version 2.5.0 in POM file)
Solution:
Modify the version of spring boot starter parent in POM file to 2.6.7 (or other suitable version) and run successfully.
Possible causes of error:
Version mismatch……