오류 처리(2)
-
[오류 해결 - swagger] Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
Spring Boot에서 swagger를 사용하기 위해 아래와 같이 의존성을 추가하고, 서버를 실행하니 하니 오류가 발생했다. //swagger implementation 'io.springfox:springfox-boot-starter:3.0.0' 에러 로그 org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 우선 위 에러를 대략 해석하자면 다음과 같다. org.springframework.context.ApplicationContextException : 스프링..
2023.08.01 -
[SQL 에러] You have an error in your SQL syntax; check the manual...
에러 로그 Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'uuid char, updated_at datetime, username varchar (16) not null, primary key (id)' at line 1 개발 중 위와 같은 오류를 마주했다. 위 상황은 디버거가 DDL을 생성하던 도중 문법 오류를 발견했다는 뜻이다. => SQL syntax 오류 에러 로그 중에서 다음처럼 near ~~~ 로 해당하는 부분을 살펴보자...
2023.07.31