摘要: 1.服务端代码 /** * 执行shell命令 * @param command 执行命令 * @return */ public String exeCommandByPath( String command){ log.info("进入执行shell命令方法 执行命令:" + command); 阅读全文
posted @ 2018-03-16 18:30 步步丶惊云 阅读(13866) 评论(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 步步丶惊云 阅读(1025) 评论(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 步步丶惊云 阅读(787) 评论(0) 推荐(0)
摘要: 1、授连接权限 grant connect to 用户名; ALTER USER 用户名 ACCOUNT UNLOCK; 2、更新密码 ALTER USER 用户名 IDENTIFIED BY 更新密码; 阅读全文
posted @ 2018-02-19 18:32 步步丶惊云 阅读(498) 评论(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 步步丶惊云 阅读(325) 评论(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 步步丶惊云 阅读(6551) 评论(0) 推荐(0)
摘要: 1、因为转换的格式不是标准格式,所以有时候获得xml根目录后rootElement.attributes() 取不到想要的属性 所以需要通过迭代器来获取想要的值 } 阅读全文
posted @ 2018-01-29 18:28 步步丶惊云 阅读(3011) 评论(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 步步丶惊云 阅读(8919) 评论(0) 推荐(0)
摘要: 1、创建用户: create user toptea2 identified by "用户名" 2、给用户授权 grant create session to 用户名; grant create table to 用户名; grant create tablespace to 用户名; grant 阅读全文
posted @ 2018-01-17 19:01 步步丶惊云 阅读(3506) 评论(0) 推荐(0)