06 2013 档案
摘要:dao需要dataSourceorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in class path resource [bean.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'dataSource' is required at or
阅读全文
摘要:实体引用 字符& &< <> >" "' <?xml version="1.0" encoding="UTF-8"?><root> <attachment id="638a89f6a7644f7c8516ab8fe1bb8d0e" attachType="remotefile"> <fileName var_type="String" />
阅读全文
摘要:SimpleDateFormat sdf = new SimpleDateFormat("M月dd日"); Calendar calendar = Calendar.getInstance(); //得到日历 calendar.setTime(calendar.getTime());//把当前时间赋给日历 calendar.add(Calendar.DAY_OF_MONTH, -1); //设置为前一天 Date dBefore = calendar.getTime(); //得到前一天的时间
阅读全文
摘要:package com.test;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.io.Reader;import java.net.HttpURLConnection;import java.net.URL;public class Spider { public static void main(String[] args) { String url="http://www.cnblogs.com/xingyun/archiv
阅读全文
摘要:Error 500--Internal Server Errorjava.lang.NegativeArraySizeException at com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:218) at jsp_servlet._qqda._main._tj._daoexl.__daoexl._jspService(__daoexl.java:209) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.St
阅读全文
摘要:jndi(Java Naming and Directory Interface,Java命名和目录接口)是一组在Java应用中访问命名和目录服务的API。命名服务将名称和对象联系起来,使得我们可以用名称访问对象。目录服务是一种命名服务,在这种服务里,对象不但有名称,还有属性。 tomcat配置jndi有全局配置和局部配置。大致的有以下三种配置方式:第一种:全局配置。1)在tomcat的conf文件夹下的context.xml配置文件中加入:[html]view plaincopy<Resourcename="jndi/mybatis"auth="Conta
阅读全文
posted @ 2013-06-19 09:41
jshen

浙公网安备 33010602011771号