[2024-05-24 17:01:50:137452][0;39m [32m[http-nio-8080-exec-6][0;39m [39mDEBUG[0;39m [33mo.s.web.servlet.DispatcherServlet[0;39m
Failed to complete request: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'auth_uri' from result set. Cause: java.lang.NumberFormatException: For input string: "ac53e53d47a14094b523bbfc459917c4"
5월 24, 2024 5:01:50 오후 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: 경로 [/pf2]의 컨텍스트 내의 서블릿 [pf]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'auth_uri' from result set. Cause: java.lang.NumberFormatException: For input string: "ac53e53d47a14094b523bbfc459917c4"]을(를) 발생시켰습니다.
java.lang.NumberFormatException: For input string: "ac53e53d47a14094b523bbfc459917c4"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:543)
at com.mysql.cj.protocol.a.MysqlTextValueDecoder.getDouble(MysqlTextValueDecoder.java:266)
at com.mysql.cj.result.AbstractNumericValueFactory.createFromBytes(AbstractNumericValueFactory.java:56)
at com.mysql.cj.protocol.a.MysqlTextValueDecoder.decodeByteArray(MysqlTextValueDecoder.java:159)
MyBatis 에러.
반환 타입이 DTO였는데 기본 생성자가 없었다.
내가 정말 자주 하는 실수인데, 매개변수가 있는 생성자를 만들면 기본 생성자도 직접, 명시적으로!! 추가해주어야 한다는 걸 자꾸 까먹는다.
기본생성자를 특별히 더 유념하자!!!
[참고]