08 2018 档案
java 模拟表单方式提交上传文件
摘要:/** * 模拟form表单的形式 ,上传文件 以输出流的形式把文件写入到url中,然后用输入流来获取url的响应 * * @param url 请求地址 form表单url地址 * @param filePath 文件在服务器保存路径 * @return String url的响应信息返回值 *
阅读全文
修改pom项目版本 jenkins 关联 shell命令
摘要:修改pom项目版本 jenkins 关联 shell命令
阅读全文
mybatis设置Map空值返回
摘要:mybatis时,设置Map返回,当值为空时属性也会没有 在application.properties中加入下面配置,将会解决这个问题。 #当查询数据为空时字段返回为null,不加这个查询数据为空时,字段将被隐藏mybatis.configuration.call-setters-on-nulls
阅读全文
spring boot generator
摘要:<build> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <g
阅读全文
阿里云轻应用云服务器配置tomcat
摘要:#etc/profile export CATALINA_HOME=/wocloud/tomcat_cluster/tomcat1/apache-tomcat-7.0.57 #查看防火墙状态 firewall-cmd --state #开放8080 firewall-cmd --permanent
阅读全文
Centos7 防火墙
摘要:在linux上开启的tomcat使用浏览器访问不了。 主要原因在于防火墙的存在,导致的端口无法访问。 CentOS7使用firewall而不是iptables。所以解决这类问题可以通过添加firewall的端口,使其对我们需要用的端口开放。 1.使用命令 firewall-cmd --state查看
阅读全文
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
阅读全文
centos 7 jdk
摘要:1、去oracle官网下载 2、查看当前环境中安装了那些jdk,如果有那么卸载掉 安装好的CentOS会自带OpenJdk,用命令 java -version ,会有下面的信息: java version “1.6.0” OpenJDK Runtime Environment (build 1.6.
阅读全文
mvn 打包排除test
摘要:mvn clean package compile -Dmaven.test.skip=true
阅读全文
王垠-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
阅读全文
DateUtil-工具类
摘要:/** * 类描述:时间操作定义类 */public class DateUtils{ private static final Logger logger = Logger.getLogger(DateUtils.class); // ticks时间格式 //ticksToDatetime pub
阅读全文
文件上传到服务器
摘要:/** * SpringBoot上传文件 * @param request * @param path 文件路径 * @return */public static Object uploadFile(HttpServletRequest request, String path){ Multipa
阅读全文
删除文件以及文件夹
摘要:public static boolean delFolder(String folderPath) { boolean flag = false; try { flag = delAllFile(folderPath); //删除完里面所有内容 String filePath = folderPa
阅读全文
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
浙公网安备 33010602011771号