02 2018 档案

摘要:应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace(/[^\x00-\xff]/g,"aa").length;} 阅读全文
posted @ 2018-02-22 16:45 灏月天染 阅读(380) 评论(0) 推荐(0)
摘要:需要用writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"utf-8")) file为想写入文件的地址 阅读全文
posted @ 2018-02-08 13:59 灏月天染 阅读(195) 评论(0) 推荐(0)
摘要:根据web.xml读取配置文件中的顺序来看 controller层和service层来自于spring mvc.xml中读取,所以必须要在spring mvc.xml中配置读取资源文件夹方式 阅读全文
posted @ 2018-02-06 16:07 灏月天染 阅读(266) 评论(0) 推荐(0)
摘要:通过在applicationContext.xml和springmvc.xml中配置 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locat 阅读全文
posted @ 2018-02-06 16:01 灏月天染 阅读(231) 评论(0) 推荐(0)