- 浏览: 124412 次
- 性别:
- 来自: 太原
最新评论
-
hollowinhart:
create table team(id int(11) no ...
mysl乱码 -
hollowinhart:
create table c_user(id int(11) ...
mysl乱码 -
hollowinhart:
create table email_map(id int(1 ...
mysl乱码 -
hollowinhart:
create table email_list(id int( ...
mysl乱码 -
hollowinhart:
create table email_set(id int(1 ...
mysl乱码
文章列表
如何解决log4j日志文件不生成的问题
- 博客分类:
- java技术
首先要保证配置了输出文件:#set root log levellog4j.rootLogger=error, console, file#customize log levellog4j.logger.org.apache.struts=errorlog4j.logger.com.xx=debuglog4j.logger.com.xx.xx.almclient=error然后保证输出文件的路径是正确的:log4j.appender.file=org.apache.log4j.RollingFileAppenderlog4j.appender.file.File=E:/tools/apache- ...
spring配置文件中附加属性文件
- 博客分类:
- java技术
<!-- 定义受环境影响易变的变量 --> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" /> <property name="ignoreResourceNotFound" val ...
获取路径下的文件列表,并逐行打印删除
- 博客分类:
- unix技术
#! /bin/shpath=`pwd`path=$path/tracefind $path -type f > tmpfilesCount=`ls $path | wc -l`echo "$path have $filesCount files"echo "begin remove file,please wait a mo"while read linedo rm $linedone<tmpecho 'ok'
关于oracle的日期计算
- 博客分类:
- oracle技术
SELECT TRUNC(sysdate, 'dd'),TRUNC(sysdate, 'mm') FROM dual SELECT to_date( TRUNC(sysdate) - to_char(TRUNC(sysdate), 'D')+ 1) FROM dual; select TRUNC(sysdate) - to_char(TRUNC(sysdate), 'D') from dual; select TRUNC(sysdate), to_char(TRUNC(sysdate), 'D') from dual;
数据库连接池如何生成
- 博客分类:
- java技术
数据库连接池声明:
String dbPoolName="java:/uni-log-datasource";
Context context = new InitialContext();DataSource dbPool=(DataSource) context .lookup(dbPoolName);
Jboss 数据库池
- 博客分类:
- java技术
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== --><!-- --><!-- JBoss Server Configuration ...
public static xxx getInstance() { Class decoderClass = null; if (null == instance) { try { decoderClass = Class .forName(HttpAgentData.HttpSOAPDecoderClass); } catch (ClassNotFoundException e) ...
10.31是一个特别的日子, 第一步,不知道什么时候可以OK。心情比较复杂,有些eibiz。每当想想可能发生的事,就有些难过。不知道人生还会发生什么事,好纠结。
终于项目组要搬回ZR了,在HW工作了两年的项目因为HW的一些公司策略,项目搬回ZR了,我不是他们的员工,所以不用去,而且我要离开CX了,有些酸酸的,后续我要回公司学习EJB等架构性的知识,争取朝上面走。
两种情况:
1.java -cp /xxx/xx/oracle_jdbc.jar:. JdbcTest
2.set CLASSPATH=/xxx/xx/oracle_jdbc.jar:.
java -cp $CLASSPATH JdbcTest
但在Windows下,如果在环境变量中指定了CLASSPATH,运行时只要:
java JdbcTest
即可
parseInt函数
- 博客分类:
- java技术
for(i=0;i<7;i++) { var j = parseInt(i/3); if(j%2==0) alert("red"); else alert("#0f0"); }
每三行变一次。
javascript判断时间信息
- 博客分类:
- 转载
function test() { var d1 = document.getElementById("d1").value; var d2 = document.getElementById("d2").value;
var format = /^\d{4}-(0?\d|1[0-2])-(0?\d|[1-2]\d|3[0-1]) (0?\d|1\d|2[0-3]):(0?\d|[1-5]\d):(0?\d|[1-5]\d)$/; if(!format.test(d1)) { alert("d1 error ...
1.System.out.println(2 + 3 & 3 + 2); //5
2.System.out.println(2 + 3 << 3 ); //40
3.System.out.println(8 + 3 ^ 3 + 1); //15
4.System.out.println(3 + 3 | 3 + 2); //7
public static void main(String[] args) throws UnsupportedEncodingException { String info ="123中国人ABC"; info = truncByByte(info,5); System.out.println(info); } private static String truncByByte(String info,int len) throws UnsupportedEncodingException { ...