02 2018 档案
摘要:应用:计算字符串的长度(一个双字节字符长度计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
阅读全文

浙公网安备 33010602011771号