摘要:
import ch.qos.logback.classic.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.InputStreamReader; import java.util.Properties; /** * Created by Administrator on 2... 阅读全文
摘要:
其实hibernate查询出来的结果集不能直接用,得到的是一个Object数组,里面每个obj其实都是一个实体类,遍历拿到obj还不能直接当做实体对象操作,这个obj也是一个数组,元素顺序就是数据库字段顺序,取到obj里面的元素需要类型强转才能使用,正常操作。 如果类型拿不准,直接可以用object 阅读全文
摘要:
import org.joda.time.DateTime;import org.joda.time.format.DateTimeFormat;import org.joda.time.format.DateTimeFormatter;import java.util.Date;/** * Cre 阅读全文
摘要:
public class bigdecimal { public static BigDecimal div(double v1,double v2){ BigDecimal b1=new BigDecimal(Double.toString(v1)); BigDecimal b2=new BigD 阅读全文
摘要:
1、定义注解:CherryAnnotation 2、注解逻辑:HelloServiceCgLib 3、使用注解 import java.lang.annotation.*; //@CherryAnnotation被限定只能使用在类、接口或方法上面 @Documented @Inherited @Target(value = {ElementType.METHOD,ElementType.FI... 阅读全文