随笔分类 -  IBatis

摘要:严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/classes/applic 阅读全文
posted @ 2010-04-03 11:34 java程序代码 阅读(484) 评论(0) 推荐(0)
摘要:org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; Error: executeQueryForObject returned too many results.; nested exception is java.sql.SQLException: Error: executeQueryForObject returned too many resu 阅读全文
posted @ 2010-02-07 23:07 java程序代码 阅读(12089) 评论(1) 推荐(0)
摘要:找的原因是:WebApplicationContext 来做ioc容器加载会更慢。因为他需要检查bean的关联关系。2010-2-3 9:29:03 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:/Program Files/Java/jdk1.6 阅读全文
posted @ 2010-02-03 09:30 java程序代码 阅读(398) 评论(0) 推荐(0)
摘要:ibatis基础代码包括: 1. ibatis实例配置 一个典型的配置文件如下(具体配置项目的含义见后):<? xml version="1.0" encoding="UTF-8" ?> <! DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0/ "[url]http://www.ibatis.com/dtd/[/url]sql-map-config-2.dt <sqlMapConfig > < settings ca 阅读全文
posted @ 2010-02-02 21:00 java程序代码 阅读(201) 评论(0) 推荐(0)
摘要:严重: StandardWrapper.Throwable java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml! at org.springframework.web.context.ContextLoader.initWebApplicationContex 阅读全文
posted @ 2010-02-02 20:40 java程序代码 阅读(2283) 评论(0) 推荐(0)