Error

[Error]Could not resolve type alias 'boardResultMap'. Cause: java.lang.ClassNotFoundException: Cannot find class: boardResultMap

오선지♬ 2022. 2. 22. 17:04
728x90
반응형

[오류내용]

 

ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource

[/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException:

Failed to parse config resource: class path resource [configuration.xml];

nested exception is org.apache.ibatis.builder.BuilderException:

Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException:

Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException:

Error resolving class. Cause: org.apache.ibatis.type.TypeException:

Could not resolve type alias 'boardResultMap'.  Cause: java.lang.

ClassNotFoundException: Cannot find class: boardResultMap

 

[해결]

 

'boardResultMap' 을 찾을 수 없다고 해서 'boardResultMap'로 검색을 했다.

board.xml 파일에서 resultMap = "boardResultMap" 이렇게 작성을 했는데 한군데에 resultType으로 잘못 적은 것을 

resultMap으로 바꿔주니 실행되었다 ...

 

 

 

검색 후 참고 : https://stackoverflow.com/questions/63919062/mybatis-springboot-2-3-0-could-not-resolve-type-alias-issue

728x90
반응형

'Error' 카테고리의 다른 글

[Error] post /get 에러  (0) 2022.05.02
[Error] 405에러  (0) 2022.04.28
[Spring] RedirectAttributes / Model  (0) 2022.02.04
[HTML]<b>태그  (0) 2022.01.31
[jQuery] .animate()  (0) 2022.01.29