it
sunshine_369
这个作者很懒,什么都没留下…
展开
-
2021-03-04
运行项目报Unable to open debugger port (127.0.0.1:49725): java.net.BindException "Address already in use: JVM_Bind"原因:端口被占用解决方法:查找进程:netstat -ano | findstr 49725结束进程:taskkill /F /PID 14428原创 2021-03-04 09:41:36 · 129 阅读 · 1 评论 -
数据库中根据条件匹配如果有就更新没有就插入,多个sql不能一起执行解决方案
--在机构库表中根据机构代码查询如果可以查询到就把机构名称更新成最新的,如果查询不到就直接做插入操作。beginupdate test_institution set INSTITUTION_NAME='中石油资产有限公司' where institution_code ='T0001';if sql%notfound theninsert into test_institution (OBJID, INSTITUTION_VIP, INSTITUTION_CODE, INSTITUTION原创 2020-11-28 17:52:46 · 453 阅读 · 0 评论 -
使用数据泵导入导出数据库,空表也可以导出
1、创建逻辑目录,最好以SYSYTEM等管理员创建。 由于该命令不会在操作系统上创建真正的目录,所以要直接手动创建一个同名的目录,同时确保该目录可读写操作。命令: create directory backup as 'E:\app\backup';(select * from dba_directories;可以查看已存在的所有目录) --删除逻辑目录:drop directory backup;2、给EXPDPTEST用户赋予在指定目录的操作权限。最好以SYSTEM等管理...原创 2020-11-28 17:47:10 · 360 阅读 · 0 评论 -
java.lang.IllegalArgumentException:
下载文件失败:java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [ProjectALlFile] in the invocation stack. Check the <param name="inputName"> tag specified for this ...原创 2020-01-09 16:35:22 · 424 阅读 · 0 评论 -
怎么截取倒数第二个某个特定字符之前的字符串
原始的字符串:String str="E:/info/001/1-1/info/1578390012953/11/o_1dtvikv0l108gq8n124v24q1gkp5f.pdf";预期结果:String str="E:/info/001/1-1/info/1578390012953/";测试:@Testpublic void test(){ String path=...原创 2020-01-09 16:28:09 · 2534 阅读 · 0 评论 -
使用httpclient发送post 请求form表单格式的参数获取返回值
private static String httpPost(String url) throws Exception {Map<String,String> param=new HashMap<String, String>();Map jsonmap = new HashMap();jsonmap.put("username", "111");jsonmap....原创 2020-01-07 15:02:03 · 1810 阅读 · 0 评论 -
使用httpclient发送post 请求json格式的参数获取返回值
参数是json格式的字符串的post请求:private static String httpPost(String url, String body) throws Exception { // 1、创建一个htt客户端 CloseableHttpClient httpClient = HttpClients.createDefault(); HttpPost ht...原创 2020-01-07 14:57:29 · 3324 阅读 · 1 评论