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 | 29 | 30 | 31 |
Tags
- 인터페이스와 추상클래스 차이
- and Java EE 5
- 쿠키와 세션의 차이
- @RediretAttribute
- WAS와 WEB서버 차이
- 코드로 배우는 스프링 웹 프로젝트
- 정보처리기사 해설
- 정보처리기사 1과목
- 톰캣에러
- 쿠키와 세션의 특징
- and 7 Web modules
- 공개 암호화키
- 스프링 게시판 만들기
- 코드로 배우는 스프링부트 웹 프로젝트
- 의존성 주입
- 테스트코드 작성
- 코드로 배우는 스프링 웹프로젝트
- HTTP
- java jdk 오류
- org.mybatis.spring.MyBatisSystemException
- 정보처리기사
- HTTP와 HTTPS의 차이
- pom.xml 설정
- 게시판 만들기
- Junit Test 에러
- java 면접질문
- oracle Database 설정
- @RequiredArgsConstructor
- 정보처리기사 20년
- Tomcat version 8.5 only supports J2EE 1.2
Archives
- Today
- Total
모아이티
스프링 오류 - Could not resolve type alias '패키지명.클래스명' 본문
오늘의 에러
ERROR: org.mybatis.spring.mapper.MapperFactoryBean - Error while adding the mapper 'interface org.zerock.mapper.BoardMapper' to configuration.
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'org/zerock/mapper/BoardMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:123)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:95)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:179)
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:118)
at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:72)
at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:841)
at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:80)
at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
원인
- BoardMapper(XML파일)에서 select로 작업할 때 발생할 수 있는 에러
- resultType으로 BoardVo를 설정했는데 BoardVo를 찾지 못해서 발생
해결
@Select 구문을 삭제 하니까 해결이 되었다
'오류해결' 카테고리의 다른 글
[tomcat 오류] Tomcat version 8.5 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5, 6, and 7 Web modules (0) | 2021.03.07 |
---|---|
[Oracle] java.sql.SQLException: 부적합한 열 유형: 1111 (0) | 2021.01.27 |
[oracle] java.sql.SQLSyntaxErrorException: ORA-02289: 시퀀스가 존재하지 않습니다. (0) | 2021.01.27 |
ORA-01031 에러 발생 (0) | 2020.08.30 |
unable to launch the java virtual machine located at path msvcr100.dll (0) | 2020.08.30 |
Comments