setConfigLocation()方法報(bào)錯(cuò)
sqlSessionFactoryBean.setConfigLocation(new ClassPathResource(mybatisConfigFile));
這一行報(bào)錯(cuò):
The type org.apache.ibatis.session.SqlSessionFactory cannot be resolved. It is indirectly referenced from required .class files
2018-09-18
你的pom.xml的依賴都對(duì)了嗎?你重新檢查下你的依賴,還有對(duì)應(yīng)的版本號(hào)
2018-09-18
對(duì)了,修改了這里的版本號(hào),原來是2.0的版本,現(xiàn)在不報(bào)錯(cuò)了。謝謝。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>