전체 글 (522) 썸네일형 리스트형 java: error: release version 21 not supported 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 p.. 자바: 에러: release version 21 not supported 자바 컴파일러 (JDK) 버전과 메이븐 파일의 버전이 불일치할 때 나는 에러로 컴파일러 버전은 반드시 메이븐 버전과 같거나 그 이상이어야 한다. version not supported 에러는 아래와 같이 프로젝트를 생성할 때 SDK와 버전을 확인하지 않고 생성하는 경우 발생한다 프로젝트 생성 후 구동 시 아래와 같은 오류가 나타난다면 파일 -> 프로젝트 설정에서 SDK 버전을 업데이트하거나 pom.xml 파일에 parent와 프로퍼티 버전을 다운그레이드하면 된다 우측 상단에 조그만 아이콘을 클릭하여 pom.xml 파일을 반영 (Ctrl + Shift + O) 이상 HTML 삽입 미리보기할 수 없는 소스 Lombok In Object Oriented Programming, entities are used to pass data. Entities often have fields that specify the characteristics of the entity. It is best practice to use getters and setters to prevent the fields from getting changed directly but the problem is that the getters and setters are boilerplate codes that have nothing to do with the business logic to which effort should be put. Lombok is a.. Inheritance Inheritance is one of the advantages of Object Oriented Programming. It allows us to inherit the characters and actions from its parent and add its features to them if needed. One class can only inherit from one parent and if the parent has a parent the child can also inherit the characters and actions from the ancient. HTML 삽입 미리보기할 수 없는 소스 상속 객체지향 프로그램에 장점 중하나인 상속에 대해 알아보자. 상속은 하나의 클래스의 특성과 기능을 물려받고 필요에 따라 상속받는 클래스의 부가적인 특성을 추가하거나 물려받은 특성을 수정하여 사용하는 기능이다. 하나의 클래스는 하나의 부모로부터 상속가능하며 부모다 다른 클래스를 상속하는 경우 조상의 특성은 모두 사용가능하다. HTML 삽입 미리보기할 수 없는 소스 Class A class is a blueprint that describes the features and actions of an object in Object Oriented Programming hence it is referred to as a cookie cutter. A class has fields that define the features, methods for actions, and constructors to instantiate the class. The concept is the same across all the programming languages but how to use them differs so today we will see how we can use class in Java.. 클래스 클래스는 객체지향 프로그래밍에서 객체가 가지는 특징이나 행동패턴 등을 규정하는 틀입니다 (그래서 클래스를 쿠키커터라고도 함). 클래스는 특성을 규정하는 필드, 행위를 규정하는 매서드, 클래스 생성에 필요한 생성기를 가집니다. 클래스의 개념은 사용하는 언어가 다르더라도 대동소이하지만 사용법은 언어마다 조금씩 다르므로 오늘은 자바 클래스를 다루어보겠습니다. HTML 삽입 미리보기할 수 없는 소스 스위치 스위치는 조건처리를 위한 코드로 대부분의 언어에서 제공되며 근본적으로 이프 엘스 구문과 동일한 기능을 수행합니다. 이프 엘스 구문에 비해 가독성이 높은 장점이 있습니다. 자바 스위치문법을 살펴보겠습니다. HTML 삽입 미리보기할 수 없는 소스 이전 1 ··· 7 8 9 10 11 12 13 ··· 66 다음