03 2014 档案

java保留两位小数
摘要:java保留两位小数问题:方式一:四舍五入double f = 111231.5585;BigDecimal b = new BigDecimal(f);double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();保留两位小数---------------------------------------------------------------方式二:java.text.DecimalFormat df =new java.text.DecimalFormat("#.00");df.format( 阅读全文

posted @ 2014-03-21 10:41 看天空的星星 阅读(670) 评论(0) 推荐(0)

自己项目中的全注解事物配置
摘要:1 2 3 java:comp/env/jdbc/huixincrm 4 5 6 7 8 9 10 11 12 com.keertech.base.bean13 com.keertech.web.bean14 com.keertech.system.bean15 16 17 18 ... 阅读全文

posted @ 2014-03-18 10:52 看天空的星星 阅读(348) 评论(0) 推荐(0)

jsp/html播放录音
摘要:Instructions and HTML sample code1Downloadthe all-in-one zip.2Upload the .swf player file you want to use on your website.3Copy-paste and configure the HTML code with the right MP3 filepath.1 插件下载地址http://www.alsacreations.fr/dewplayer-en.html 阅读全文

posted @ 2014-03-14 15:55 看天空的星星 阅读(528) 评论(0) 推荐(0)

Extjs3--radio的使用
摘要:1 {layout:'column',anchor:'97%',items:[ 2 {columnWidth:.5,layout:'form',border:false,items:[{ 3 xtype: 'radiogrou... 阅读全文

posted @ 2014-03-11 15:50 看天空的星星 阅读(584) 评论(0) 推荐(0)

myeclipse9安装SVN插件
摘要:1.首先下载SVN包:site -1.8.7http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=22402.解压SVN包,然后找到其中的两个文件夹:features 和 plugins3.随意建一个文件夹(最好容易管理点的,我的是D:\Java\Plugin\SVN),然后把第二步的解压好的features 和 plugins放到这个文件夹下4.找到myeclipse的安装目录,下面有一个configuration\org.eclipse.equinox.simpleconfigurator\bundles.inf 阅读全文

posted @ 2014-03-11 10:44 看天空的星星 阅读(272) 评论(0) 推荐(0)

spring 事务注解@Transactional
摘要:默认遇到throw new RuntimeException("...");会回滚需要捕获的throw new Exception("...");不会回滚// 指定回滚@Transactional(rollbackFor=Exception.class)public void methodName() {// 不会回滚throw new Exception("...");}//指定不回滚@Transactional(noRollbackFor=Exception.class)public ItimDaoImpl getItemDaoI 阅读全文

posted @ 2014-03-07 13:55 看天空的星星 阅读(191) 评论(0) 推荐(0)

导航