![[SpringBoot/Thymeleaf] Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcEywLP%2FbtsglOpLjdr%2FAAAAAAAAAAAAAAAAAAAAAOBpYFqp7hq4Tzlo8WlLrYPJnnblfnVqrBBDbV583ibu%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DCfnf5Tl6F6WLV2%252FhwBnqUgxYfgM%253D)
에러 메세지 Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null 에러 원인 DTO객체를 리턴받아 th:value="${dto.id}"로 주었는데, null을 받아와서 에러 발생 해결 th:value="${dto?.id}
![[SpringBoot/JPA] Reason: Validation failed for query for method public abstract](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FriSZz%2FbtsgnhESUui%2FAAAAAAAAAAAAAAAAAAAAAH58-L61PGKMM3QopcZ2wumJABGzb2ebMaKEHNOG224N%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3D3sgUyLLb1c2RzgtcVqA6jIUIp%252BA%253D)
에러 메세지 에러가 너무 길어서 사진은 없음.. 그 중에 Reason: Validation failed for query for method public abstract 를 검색 키워드로 사용 더보기 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController' defined in file [G:\내 드라이브\toy1-uni\boot\uni\bin\main\com\uu\uni\user\controller\UserController.class]: Unsatisfied dependency expressed through constructor parameter 0: Err..
![[SpringBoot/JPA] No default constructor for entity](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FP0U5p%2Fbtsf2pRkcR3%2FAAAAAAAAAAAAAAAAAAAAAKE9Cc9whISOd6xI5vaQmEkwvDK6bgcT-mOd3X9Ak9DW%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DIzT%252F8k7KJIyeHcmEzovxgppigMc%253D)
에러 메세지 No default constructor for entity 원인 기본 생성자가 없다는 메세지 JPA를 사용하기 위해 default construct가 필요하다. 해결 1. @Builder 사용하지 않기 - 빌더 패턴을 사용할 것이기 때문에 나의 경우에는 부적합함. 2. @AllArgsConstruct, @NoArgsConstruct 사용 - @AllArgsConstruct : 모든 필드값을 파라미터에 넣은 기본 생성자를 생성해주는 애너테이션 - @NoArgsConstruct : 파라미터가 없는 생성자를 만들어주는 애너테이션 @Build 애너테이션은 생성자를 생성하지 않으며 생성자 유무에 따라 다음과 같이 작동한다. 생성자가 없는 경우 : 모든 멤버 변수를 파라미터로 받는 기본 생성자 생성 ..
![[SpringBoot] template might not exist or might not be accessible by any of the configured Template Resolvers](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbGmL2e%2Fbtsgn3l3MhK%2FAAAAAAAAAAAAAAAAAAAAAPSiygJAW7vu8GsUuTQb2gyDC5QFy9TPoGAqfsIcIj0y%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DTryGTcMVO9ckRjcG%252B3g1xKJlHYU%253D)
에러 메세지 template might not exist or might not be accessible by any of the configured Template Resolvers 에러 원인 나의 경우는 회원가입 시 정규표현식과 함께 짬뽕으로 DB에서 Validation도 진행하여 아이디, 이메일, 닉네임 중복 여부를 바로 view시켜주려고 했다. 하여 ajax를 통해 blur event시 데이터를 보냈는데 Hibernate는 정상 작동하는 것을 보니 리턴하는 과정에서 문제가 생긴 것 같다고 판단하였고 아니나 다를까 msg를 그대로 던지고 있었다. 해결 내가 알기로는 저렇게 되면, view resolver가 msg의 문자열에 해당하는 템플릿(view) 파일을 찾아 떠나....(?) 안녕~~(????)..
![[SpringBoot/JPA] SpringBoot Entity @Table 대소문자 구분 못할 때](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FOeU9T%2FbtsfPCKVBT7%2FAAAAAAAAAAAAAAAAAAAAAJnHRUO2ip_a4dyc16NJKYSJNETA3_9GI3XuHCvZreNs%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DrQ9V6YHfRnYJyh7H3BCdiUampCU%253D)
에러 메세지 없음 원인 대소문자를 구분못해서 계속 소문자 형태의 table이 생성됨 그러다보니 기존 User 테이블에서 데이터를 조회하지 못해서 계속 null을 가져옴. 해결 application.properties에 아래 코드 추가 spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
![[SpringBoot / MySQL] Spring Boot MySQL 연동오류 / java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FNSeSf%2FbtsfeAfNtB3%2FAAAAAAAAAAAAAAAAAAAAANSyefL5z8K9iMFbytKquMOKKjj9DpcVnPr44ZQ2coD7%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3D5%252Fo6JJ7qhcXcKPosSL6xIArcrbM%253D)
에러 메세지 java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver 원인 gradle에 주입해 준 mysql connector-java가 제대로 돌아가지 않음. 해결 구글 서핑 결과는 전부 connector-java jar파일을 프로젝트 내부에 빌드하는 것이었지만. Dependency Versions docs.spring.io Maven Central: com.mysql:mysql-connector-j:8.0.32 Maven Central: com.mysql:mysql-connector-j:8.0.32 central.sonatype.com 위의 두 문서들을 보면, 네이밍이 connector-java에서 mysql-connector-j로 변경된 것을 볼 수..
![[우아한 테크캠프 6기] 코딩테스트 리뷰/후기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbIaLcn%2Fbtsfg23RunZ%2FAAAAAAAAAAAAAAAAAAAAAKvgyjWprT_Wkue9r4A51ilFkyXwGoVxuq4YFY3fllgc%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DAfix6qXWHw8z1P%252FZwY98noGQeiU%253D)
서론 코딩테스트에 미친놈 답게 매일 프로그래머스를 들락날락(?)거리며 새로운 2,3레벨 문제가 없나 기웃거리다가 요새는 0레벨 와장창 올려놓고 뜸한 찰나에 우테코 지원글이 올라왔다. 코테 문제푸는 것 자체를 너무 좋아하기 때문에, 바로 지원했다. 응시 환경 프로그래머스답게, 언제나 IDE사용 불가 (자동완성 x, import 수동) 의 환경이기 때문에 처음있는 일도 아니고 해서 그런갑다... 하고 응시했다. (처음 이런 환경을 접하시는 분들은 좀 불편할 수도...) PCCP랑 달리, 정면캠, 뒷캠 같은 것들을 굳이 구비해놓지 않아도 되었다. 시험 규칙에 단순 IDE사용 금지. 라고만 해놨다. 프로그래머스 코테환경에서는 sysout으로디버깅을.... 문제 우선 필자는 백준은 활용하지 않기 때문에, 프로그래..
![[Java] 2466. Count Ways To Build Good Strings - LeetCode Daily Challenge / Dynamic Programing(DP)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FuxZRQ%2FbtsfckcUIL0%2FAAAAAAAAAAAAAAAAAAAAAGJQiUyYtfnm64iLin9Ftl-7MFipRKQlVwEpx7Oi1Tii%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DhOxhqZFhD0lwJi8HDYYsKTTJs%252BE%253D)
Count Ways To Build Good Strings - LeetCode Can you solve this real interview question? Count Ways To Build Good Strings - Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step perform either of the following: * Append the char leetcode.com 풀이 DP배열을 생성해, Bottom Up방식으로 풀이. dp[0]=1이 왜 1인가에 대해 고민을 좀 많이 했던 문제였다. 문자열의 길이가 0인게 없지..