摘要:
package com.unicom.ucloud.eom.common.util; import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDate. 阅读全文
摘要:
package com.unicom.ucloud.eom.fastProcess.util; import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
im. 阅读全文
摘要:
package com.metarnet.util; public class IPPoolUtil { public static void main(String[] args) { System.out.println(getNetMask("255.255.255.0")); System.out.println(getPoolMax(getNetMask("255.255.255.128"))); System.out.println(getEndIP("10.229.0.1",24).getStartIP()); Syst 阅读全文
摘要:
之前给大家写过一个简单的IOC容器,这个AOP功能就是在这个上面添加的写Intercept 类 继承InvocationHandlerpublic class Intercept implements InvocationHandler{/** * 要处理的对象(也就是我们要在方法的前后加上业务逻辑的对象,如例子中的Hello) */private Object target; // 被代理的目标对象/*** 动态生成方法被处理过后的对象 (写法固定)* target(需要关注的类方法)*/public Object bind(Object target) throws Instantia.. 阅读全文
摘要:
需要五个类(容器类),需要用此容器管理的类全部集成此类package com.metarnet.extend;import java.lang.reflect.Field;import com.metarnet.Injects.Inject;/*** 容器*/public class IOC {/*** 初始化* @param <T>* @throws ClassNotFoundException* @throws IllegalAccessException* @throws IllegalArgumentException*/public void Init() throws 阅读全文
摘要:
package com.metarnet.model; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.Date; /** * 注释测试 * @aut... 阅读全文
摘要:
使用EasyUI提交表单以及对表单数据的处理1:创建EasyUI页面2:创建一个HTML的Form表单控件,具体代码如下:<form id="aForm" method="post"></form> 特别注意,这个form需要有ID,以及method="post",别的不需要3:在javaScript中使用提交数据,一般有两种提交方式,一种是使用AJAX提交表单的方式示例:1:ajax提交$.ajax({url : 'action',data : { ID : $('#id'). 阅读全文
摘要:
Linux启动java程序的通用处理工具#!/bin/bashJAVA_HOME=/usr2/exec_dir/java/jdk1.6.0_27APPHOME=/usr2/exec_dir/manager/newIchk/ExecutionMAIN=com.metarnet.Execution.ExecutionMainCLASSPATH=$APPHOME/binfor i in $APPHOME/LIB/*.jardoCLASSPATH=$CLASSPATH:$idoneecho $CLASSPATH${JAVA_HOME}/bin/java -DOmsExe -cp $CLASSPATH 阅读全文
摘要:
package com.metarnet.Execution.util;
import java.io.UnsupportedEncodingException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/** * String正则表达式匹配 * 闫帆 */
public class StringUtil {
/**
* 函数名:strToInt 作 用:把字符串转为整型 参 数:s: 字符串型 返回值:整型
**/
public static int strToInt(String s) {
int... 阅读全文
摘要:
<!-- 插入一条语句,根据类中存在的数据进行动态解析生成SQL --><select id="select" resultMap="BaseResultMap" parameterType="com.metarnet.Execution.DAO.Model.CeicsExecution"> select <include refid="Base_Column_List" /> from CEICS_EXECUTION <trim prefix="WHERE&qu 阅读全文