본문 바로가기

java6

Functional Interface 파고들기 Functional Interface 는 JDK 1.8 부터 추가된 기능으로 람다(lambda) 표현식과 메서드 참조(method reference) 를 사용할 수 있습니다. (람다 표현식과 메서드 참조는 내용이 많으므로 설명을 생략) Functional Interface 는 functional method 라고 불리는 하나의 abstract method 만 존재해야 하며 0개 이상의 default(or static) method 를 갖고 있을 수 있고, 사용시 입력값과 반환값을 자동으로 할당해 주는 특징이 있으며 @FunctionalInterface 어노테이션이 달려있습니다. @FunctionalInterface 어노테이션이 없어도 Functional Interface 로서 동작하는데에는 문제는 없지만.. 2022. 4. 28.
Tabnine AI Code Completion ( IntelliJ 자동완성 지원 plugin) IntelliJ 를 사용하면서 javascript 자동완성이 지원되지 않아 찾아보던 중 발견한 plugin 이다. Java, Javascript, Python, Vue 외에도 매우 다양한 언어를 지원한다. 꼭 설치해서 사용해 주자. https://github.com/codota/tabnine-intellij GitHub - codota/tabnine-intellij: Jetbrains IDEs client for TabNine. Compatible with all IntelliJ-based IDEs. https://plugins.je Jetbrains IDEs client for TabNine. Compatible with all IntelliJ-based IDEs. https://plugins.jetb.. 2022. 2. 18.
JAVA 개발 관련 사이트 모음 https://mvnrepository.com/ Spring Boot 의 plugins, dependencies 관련 자료를 찾아볼 수 있다. 검색이 잘 되지 않는 문자가 있다. ("-") https://start.spring.io/ Spring Initializr 사이트 ( SpringBoot 프로젝트 초기 템플릿 생성 도우미 ) 부트스트랩(BootStrap) 공식 사이트 : https://getbootstrap.com/ 홈페이지를 만드는데 필요한 다양한 components 들을 빠르게 적용할 수 있습니다. 스프링 공식 사이트 : https://spring.io/ 스프링 API 에 대한 문서를 찾아볼 수 있다. Java API 문서 사이트 : https://docs.oracle.com/javase/8/.. 2022. 2. 17.
Thymeleaf cache 사용 중지 thymeleaf 는 기본적으로 성능을 향상시키기 위해서 캐싱 기능을 사용한다. 개발할 때에는 개발 생산성 향상을 위해 꺼주도록 하자 appliation.properties 파일에 아래와 같이 설정을 추가한다. #Thymeleaf cache 사용 중지 spring.thymeleaf.cache = false​ 2022. 2. 15.
Spring Boot 에서 Automatic Restart 적용하기 소스를 수정할 때 마다 수동으로 Build 하는 것이 귀찮다면 아래와 같이 세팅하면? 아래와 같이 세팅하면 소스가 변경될 때마다 애플리케이션을 자동으로 재시작해 준다. Automatic Restart 적용하기 Settings > Build, Execution, Deployment > Compiler > Build project automatically 체크 Settings > Advanced Settings > Allow auto-make to start even if developed application is currently running 체크 2022. 2. 15.
IntelliJ 개발시 유용한 Plugins IntelliJ 에서 Plugins 설치 방법. File > Settings > Plugins - Plugins Lombok Getter/Setter, ToString 등의 반복적인 자바 코드를 컴파일시 자동으로 생성해주는 라이브러리 File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors 에서 Enable annotation processing 를 체크한다. Enable annotation processing 는 Lombok을 사용하는 프로젝트마다 설정해 주어야 한다. Plugin 설치 후 pom.xml 에 사이에 Lombok 의존성을 추가 IntelliJ 를 재시작 또는 Reload All Maven Projec.. 2022. 2. 12.