摘要:
@param解释为映射mapper.xml中的传参 mybatis中批量新增时用foreach循环,注意其中的collection属性,有list,数组 注意foreach中sql函数的写法,oracle和mysql区别 oracle 中需要加分隔符(网站自行查询),select ....from 阅读全文
摘要:
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), 阅读全文
摘要:
select * from table_name as of timestamp trunc(sysdate)-10; 数字部分可以调整到最近时间内 复制表内容 insert into res_product select * from res_product as of timestamp tru 阅读全文
摘要:
应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace(/[^\x00-\xff]/g,"aa").length;} 阅读全文
摘要:
需要用writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"utf-8")) file为想写入文件的地址 阅读全文
摘要:
根据web.xml读取配置文件中的顺序来看 controller层和service层来自于spring mvc.xml中读取,所以必须要在spring mvc.xml中配置读取资源文件夹方式 阅读全文
摘要:
通过在applicationContext.xml和springmvc.xml中配置 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locat 阅读全文
摘要:
https://www.cnblogs.com/leihenqianshang/articles/5313159.html 阅读全文
摘要:
http://www.doc88.com/p-7018969272463.html 阅读全文
摘要:
必须有name,并且是同一值,判断效果可用value值确定 阅读全文