会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YSHY
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
66
下一页
2022年5月25日
List Map 根据指定的字段进行去重处理
摘要: private <T> Predicate<T> distinctByKeys(Function<? super T, Object> ...keyExtractors) { Map<Object, Boolean> seen = new ConcurrentHashMap<>(); return
阅读全文
posted @ 2022-05-25 15:15 yshy
阅读(873)
评论(0)
推荐(0)
2022年5月18日
mybatis oracle批量插入保存
摘要: 1:XML脚本 <insert id="importExcel"> insert all <foreach collection="list" item="item" index="index" separator=" "> into ${tableName} values (#{item.c1},
阅读全文
posted @ 2022-05-18 08:46 yshy
阅读(356)
评论(0)
推荐(0)
2022年1月19日
springboot通过mybatis-plus操作kingbase8
摘要: 1:pom.xml dependency> <groupId>com.kingbase8</groupId> <artifactId>kingbase8-8.6.0</artifactId> <version>1.0</version> <scope>system</scope> <systemPa
阅读全文
posted @ 2022-01-19 15:00 yshy
阅读(2467)
评论(0)
推荐(0)
2021年12月2日
POI导出Excel将相同的列合并行
摘要: public static void mergeCell(List<QsggDTO> list, Sheet sheet, int[] index){ int id1 = 0; int id2 = 0; int firstRow = 2; int lastRow = 2; QsggDTO qsggD
阅读全文
posted @ 2021-12-02 08:10 yshy
阅读(576)
评论(0)
推荐(0)
2021年11月5日
Maven打包jar引入外部lib中的jar
摘要: <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</inclu
阅读全文
posted @ 2021-11-05 19:33 yshy
阅读(268)
评论(0)
推荐(0)
2021年9月29日
/bin/bash^M: 坏的解释器: 没有那个文件或目录
摘要: 执行sh脚本时提示:-bash: ./start.sh: /bin/bash^M: 坏的解释器: 没有那个文件或目录 由于start.sh文件在windows上面编辑过,在Windows下每一行结尾是\n\r,而Linux下则是\n,所以才会有 多出来的\r导致上面错误。 通过sed -i 's/\
阅读全文
posted @ 2021-09-29 17:08 yshy
阅读(1033)
评论(0)
推荐(0)
2021年9月24日
019- 搭建Go开发环境之在VSCode中安装GO插件
摘要: 1:配置环境变量 GO111MODULE=on GOPATH=D:\gopath GOPROXY=https://goproxy.io 2:查看环境变量信息 3:在VSCode中安装Go插件 4:在VSCode中安装Go依赖包 然后全选点击“OK” 安装过程 go.toolsGopath setti
阅读全文
posted @ 2021-09-24 13:33 yshy
阅读(411)
评论(0)
推荐(0)
2021年9月16日
mvn package打包提示:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
摘要: 在pom配置文件中增加以下配置即可: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1
阅读全文
posted @ 2021-09-16 14:01 yshy
阅读(469)
评论(1)
推荐(0)
2021年7月2日
Oracle 函数wmsys.wm_concat中文乱码解决
摘要: 在使用wmsys.wm_concat合并查询结果时,发现中文显示乱码,例如: {TX 此时需要将字段通过to_char转义一下即可。 SELECT t6.username,t6.swjgjc,wmsys.wm_concat(to_char(t6.role_name)) as role_name
阅读全文
posted @ 2021-07-02 12:52 yshy
阅读(446)
评论(0)
推荐(0)
2021年6月4日
Springboot 在Filter 中通过@Autowired注入Bean,打包war部署为空值解决
摘要: ServletContext context = request.getServletContext(); ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(context); DbUtilTpl
阅读全文
posted @ 2021-06-04 13:23 yshy
阅读(228)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
66
下一页
公告