mybatis PersistenceException
### Error opening session. Cause: org.apache.ibatis.session.SqlSessionException: Configuration does not include an environment with a DataSource, so session cannot be created unless a connection is passed in.
### Cause: org.apache.ibatis.session.SqlSessionException: Configuration does not include an environment with a DataSource, so session cannot be created unless a connection is passed in.
我的config配置文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<environments default="development">
<environment id = "developement">
<transactionManager type = "JDBC"/>
<dataSource type = "POOLED">
<property name = "driver" value = "oracle.jdbc.driver.OracleDriver"/>
<property name = "url" value = "jdbc:oracle:thin:@localhost:1521:JBITDB"/>
<property name = "username" value = "dingwei"/>
<property name = "password" value = "dingwei"/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="mapper.xml"/>
</mappers>
</configuration>