I upgraded to jdk11 some time ago, and I recently ran an old project with jdk8. It can run locally, but when packaging it, I get an error.
The reason is very simple, that is, the jdk version is inconsistent
You need to check a few places
1、setting
2、project structure
3、maven
Just set all the above jdk places to be consistent
Done