摘要: linux 服务器 连接另一个linux服务器 ssh 用户名@IP地址 linux 服务器传输文件到另一个linux服务器 scp 文件名(可多个) 用户名@IP地址:传到的目录 /home 阅读全文
posted @ 2018-04-11 20:36 步步丶惊云 阅读(130) 评论(0) 推荐(0)
摘要: 1.服务端代码 /** * 执行shell命令 * @param command 执行命令 * @return */ public String exeCommandByPath( String command){ log.info("进入执行shell命令方法 执行命令:" + command); 阅读全文
posted @ 2018-03-16 18:30 步步丶惊云 阅读(13868) 评论(0) 推荐(0)
摘要: /** * 通过HttpClient调用服务 * * @param url 路径 * data json数据 * @return *///post请求方法public String sendItsmTask(String url, String data) throws Exception{ Sys 阅读全文
posted @ 2018-03-14 14:52 步步丶惊云 阅读(1029) 评论(0) 推荐(0)
摘要: /** * 通过webserevice下发工单 * @param url * @param method * @param requestMap * @return * @throws ServiceException * @throws MalformedURLException * @throw 阅读全文
posted @ 2018-03-14 14:51 步步丶惊云 阅读(313) 评论(0) 推荐(0)
摘要: 1、在web.xml中配置代码如下 <servlet> <servlet-name>AxisServlet</servlet-name> <display-name>Apache-Axis Servlet</display-name> <servlet-class> org.apache.axis. 阅读全文
posted @ 2018-03-05 20:20 步步丶惊云 阅读(794) 评论(0) 推荐(0)
摘要: 1、授连接权限 grant connect to 用户名; ALTER USER 用户名 ACCOUNT UNLOCK; 2、更新密码 ALTER USER 用户名 IDENTIFIED BY 更新密码; 阅读全文
posted @ 2018-02-19 18:32 步步丶惊云 阅读(500) 评论(0) 推荐(0)
摘要: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6 阅读全文
posted @ 2018-01-29 18:33 步步丶惊云 阅读(326) 评论(0) 推荐(0)
摘要: public static java.sql.Timestamp StrTransSqlDate(String date) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java. 阅读全文
posted @ 2018-01-29 18:30 步步丶惊云 阅读(6554) 评论(0) 推荐(0)
摘要: 1、因为转换的格式不是标准格式,所以有时候获得xml根目录后rootElement.attributes() 取不到想要的属性 所以需要通过迭代器来获取想要的值 } 阅读全文
posted @ 2018-01-29 18:28 步步丶惊云 阅读(3016) 评论(0) 推荐(0)
摘要: 1、其实在linux上和window是一样的 2、path 传入的路径(直接从根目录到你的文件的位置) public static boolean delFile(String path) { log.info("进入deFile方法 psth =: "+path); boolean flag = 阅读全文
posted @ 2018-01-29 18:17 步步丶惊云 阅读(8925) 评论(0) 推荐(0)