- 博客(8)
- 收藏
- 关注
原创 HttpUtils工具类
package com.hhy.credit.util.httpUtils;import com.hhy.credit.util.bean.KeyValue;import com.hhy.credit.util.exception.HttpException;import org.apache.commons.io.IOUtils;import org.apache.http.HttpE...
2018-06-22 10:54:21
984
原创 Tomcat运行项目加载Spring两次
参考:https://blog.youkuaiyun.com/tengdazhang770960436/article/details/41246469没有解决。后来使用mvn clean install -Dmaven.test.skip=true重新编译了一下Tomcat,好使了 ,估计是拷贝的Tomcat之前有其他的项目,导致加载了两次Spring...
2018-06-22 10:33:26
299
原创 SQL删除使用别名问题
MySQL 执行delete操作时若想使用别名,别名必须在delete之后出现一次delete alias> from table> alias> where alias>.field>...比如:DELETE brrFROM base_role_resource brr LEFT JOIN base_role br ON br.id = brr.role_id W
2017-12-19 14:01:34
554
原创 solr部署
一,solr基本配置1.下载适合版本的solr,在这里用solr5.5.0 solr版本可以在官网上下载(http://lucene.apache.org/solr/)2.下载并解压tomcat7以上,这里用tomcat83.下载完成之后解压得到solr5.5.0文件4.将server/solr-wapper下的webapp文件夹重名名为solr(凭个人需求喜好命名)放在to
2017-09-23 00:15:28
426
原创 Linux下mongodb部署
一、下载MongoDB2.4.9版下载MongoDBwget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz解压MongoDBtar -zxvf mongodb-linux-x86_64-2.4.9.tgz移动MongoDB目录[root@leezhen ~]# mv mongodb-linux-
2017-09-23 00:09:07
211
原创 文件拷贝
如果是文件比较大、单一→ 多线程+FileChannelhttp://blog.youkuaiyun.com/weixin_37730482/article/details/73810685如果是文件比较大、多个 → 压缩文件后再用多线程+FileChannel如果文件多、内容多变 → 直接文件夹复制如果文件多、是一些公共文件→ 把文件全部压缩成一个压缩文件,到时候
2017-09-20 17:29:24
149
原创 Request获取各种路径
request.getRequestURI()=/cms/WEB-INF/jsp/content/content-list.jsp request.getRequestURL()=http://127.0.0.1:8080/cms/WEB-INF/jsp/content/content-list.jsp request.getScheme()=http request.ge
2017-09-11 15:01:00
370
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人