08 2018 档案
java 模拟表单方式提交上传文件
摘要:/** * 模拟form表单的形式 ,上传文件 以输出流的形式把文件写入到url中,然后用输入流来获取url的响应 * * @param url 请求地址 form表单url地址 * @param filePath 文件在服务器保存路径 * @return String url的响应信息返回值 * 阅读全文
posted @ 2018-08-29 16:42 FeeCy 阅读(8780) 评论(0) 推荐(0)
修改pom项目版本 jenkins 关联 shell命令
摘要:修改pom项目版本 jenkins 关联 shell命令 阅读全文
posted @ 2018-08-23 14:02 FeeCy 阅读(1047) 评论(0) 推荐(1)
mybatis设置Map空值返回
摘要:mybatis时,设置Map返回,当值为空时属性也会没有 在application.properties中加入下面配置,将会解决这个问题。 #当查询数据为空时字段返回为null,不加这个查询数据为空时,字段将被隐藏mybatis.configuration.call-setters-on-nulls 阅读全文
posted @ 2018-08-22 17:25 FeeCy 阅读(2015) 评论(0) 推荐(0)
spring boot generator
摘要:<build> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <g 阅读全文
posted @ 2018-08-21 11:05 FeeCy 阅读(228) 评论(0) 推荐(0)
阿里云轻应用云服务器配置tomcat
摘要:#etc/profile export CATALINA_HOME=/wocloud/tomcat_cluster/tomcat1/apache-tomcat-7.0.57 #查看防火墙状态 firewall-cmd --state #开放8080 firewall-cmd --permanent 阅读全文
posted @ 2018-08-17 16:13 FeeCy 阅读(670) 评论(0) 推荐(0)
Centos7 防火墙
摘要:在linux上开启的tomcat使用浏览器访问不了。 主要原因在于防火墙的存在,导致的端口无法访问。 CentOS7使用firewall而不是iptables。所以解决这类问题可以通过添加firewall的端口,使其对我们需要用的端口开放。 1.使用命令 firewall-cmd --state查看 阅读全文
posted @ 2018-08-17 13:37 FeeCy 阅读(124) 评论(0) 推荐(0)
Centos7 tomcat 启动权限
摘要:Cannot find bin/catalina.sh The file is absent or does not have execute permission This file is needed to run this program 原因: 没有权限 解决 : chmod 777 *.s 阅读全文
posted @ 2018-08-17 11:25 FeeCy 阅读(1133) 评论(0) 推荐(0)
centos 7 jdk
摘要:1、去oracle官网下载 2、查看当前环境中安装了那些jdk,如果有那么卸载掉 安装好的CentOS会自带OpenJdk,用命令 java -version ,会有下面的信息: java version “1.6.0” OpenJDK Runtime Environment (build 1.6. 阅读全文
posted @ 2018-08-17 11:07 FeeCy 阅读(209) 评论(0) 推荐(0)
mvn 打包排除test
摘要:mvn clean package compile -Dmaven.test.skip=true 阅读全文
posted @ 2018-08-13 13:13 FeeCy 阅读(1096) 评论(0) 推荐(0)
王垠-40行代码 -cps.ss
摘要:;; A simple CPS transformer which does proper tail-call and does not ;; duplicate contexts for if-expressions. ;;author : Yin Wang(yw21@cs.indiana.edu 阅读全文
posted @ 2018-08-10 15:41 FeeCy 阅读(1887) 评论(0) 推荐(0)
DateUtil-工具类
摘要:/** * 类描述:时间操作定义类 */public class DateUtils{ private static final Logger logger = Logger.getLogger(DateUtils.class); // ticks时间格式 //ticksToDatetime pub 阅读全文
posted @ 2018-08-10 13:38 FeeCy 阅读(150) 评论(0) 推荐(0)
文件上传到服务器
摘要:/** * SpringBoot上传文件 * @param request * @param path 文件路径 * @return */public static Object uploadFile(HttpServletRequest request, String path){ Multipa 阅读全文
posted @ 2018-08-10 13:13 FeeCy 阅读(1453) 评论(0) 推荐(0)
删除文件以及文件夹
摘要:public static boolean delFolder(String folderPath) { boolean flag = false; try { flag = delAllFile(folderPath); //删除完里面所有内容 String filePath = folderPa 阅读全文
posted @ 2018-08-10 13:09 FeeCy 阅读(145) 评论(0) 推荐(0)
Git命令<转载 https://www.cnblogs.com/cspku/articles/Git_cmds.html>
摘要:查看、添加、提交、删除、找回,重置修改文件 git help <command> # 显示command的help git show # 显示某次提交的内容 git show $id git co -- <file> # 抛弃工作区修改 git co . # 抛弃工作区修改 git add <fil 阅读全文
posted @ 2018-08-10 13:05 FeeCy