摘要:
package com.laoxu.test.day04.c3p0DBSource;import java.beans.PropertyVetoException;import java.io.IOException;import java.io.InputStream;import java.sql.Connection;import java.sql.SQLException;import java.util.Properties;import javax.sql.DataSource;import com.mchange.v2.c3p0.ComboPooledDataSource;/** 阅读全文
posted @ 2013-10-23 20:18
prison
阅读(643)
评论(0)
推荐(0)
摘要:
//FileReader reader = new FileReader(file); //注意乱码问题 InputStreamReader isr = null; try { isr = new InputStreamReader(new FileInputStream(file), "GBK"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); ... 阅读全文
posted @ 2013-10-23 20:17
prison
阅读(1129)
评论(0)
推荐(0)
摘要:
3301000falseTestfalse100nullfalse60360151003rootpasswordselect id from test where id=1300falsetruerootfalse con_test 30000 30 10 30 25 10 0 200 300 阅读全文
posted @ 2013-10-23 19:25
prison
阅读(535)
评论(0)
推荐(0)
摘要:
1、通过命令形式:mvn archetype:generate -DarchetypeCatalog=internal这里我们先选择16是maven-archetype-quickstart,就是基本的JavaSE项目结构的构建,19是maven-archetype-webapp,用来创建简单的Java Web应用选择19,提示输入groupId,artifactId,version等 阅读全文
posted @ 2013-10-23 11:51
prison
阅读(134)
评论(0)
推荐(0)
摘要:
1、配置文件如下: --> 2、具体使用规则如下:package com.laoxu.test.day04.ehCacheDemo;import net.sf.ehcache.Cache;import net.sf.ehcache.CacheManager;import net.sf.ehcache.Element;/** * java缓存ehCache使用 */public class EhCacheTest { @SuppressWarnings("deprecation") public void init(){ Cache... 阅读全文
posted @ 2013-10-23 10:43
prison
阅读(340)
评论(0)
推荐(0)

浙公网安备 33010602011771号