摘要: 1.新建文件 : touch iterm2login.exp 文件内容: #!/usr/bin/expect set timeout 30 spawn ssh [lindex $argv 0]@[lindex $argv 1] expect { "(yes/no)?" {send "yes\n";e 阅读全文
posted @ 2019-01-11 14:15 Proli 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: post 请求 先贴代码 阅读全文
posted @ 2018-03-23 15:31 Proli 阅读(4814) 评论(0) 推荐(0) 编辑
摘要: 项目中需要读取文件夹中的所有图片,在工程中能成功读取 打成Jar包后,使用jar包,自己就读取不到 当打成一个jar包后,整个jar包是一个文件,只能使用流的方式读取资源,这时候就不能通过File来操作资源了,得通过getResourceAsStream来读取文件内容并操作 在IDE中之所以能正常运 阅读全文
posted @ 2018-01-17 15:54 Proli 阅读(4997) 评论(0) 推荐(0) 编辑
摘要: ========== =========== package com.proli.util; import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException; import com.sun.org.apache.xml.internal.security.utils.Base64; impor... 阅读全文
posted @ 2017-12-21 15:32 Proli 阅读(708) 评论(0) 推荐(0) 编辑
摘要: import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException;import com.sun.org.apache.xml.internal.security.utils.Base64;import 阅读全文
posted @ 2017-12-15 14:47 Proli 阅读(2266) 评论(0) 推荐(0) 编辑
摘要: 本地和SIT 的数据库同一张表的同一个字段 字段类型 为varchar2(120) 现象: 1.在本地 varchar2(120) 代表着只能存 120个字节; 存入120个汉字,报DBEXCEPTION 2.在SIT 上 varchar2(120)却能存120 个字符; 存入120个汉字,正常存入 阅读全文
posted @ 2017-05-04 21:34 Proli 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1.新建TaskUtil.java 2.新建 Scheduler-config.xml 3.引入Scheduler.xml配置文件 本人在spring-mvc中加载 阅读全文
posted @ 2017-04-25 15:10 Proli 阅读(1569) 评论(1) 推荐(0) 编辑
摘要: 1:spring-mvc.xml中用import引入其他的配置文件 <import resource="user_spring.xml" /> 2:在web.xml配置,应用服务去加载 <context-param> <param-name>contextConfigLocation</param- 阅读全文
posted @ 2017-04-25 09:33 Proli 阅读(8687) 评论(0) 推荐(0) 编辑
摘要: jstl <c:if test="${flimit.limitPId==0}"> 代码 </c:if> struts <s:if test="#session.userInfo!=null"> 代码 </s:if> 阅读全文
posted @ 2016-01-28 20:10 Proli 阅读(118) 评论(0) 推荐(0) 编辑
摘要: CREATE {DATABASE | SCHEMA}} [IF NOT EXISTS] db_name [DEFAULT] CHARACTER SET [=] charset_name 阅读全文
posted @ 2016-01-28 20:08 Proli 阅读(517) 评论(0) 推荐(0) 编辑