上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: @param解释为映射mapper.xml中的传参 mybatis中批量新增时用foreach循环,注意其中的collection属性,有list,数组 注意foreach中sql函数的写法,oracle和mysql区别 oracle 中需要加分隔符(网站自行查询),select ....from 阅读全文
posted @ 2018-03-17 22:40 灏月天染 阅读(71) 评论(0) 推荐(0) 编辑
摘要: select a.catalog_name,decode(substr(trunc((a.s/b.count2),4)*100||'%',0,1),'.',replace(trunc((a.s/b.count2),4)*100||'%','.','0.'),trunc((a.s/b.count2), 阅读全文
posted @ 2018-03-13 20:44 灏月天染 阅读(769) 评论(0) 推荐(0) 编辑
摘要: select * from table_name as of timestamp trunc(sysdate)-10; 数字部分可以调整到最近时间内 复制表内容 insert into res_product select * from res_product as of timestamp tru 阅读全文
posted @ 2018-03-12 10:08 灏月天染 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace(/[^\x00-\xff]/g,"aa").length;} 阅读全文
posted @ 2018-02-22 16:45 灏月天染 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 需要用writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"utf-8")) file为想写入文件的地址 阅读全文
posted @ 2018-02-08 13:59 灏月天染 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 根据web.xml读取配置文件中的顺序来看 controller层和service层来自于spring mvc.xml中读取,所以必须要在spring mvc.xml中配置读取资源文件夹方式 阅读全文
posted @ 2018-02-06 16:07 灏月天染 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 通过在applicationContext.xml和springmvc.xml中配置 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locat 阅读全文
posted @ 2018-02-06 16:01 灏月天染 阅读(220) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/leihenqianshang/articles/5313159.html 阅读全文
posted @ 2018-01-26 10:39 灏月天染 阅读(81) 评论(0) 推荐(0) 编辑
摘要: http://www.doc88.com/p-7018969272463.html 阅读全文
posted @ 2018-01-16 13:50 灏月天染 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 必须有name,并且是同一值,判断效果可用value值确定 阅读全文
posted @ 2017-12-06 14:35 灏月天染 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页