10 2013 档案
摘要:ThreadPoolExecutor的完整构造方法的签名是:ThreadPoolExecutor(intcorePoolSize, intmaximumPoolSize, longkeepAliveTime, TimeUnitunit, BlockingQueueworkQueue, ThreadF...
阅读全文
摘要:在程序中使用Log4j之前,首先要将commons-logging.jar和logging-log4j-1.2.9.jar导入到classpath中,并将log4j.properties放于src根目录中。
阅读全文
摘要: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;/**
阅读全文
摘要://FileReader reader = new FileReader(file); //注意乱码问题 InputStreamReader isr = null; try { isr = new InputStreamReader(new FileInputStream(file), "GBK"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); ...
阅读全文
摘要:3301000falseTestfalse100nullfalse60360151003rootpasswordselect id from test where id=1300falsetruerootfalse con_test 30000 30 10 30 25 10 0 200 300
阅读全文
摘要:1、通过命令形式:mvn archetype:generate -DarchetypeCatalog=internal这里我们先选择16是maven-archetype-quickstart,就是基本的JavaSE项目结构的构建,19是maven-archetype-webapp,用来创建简单的Java Web应用选择19,提示输入groupId,artifactId,version等
阅读全文
摘要: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...
阅读全文
摘要:1、主页登录:http://localhost:8081/nexus/2、用户登录 默认:admin 密码:admin1233、Views/Respositories选择Respositories找到Central:Remote Storage Location填写http://repo1.maven.org/maven2/找到Public Repositories!!!!注意:左边是可以聚合的仓库!!!!4、配置hosted repository5、配置用户密码在Security-->Users中配置,在deployment用户上点击右键,选择Set Password,然后设置一个密码
阅读全文