04 2012 档案
多表连接查总记录数的时候去掉重复记录数方法。
摘要:selectcount(distinct(字段ID)) from 表名 。。。。。。这样可以去掉重复。感谢棉哥。 阅读全文
posted @ 2012-04-26 11:49 一切都是幌子 阅读(378) 评论(0) 推荐(0)
Could not find a getter for * in Class Could not find a getter for creatDate in class
摘要:在SSH 框架中配置 hbm.xml文件开启 tomcat服务器 出错Could not find a getter for creatDate in class: 类名原因 修改了实体类的属性名称 但是没有修改 get 和set 方法。解决 把get 和set方法 修改过来 重启服务器。 阅读全文
posted @ 2012-04-19 10:11 一切都是幌子 阅读(192) 评论(0) 推荐(0)
在servlet类 通过SSH 访问数据并保存数据.
摘要:自己重写一个ContextLoaderListener ,然后配置在web.xml替代ContextLoaderListener Java代码 public class SpringLoaderListener extends ContextLoaderListener { @Override public void contextInitialized(ServletContextEvent event) { super.contextInitialized(event); ServletContext ... 阅读全文
posted @ 2012-04-18 17:15 一切都是幌子 阅读(343) 评论(0) 推荐(0)
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: beans in namespace h
摘要:严重: Servlet /mytest threw load() exceptionorg.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: beans in namespace http://xfire.codehaus.org/config/1.0at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespa 阅读全文
posted @ 2012-04-17 15:45 一切都是幌子 阅读(1497) 评论(0) 推荐(0)
Allocate exception for servlet XFireServlet 找不到 Org.apache.xbean.spring.context.SpringApplicationContext;
摘要:在SSH 框架上面做一个WebService 配置完成 测试的时候出现这个问题Allocate exception for servlet XFireServlet java.lang.ClassNotFoundException:Org.apache.xbean.spring.context.SpringApplicationContext;找不到Org.apache.xbean.spring.context.SpringApplicationContext这个类.解决办法在项目中添加 xbean-spring-2.8.jar 这个包. 阅读全文
posted @ 2012-04-17 14:54 一切都是幌子 阅读(2443) 评论(0) 推荐(0)
struts2启动报错com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
摘要:tomcat启动报错:Class: com.opensymphony.xwork2.spring.SpringObjectFactory File: SpringObjectFactory.java Method: getClassInstance Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428) at org.apache.str... 阅读全文
posted @ 2012-04-13 22:18 一切都是幌子 阅读(1796) 评论(0) 推荐(0)