随笔分类 -  JAVA

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
JAVA一些常用的方法
摘要:我是idea2018的 与maven3.6.0不兼容 换成 maven3.5.0就好了 阅读全文
posted @ 2022-02-21 10:08 yvioo 阅读(26) 评论(0) 推荐(0) 编辑
摘要:yml list: I2,T,G 代码 @Value("#{'${list}'.split(',')}") public List<String> list; 阅读全文
posted @ 2022-02-18 11:20 yvioo 阅读(1119) 评论(0) 推荐(0) 编辑
摘要:整合参考: https://www.cnblogs.com/pxblog/p/14445162.html 显示 configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 不显示 configuration: log-im 阅读全文
posted @ 2022-02-16 15:36 yvioo 阅读(1357) 评论(0) 推荐(0) 编辑
摘要:使用的maven版本和idea版本不兼容,换成maven3.5的即可 1) No implementation for org.apache.maven.model.path.PathTranslator was bound. while locating org.apache.maven.mode 阅读全文
posted @ 2022-01-26 15:30 yvioo 阅读(740) 评论(0) 推荐(0) 编辑
摘要:gzip工具类 import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.io.ByteArrayInputStream; import java.io.ByteAr 阅读全文
posted @ 2022-01-11 14:31 yvioo 阅读(4565) 评论(0) 推荐(1) 编辑
摘要:版本至少jdk8 maven <!-- https://mvnrepository.com/artifact/com.alibaba.ververica/flink-connector-mysql-cdc --> <dependency> <groupId>com.alibaba.ververica 阅读全文
posted @ 2021-12-20 17:52 yvioo 阅读(2951) 评论(0) 推荐(0) 编辑
摘要:pom文件增加 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.0.0</version> <configuration> < 阅读全文
posted @ 2021-12-18 17:16 yvioo 阅读(758) 评论(0) 推荐(0) 编辑
摘要:这是因为pom文件引入的flink相关依赖设置成了provided 作用域 要嘛把这个去掉 但是如果是IDEA的话 可以更简单的操作 把这个打勾保存 接着重新启动main方法即可 阅读全文
posted @ 2021-12-18 15:48 yvioo 阅读(2537) 评论(0) 推荐(1) 编辑
摘要:/** * 是否是Ajax异步请求 * * @param request */ public static boolean isAjaxRequest(HttpServletRequest request) { String accept = request.getHeader("accept"); 阅读全文
posted @ 2021-12-13 14:42 yvioo 阅读(515) 评论(0) 推荐(0) 编辑
摘要:依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.75</version> </dependency> <dependency> <groupId>org.apa 阅读全文
posted @ 2021-11-26 15:20 yvioo 阅读(324) 评论(0) 推荐(0) 编辑
摘要:工具类 AStarUtil.java import java.util.*; import java.util.stream.Collectors; /** * A星算法工具类 */ public class AStarUtil { private int[][] NODES; public ASt 阅读全文
posted @ 2021-11-24 15:58 yvioo 阅读(574) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://developers.google.cn/protocol-buffers/docs/proto proto2 proto3 阅读全文
posted @ 2021-11-23 21:12 yvioo 阅读(276) 评论(0) 推荐(0) 编辑
摘要:依赖 <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <v 阅读全文
posted @ 2021-11-23 20:53 yvioo 阅读(1180) 评论(0) 推荐(0) 编辑
摘要:只需要在配置中重写 addViewControllers方法 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.V 阅读全文
posted @ 2021-11-21 16:59 yvioo 阅读(1099) 评论(0) 推荐(0) 编辑
摘要:ThreadPoolConfig.java import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.concurrent.BasicThreadFactory; import org.springframework.cont 阅读全文
posted @ 2021-11-21 16:54 yvioo 阅读(1730) 评论(0) 推荐(0) 编辑
摘要:fatal: refusing to merge unrelated histories(拒绝合并不相关的历史) 使用 git pull origin master --allow-unrelated-histories 阅读全文
posted @ 2021-11-19 09:13 yvioo 阅读(48) 评论(0) 推荐(0) 编辑
摘要:BufferedImage转byte[] ByteArrayOutputStream out = new ByteArrayOutputStream(); ImageIO.write(imgBuff, "jpeg", out); byte[] bytes=out.toByteArray(); byt 阅读全文
posted @ 2021-11-11 16:41 yvioo 阅读(2023) 评论(0) 推荐(0) 编辑
摘要:依赖 <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.42.Final</version> </dependency> 还用到了 <dependency> <groupI 阅读全文
posted @ 2021-11-03 11:40 yvioo 阅读(4611) 评论(11) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
点击右上角即可分享
微信分享提示