Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 공백검사
- 유효성검사
- JPA
- ORM
- 모던 자바스크립트 Deep Dive
- Thymeleaf
- msa
- 출처 모던 자바스크립트 Deep Dive
- 자바
- 자바 ORM 표준 JPA 프로그래밍
- 자바스크립트
- UUID
- 중복되지 않는 값 만들기
- 관계형 데이터베이스
- 게시판 작성자를 아이디로
- java
- spring security
- 스프링 시큐리티
Archives
- Today
- Total
인지용
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is with root cause 에러 해결 본문
에러 해결
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is with root cause 에러 해결
인지용 2022. 8. 16. 18:51mybatis 사용 중 에러가 발생하였다.
세팅
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
</settings>
<typeAliases>
<typeAlias alias="array" type="java.util.Arrays" />
<typeAlias alias="list" type="java.util.List" />
<typeAlias alias="hashMap" type="java.util.HashMap" />
<typeAlias alias="int" type="java.lang.Integer" />
<typeAlias alias="bigint" type="java.lang.Long" />
<typeAlias alias="string" type="java.lang.String" />
</typeAliases>
<typeHandlers>
</typeHandlers>
</configuration>
문제의 쿼리
<select id="selectCodeInfo" parameterType="String" resultType="codeDto">
/* selectCodeInfo */
SELECT t1.client_id as client_id
,t1.redirect_uri as redirect_uri
FROM testTable t1
WHERE 1=1
AND t1.client_id = #{clientId}
</select>
뭐가 문제인지 보이는가?....
이것 때문에 3시간 삽질했다...
원인
alias와 parameterType의 대소문자가 달라서 생긴 문제였다.
typeAliases에서 정한 alias는 소문자 string이었는데
쿼리의 parameterType은 대문자 string이어서 그렇다
해결 방법
alias와 parameterType의 대소문자를 잘 보고 사용하자 ㅠㅠ
'에러 해결' 카테고리의 다른 글
스프링 라이브러리 임포트 안될 때 (0) | 2022.10.31 |
---|---|
git permission denied 에러 해결 (0) | 2022.01.26 |
Spring boot test junit5 @Autowired null 에러 (0) | 2022.01.08 |
Failed to connect to service endpoint 에러 해결 (0) | 2021.12.24 |
리눅스 ruby ./ no such file or directory 에러 해결 (0) | 2021.12.17 |