[Spring] 오류 - org.apache.ibatis.builder.BuilderException: Mapper’s namespace cannot be empty
Mybatis 연동 설정 오류
Error parsing SQL Mapper Configuration.
Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML.
Cause: org.apache.ibatis.builder.BuilderException: Mapper's namespace cannot be empty
root-context.xml 파일에서 Mybatis 연동을 위한 설정을 하였는데
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="configLocation" value="classpath:mybatis-config.xml" />
<property name="mapperLocations" value="classpath:mappers/**/*Maper.xml"/>
</bean>
ㅎㅎ.. 야무진 오타로 인한 오류가 발생한 경우다.
<property name=”mapperLocations” value=”classpath:mappers/**/*Maper.xml”/>
⇒ <property name=”mapperLocations” value=”classpath:mappers/**/*Mapper.xml”/>
단순 오타고 에러메시지에서도 아주 친절하게 설명해주는 오류지만
그럼에도 검색이 필요할 나와 같은 초보 개발자를 위하여 기록해두기
댓글남기기