会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小小菜包子
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2021年9月23日
java代码上传本地文件到linux服务器,并put到hadoop(需要路径版,还会发一个无需路径版)
摘要: 新建工具类: package com.lrhealth.mappingintegration.utils; import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelExec; import com.jcraft.jsch.Chann
阅读全文
posted @ 2021-09-23 18:45 小小菜包子
阅读(1146)
评论(0)
推荐(0)
2021年9月22日
java代码连接linux后,执行linux命令
摘要: 我需要执行的linux命令是: hdfs dfs -put [本地目录] [hadoop目录] 把jar包复制到hdfs某个文件夹下, 导入的jar包, import com.jcraft.jsch.ChannelExec; 新建空对象: ChannelExec openChannel =null;
阅读全文
posted @ 2021-09-22 18:13 小小菜包子
阅读(388)
评论(0)
推荐(0)
2021年9月17日
在本地文件上传到linux服务器方法中,使用@value("${}")无法获取配置文件内容解决方案
摘要: 正常使用@value注解去获取yaml或者properties中的文件是可以的,但是我在工具类中使用时,没有获取到配置文件里的值; 上网看了一下,有的说配置文件首行要空出来,试了一下无效; 先贴代码:这是一个本地文件上传到服务器的工具类 import com.jcraft.jsch.Channel;
阅读全文
posted @ 2021-09-17 17:29 小小菜包子
阅读(829)
评论(1)
推荐(0)
2021年9月15日
hive的udf函数
摘要: 首先是要引入依赖 <dependencies> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-exec</artifactId> <version>1.2.1</version> </dependency> <!--
阅读全文
posted @ 2021-09-15 14:33 小小菜包子
阅读(150)
评论(0)
推荐(0)
2021年9月14日
String转map
摘要: //{a=1, b=2, c=3} 格式转换成map private static Map<String, String> mapStringToMap(String str) { str = str.substring(1, str.length() - 1); String[] strs = s
阅读全文
posted @ 2021-09-14 19:47 小小菜包子
阅读(10555)
评论(1)
推荐(0)
有时候脑子不转,各种类型数据赋值空,用null就好了
摘要: Date date=null; 把date给值就是空.
阅读全文
posted @ 2021-09-14 19:44 小小菜包子
阅读(42)
评论(0)
推荐(0)
poi表格样式版本过低调整,自己写的话忽视
摘要: https://blog.csdn.net/weixin_45156610/article/details/105433804 cellStyle.setAlignment(HorizontalAlignment.CENTER); cellStyle.setVerticalAlignment(Ver
阅读全文
posted @ 2021-09-14 19:43 小小菜包子
阅读(114)
评论(0)
推荐(0)
sql直接查询的时候格式化时间
摘要: SELECT DATE_FORMAT(时间字段,"%Y-%m-%d %H:%m:%s") FROM 表名
阅读全文
posted @ 2021-09-14 19:43 小小菜包子
阅读(336)
评论(0)
推荐(0)
tomcat配置文件
摘要: 修改启动类文件,重配置一下tomcat@Configuration public class TomcatConfig { @Value("${server.http.port}") private int httpPort; @Bean public ServletWebServerFactory
阅读全文
posted @ 2021-09-14 19:41 小小菜包子
阅读(60)
评论(0)
推荐(0)
replace into
摘要: 根据主键查找,如果存在该主键,那么进行原数据的删除,新数据的插入 mysql语法,用法和insert into一样,功能不同
阅读全文
posted @ 2021-09-14 19:40 小小菜包子
阅读(126)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告