java.lang.Error : Unresolved compilation problems
java.lang.Error : Unresolved compilation problems
Environment description solution reason
environment
jdk1.8
+ springboot
+ maven
+ ItelliJ IDEA
。
describe
When starting a project, initialize the datasource code> to report an error. The specific error is to say that a
POJO code>
cannot be resolved to a type code>, and repeatedly check that the
POJO code> exists and has been relied on in
POM code>.
A few days ago, it can be started normally. Other colleagues can start normally, and the code has not been modified.
Solution
The search results are generally caused by the inconsistency between the version of JDK code> compiled by
eclipse code> or
idea code> and the version of
JDK code> required by the project. However, the configuration of any development environment has been modified recently. After careful inspection, it is found that the
java complier code> and
Project SDK code> versions are the same.
There is an answer on stackoverflow code> that is to say
MVN clean code> once, try it and find that it can be started successfully
reason
It may be that the previous MVN clean install code> did not have the correct
clean code>, resulting in some compiled codes not being updated.