servlet-context.xml에서 bean설정을 제대로 안해줬을 때
<!-- mybatis -->
<beans:bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<!-- 연결할 DB 정보 -->
<beans:property name="dataSource" ref="datasource"/>
<!-- 쿼리문이 있을 장소 -->
<beans:property name="mapperLocations">
<beans:list>
<beans:value>classpath:com.ino.*.DAO.xml</beans:value>
</beans:list>
</beans:property>
</beans:bean>
<!-- mybatis area -->
<mybatis-spring:scan base-package="com.ino.mypage.DAO"/>
</beans:beans>
'오류' 카테고리의 다른 글
403에러 (0) | 2023.06.07 |
---|---|
nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) (0) | 2023.05.01 |
요청된 리소스 [/main/]은(는) 가용하지 않습니다. (0) | 2023.05.01 |
An illegal reflective access operation has occurred (0) | 2023.04.07 |
[오류] java.sql.SQLSyntaxErrorException (0) | 2023.04.04 |