摘要: 1.重写ContextLoaderListener 监听器。package com.ucap.xzsp.util;import javax.servlet.ServletContext;import javax.servlet.ServletContextEvent;import org.springframework.context.ApplicationContext;import org.springframework.web.context.ContextLoaderListener;import org.springframework.web.context.support.WebA 阅读全文
posted @ 2012-06-01 16:11 一切都是幌子 阅读(893) 评论(0) 推荐(0)
摘要: 一,首先下载quartz-1.6.0.jar架包,到lib目录下二,写你自己定时器业务方法package com.lbnet.lzx.timing;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;import org.springframework.beans.factory.BeanFactory;import org.springframework.context.support.ClassPathXmlApplicationContext;import org.springfram 阅读全文
posted @ 2012-06-01 16:05 一切都是幌子 阅读(1325) 评论(0) 推荐(0)
摘要: 核心提示:JS判断只能是数字和小数点 只能输入字母和汉字 只能输入字母和汉字JS判断只能是数字和小数点1.文本框只能输入数字代码(小数点也不能输入)<input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">2.只能输入数字,能输小数点.<input onkeyup="if(isNaN(value))execCommand(' 阅读全文
posted @ 2012-05-25 14:48 一切都是幌子 阅读(402) 评论(0) 推荐(0)
摘要: select cert_no from jsw_user_info where len(cert_no)<18create function f_CID15to18(@sfz char(18))returns char(18)asbegin declare @osfz varchar(18) declare @i int,@ai int,@wi int,@sum int,@mod int,@result int set @osfz=@sfz set @sum=0 IF len(@osfz)=15 begin set @osfz=substring... 阅读全文
posted @ 2012-05-17 13:31 一切都是幌子 阅读(2615) 评论(0) 推荐(0)
摘要: var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代表1月)myDate.getDate(); //获取当前日(1-31)myDate.getDay(); //获取当前星期X(0-6,0代表星期天)myDate.getTime(); //获取当前时间(从1970.1.1开始的毫秒数)myDate.getHours(); //获取当前小时数(0-23)myDate.getMinute 阅读全文
posted @ 2012-05-07 10:08 一切都是幌子 阅读(3044) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { Service srvcModel=new ObjectServiceFactory().create(IXzspApplyItem.class); XFireProxyFactory factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire()); String url="http://192.168.1.165:8090/xzspweb/services/XzspApp... 阅读全文
posted @ 2012-05-03 12:00 一切都是幌子 阅读(1202) 评论(0) 推荐(0)
摘要: selectcount(distinct(字段ID)) from 表名 。。。。。。这样可以去掉重复。感谢棉哥。 阅读全文
posted @ 2012-04-26 11:49 一切都是幌子 阅读(378) 评论(0) 推荐(0)
摘要: 在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)
摘要: 自己重写一个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 一切都是幌子 阅读(344) 评论(0) 推荐(0)
摘要: 严重: 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 一切都是幌子 阅读(1501) 评论(0) 推荐(0)