전체 글

· Backend/Java
1. Mapstuct?? Java에서 데이터 매핑 작업을 쉽고, 빠르게 할 수 있는 라이브러리이다. 2. 설정 방법 build.gradle에 dependency를 추가한다. 주의! gradle version 4.6 미만은 설정 방식이 상이함. (참고 : https://mapstruct.org/documentation/installation/) // mapstruct implementation("org.mapstruct:mapstruct:1.5.3.Final") annotationProcessor("org.mapstruct:mapstruct-processor:1.5.3.Final") 3. Mapper Interface 만들기 Model 생성 시 유의사항이 있다. 모델은 getter가 있어야 하고 sette..
MyBatis 환경에서 API 개발 중에 아래와 같은 에러 발생 Caused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value 1. 발생원인 및 해결 방법 - 발생원인 : mapper.xml 파일 내에 동일한 Id를 가진 sql문이 존재하는 경우에 발생 ... ... ... ... ... - 해결방법 : 동일한 Id를 가진 sql문의 id를 수정 또는 삭제한다.
· 기타
VSCode를 이용하여 개발 혹은 로그를 모니터링하는 경우 로그파일이 긴 경우 화면 밖으로 벗어나서 가독성이 떨어지는 경우가 있다. 이런한 경우 아래 옵션을 조정해주면 한 화면에 보여질 수 있다. 설정 방법 1. VSCode 좌측 화면 톱니바퀴(제어판) 클릭 2. 설정으로 이동 3. 설정 검색에서 'Word Wrap'으로 검색, Editor: Word Wrap을 'on' 상태로 변경
· Coding Test
https://leetcode.com/problems/orderly-queue/ Orderly Queue - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 문제와 예제, 그리고 제약사항 You are given a string s and an integer k. You can choose one of the first k letters of s and append it at the end of the string.. Return the lexicograph..
· Coding Test
https://leetcode.com/problems/container-with-most-water/ Container With Most Water - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 문제와 예제, 그리고 제약사항 You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line a..
· Coding Test
https://leetcode.com/problems/product-of-the-last-k-numbers/ Product of the Last K Numbers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 문제와 예제, 그리고 제약사항 Design an algorithm that accepts a stream of integers and retrieves the product of the last k integers of the stream. Imp..
야뤼송
야뤼송