trouble_shooting 5

[ Springboot - swagger ] No operations defined in spec! 해결

스웨거 설정 후 http://localhost:8080/swagger-ui/index.html로 접속을 했을 때 No operations defined in spec! 이런 문구가 떴습니다. 해결을 위해 설정 파일을 살펴보도록 하겠습니다. 프로젝트 환경 : Java 17 , SpringBoot 3.1.2 , Swagger 2.0.2 SwaggerConfig 파일 config 파일을 확인해 보니 path 가 절대경로로 설정되어 있음을 알 수 있습니다. 해당 코드를 절대경로로 수정하겠습니다. 수정 완료한 코드 ↓ @OpenAPIDefinition( info = @Info(title = "sns", description = "sns api - personal project", version = "v1") ) ..

trouble_shooting 2023.10.17

[ Springboot - h2 ] could not execute statement ... constraint [null] , h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column SQL statement 해결하기

Dev , Test DB 분리 후 테스트를 시도하던 중 아래와 같은 오류가 났습니다. org.springframework.dao.DataIntegrityViolationException: could not execute statement [NULL not allowed for column "ID"; SQL statemen .. insert into ... constraint [null] --- org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "ID"; SQL statement: 오류 내용을 살펴보면 PK로 설정했던 id 필드가 null 이 허용되지 않는다는 것 같습니다. 하지만 아래 그림처럼 누락 없..

trouble_shooting 2023.10.09

[Java] JDK 확인 및 변경 (+ build 에러 )

프로젝트 생성 후 build 에러나 JDK를 확인해야 할 일이 있을 때 이렇게 해보기 ↓ ↓ 에러 메세지들 더보기 Build failed with an exception / Java home is different / Execution failed for task ':compileJava'. 1. intelliJ JDK 확인 하기 File → Project Structure( 윈도우 단축키 : Ctrl + Alt + Shift + S) 2. 프로젝트 JDK 확인하기 File → Settings ( 윈도우 단축키 : Ctrl + Alt + S) → Gradle 검색

trouble_shooting 2023.04.18

[ Eclipse ] 이클립스 업데이트 후 오류 ( JVM is not suitable )

안녕하세요! (아무도 안 궁금하고 안 보겠지만) 저는 요즘 스프링을 공부하고 있는데요, 평소 잘만 생성되던 프로젝트가 오늘따라 생성이 안되는거있죠오.. 이래저래 찾다보니 이클립스를 업데이트 하면 해결된다는 똑똑한 사람들 덕에 이클립스를 업데이트 하게 됩니다. ( 업데이트는 상단 메뉴의 help → eclipse update 로 할 수 있어요!) 그렇게 오류하나 해결을 하고 신나게(?) 코드 작성 후 eclipse.exe를 재시작 했는데..? Version 14 of the JVM is not suitable for this product. version: 17 or greater is required. ... 그래도 먼저 해결한 선배님들 덕분에 저도 빠르게 해결 하고 기록으로 남겨봅니다. 이클립스 업데이..

trouble_shooting 2023.02.19