- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 BigDecimal和float相乘不能得到精确值
float numF = 1.2f;BigDecimal numDecimal = new BigDecimal(100);System.out.println(numDecimal.multiply(new BigDecimal(numF)));result:120.0000047683715820312500原因是System.out.println(new BigDecimal(numF))
2015-12-30 11:30:32 1644
原创 centos7安装redis
去reids官网找到最新版本的redis的路径:http://redis.io/download wget http://download.redis.io/releases/redis-3.0.5.tar.gz解压tar -zxvf redis-3.0.5.tar.gz安装yum install redis结果安装失败,网上查了下,说要进行如下命令:make MALLOC=libc完成后再执
2015-12-02 10:09:38 990
原创 spring:org.springframework.transaction.UnexpectedRollbackException解决
@Transactionalpublic boolean copyCustomerInfo(Customer customer){ …… return intsertCustomer(customer); ……}@Transactionalpublic boolean intsertCustomer(Customer customer){ …… try{
2015-12-01 16:09:54 7712
界面话模拟生产者消费者模式java
2014-05-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人