반응형
This error occurs when there is a discrepancy between the Java compiler (JDK) version and the Maven file version. Java compiler version must be equal to or higher than the Maven version to avoid this error. One example that you might encounter this error would be when you create a project without checking the Java and packaging version as shown below
If you see the error below when running the project
Go to file -> project structure
And update the SDK version
Or open the pom.xml file and downgrade the parent and property version
And update the XML file by clicking the little icon on the top right (Ctrl + Shift + O)
Hope this helps
728x90
반응형
'Backend > Java' 카테고리의 다른 글
Polymorphism (0) | 2024.01.01 |
---|---|
Method Overriding VS Overloading (1) | 2023.12.31 |
Lombok (0) | 2023.12.29 |
Inheritance (0) | 2023.12.28 |
Class (0) | 2023.12.28 |