IBATIS初级问题烦请帮忙看下
配置文件<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEsqlMapConfigPUBLIC"iBATIS_SqlMap_Con...
配置文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig PUBLIC "iBATIS_SqlMap_Config" "sql-map-config-2.dtd" >
<sqlMapConfig>
<properties resource="sqlMap.properties"/>
<transactionManager type="JDBC">
<dataSource type="SIMPLE">
<property name="JDBC.DRIVER" value="${driver}"/>
<property name="JDBC.URL" value="${url}"/>
<property name="JDBC.USERNAME" value="${username}"/>
<property name="JDBC.PASSWORD" value="${password}"/>
</dataSource>
</transactionManager>
<sqlMap resource="UserInfo.xml"/>
</sqlMapConfig>
异常:java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.RuntimeException: SimpleDataSource: Error while loading properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some properties were not set. 展开
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig PUBLIC "iBATIS_SqlMap_Config" "sql-map-config-2.dtd" >
<sqlMapConfig>
<properties resource="sqlMap.properties"/>
<transactionManager type="JDBC">
<dataSource type="SIMPLE">
<property name="JDBC.DRIVER" value="${driver}"/>
<property name="JDBC.URL" value="${url}"/>
<property name="JDBC.USERNAME" value="${username}"/>
<property name="JDBC.PASSWORD" value="${password}"/>
</dataSource>
</transactionManager>
<sqlMap resource="UserInfo.xml"/>
</sqlMapConfig>
异常:java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.RuntimeException: SimpleDataSource: Error while loading properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some properties were not set. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询