728x90
728x90
[SpringBoot/Thymeleaf] Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null
트러블슈팅2023. 5. 20. 06:42[SpringBoot/Thymeleaf] Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null

에러 메세지 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
트러블슈팅2023. 5. 20. 06:23[SpringBoot/JPA] Reason: Validation failed for query for method public abstract

에러 메세지 에러가 너무 길어서 사진은 없음.. 그 중에 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
트러블슈팅2023. 5. 19. 22:08[SpringBoot/JPA] No default constructor for entity

에러 메세지 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
트러블슈팅2023. 5. 18. 05:41[SpringBoot] template might not exist or might not be accessible by any of the configured Template Resolvers

에러 메세지 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 대소문자 구분 못할 때
트러블슈팅2023. 5. 16. 06:38[SpringBoot/JPA] SpringBoot Entity @Table 대소문자 구분 못할 때

에러 메세지 없음 원인 대소문자를 구분못해서 계속 소문자 형태의 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
트러블슈팅2023. 5. 15. 06:48[SpringBoot / MySQL] Spring Boot MySQL 연동오류 / java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver

에러 메세지 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로 변경된 것을 볼 수..

[Eclipse/STS] 톰캣 Add and Remove가 안될때 / There are no resources that can be added or removed from server
트러블슈팅2023. 5. 2. 12:52[Eclipse/STS] 톰캣 Add and Remove가 안될때 / There are no resources that can be added or removed from server

톰캣에서 Add and Remove를 통해 프로젝트를 추가하려했지만 위의 에러가 뜨면서 추가 설정창이 열리지 않음 해결 프로젝트 - Properties - Project Facets에서 Dynamic Web Module 체크 체크가 되어 있는데도 Tomcat이 뜨지 않는 경우 Runtimes - Show all runtimes 체크 다이나믹 웹 서버와 호환되는 톰캣의 버전을 깔아서 다시 연결. 제한적인 상황일 때(인터넷 X, 톰캣 버전이 고정적일 때) 파일 탐색기로 해당 프로젝트 접근 (프로젝트 우클릭 - Show In - System Explorer) .settings - org.eclipse.wst.common.project.facet.core.xml 실행 jst.web의 version을 바꿔가며 호..

윈도우에서 도커 사용 시 Docker Desktop requires a newer WSL kernel version.
트러블슈팅2023. 4. 30. 12:30윈도우에서 도커 사용 시 Docker Desktop requires a newer WSL kernel version.

도커 입문단계에서부터 시작된 무언가.. 쉬운게 없다 역시.. wsl --update를 커널에다 입력하라는 것 같다. 해결 PowerShell에서 wsl --update 명령어를 입력해서 업데이트를 진행 만약 0%에서 올라가지 않는다면, 아래 포스팅을 참조 [Docker] wsl 무한대기 (feat. Docker Desktop requires a newer WSL kernel version) 서버에서 GitLab과 Jenkins를 돌리려는데 Jenkins를 잘 모르겠다. 스케줄링과 같은(더 많은 서비스가 있겠지만) 개념으로 .sh을 실행하는 것 같긴 한데, 익숙지가 않아서 인프런에 강의를 구매. 근데 Win park-duck.tistory.com

728x90
728x90
image