摘要: https://www.cnblogs.com/hoojjack/p/6746075.html 阅读全文
posted @ 2017-12-01 18:11 L.大叔 阅读(196) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/evangel_z/article/details/8281919 阅读全文
posted @ 2017-11-07 15:54 L.大叔 阅读(128) 评论(0) 推荐(0) 编辑
摘要: private String getIpAddr(HttpServletRequest request) { String ipAddress = request.getHeader("x-forwarded-for"); if (ipAddress == null || ipAddress.len 阅读全文
posted @ 2017-11-06 09:43 L.大叔 阅读(223) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/langtianya/p/3715975.html 阅读全文
posted @ 2017-10-26 17:34 L.大叔 阅读(82) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/liu1782291245/article/details/73467266 http://blog.csdn.net/zjx2016/article/details/75069169 http://blog.csdn.net/ling_du/article 阅读全文
posted @ 2017-10-26 16:53 L.大叔 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 有些时候我们需要在项目中导入一些依赖包,这些包可能在maven中央库中没有,这时候我们就需要手动导入本地库,让maven能够检索到。 为此我们先要配置maven环境变量:将maven的bin目录路径:E:\apache-maven-3.2.1\bin 添加到classpath中。 然后创建执行文件: 阅读全文
posted @ 2017-10-26 10:29 L.大叔 阅读(9264) 评论(0) 推荐(0) 编辑
摘要: 下载解压三份windows系统下的redis 一个是主服务,两个从服务。 修改从服务的配置文件: 将这两个文件中的端口,port 更改为与主redis(6379)不相同既可 6380、6381 二是更改主从配置的参数:# slaveof <masterip> <masterport> 改为:slav 阅读全文
posted @ 2017-10-12 18:00 L.大叔 阅读(773) 评论(1) 推荐(0) 编辑
摘要: 有时候我们在linux系统上上传了图片,发现读取不了,这是由于图片文件的权限问题, 可以在代码中加入以下代码: String path = uploadinstitutionfiles + institutionInf.getId(); String command = "chmod 775 " + 阅读全文
posted @ 2017-10-12 16:45 L.大叔 阅读(2101) 评论(1) 推荐(1) 编辑
摘要: ps -ef|grep tomcat 查看tomcat服务 杀进程: kill -9 对应dev后面的数值 这种方式效果和命令 ./shutdown.sh 一样 然后./startup.sh 起服务 阅读全文
posted @ 2017-10-09 15:57 L.大叔 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: 进入到项目的bin目录 加入下面这行 export CATALINA_OPTS="-Djava.security.egd=file:///dev/urandom" 然后 ./startup.sh 起服务 阅读全文
posted @ 2017-10-09 15:54 L.大叔 阅读(756) 评论(0) 推荐(0) 编辑