随笔分类 -  JAVA

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
JAVA
摘要:安装 filebeat-7.9.3(与Elasticsearch版本一致) 考虑到Elasticsearch 比较费硬盘空间,所以目前项目中只上传error的日志。详细日志还是去具体服务器查看(没有专门运维) 普通安装: 上传并解压filebeat-7.9.3-linux-x86_64.tar.gz 阅读全文
posted @ 2021-05-27 09:20 VipSoft 阅读(2018) 评论(0) 推荐(0) 编辑
摘要:Filebeat是什么 1、Filebeat是什么?Filebeat是用于转发和集中日志数据的轻量级传送工具。 Filebeat监视用户指定的日志文件或位置,收集日志事件,并将日志数据转发到Elasticsearch或Logstash进行索引。 2、Filebeat和Logstash的关系Logst 阅读全文
posted @ 2021-05-25 14:13 VipSoft 阅读(2534) 评论(2) 推荐(0) 编辑
摘要:ELK 版本因为 前面 Elasticsearch 用的 7.9.3 版本,所以 kibana-7.9.3、logstash-7.9.3 都用 7.9.3 版本 安装配置 Elasticsearch Docker 安装 Elasticsearch 修改Elasticsearch配置,可以到容器内部修 阅读全文
posted @ 2021-05-25 13:49 VipSoft 阅读(235) 评论(0) 推荐(0) 编辑
摘要:下载源码包:https://archive.apache.org/dist/skywalking/8.1.0/ -- 创建存放目录 mkdir -p /opt/skywalking -- 进入目录 cd /opt/skywalking -- 下载agentjar wget https://archi 阅读全文
posted @ 2021-05-21 14:54 VipSoft 阅读(750) 评论(0) 推荐(0) 编辑
摘要:前置条件 Docker 安装 Elasticsearch ### 部署服务端 skywalking-oap-server docker pull apache/skywalking-oap-server:8.1.0-es7 docker run --name skywalking-oap-serve 阅读全文
posted @ 2021-05-21 14:46 VipSoft 阅读(944) 评论(0) 推荐(0) 编辑
摘要:SpringBoot Skywalking agent 通过 Dockfile 配置 不生效 ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=${spring_profile 阅读全文
posted @ 2021-05-21 12:12 VipSoft 阅读(741) 评论(0) 推荐(0) 编辑
摘要:如果不指定 xxl.job.executor.ip,默认会用 Docker 的IP,注册到 xxl-job 里面,这时候无法回调 如果xxl.job.executor.ip、xxl.job.executor.address 都赋值,就会出现没端口的情况,具体如下 原因 xxxl.job.ip 为空, 阅读全文
posted @ 2021-05-20 17:19 VipSoft 阅读(3264) 评论(4) 推荐(1) 编辑
摘要:在 Feign 方法里面添加 Header 报 Method has too many Body parameters @PostMapping(value = "/sendsms") String sendSMS(@HeaderMap Map<String, Object> headerParam 阅读全文
posted @ 2021-05-12 10:21 VipSoft 阅读(633) 评论(0) 推荐(0) 编辑
摘要:Feign 接口独立项目,报下列错误,原因是缺少指定扫描包 [2021-05-11 22:40:07.676] [main] [WARN ] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception enco 阅读全文
posted @ 2021-05-11 22:48 VipSoft 阅读(161) 评论(0) 推荐(0) 编辑
摘要:解决方案 @Resourceprivate RestTemplate restTemplate; 阅读全文
posted @ 2021-05-11 14:49 VipSoft 阅读(1775) 评论(0) 推荐(1) 编辑
摘要:Test 报错时,添加@注释 解决方案: @SpringBootTest(webEnvironment= SpringBootTest.WebEnvironment.RANDOM_PORT)错误如下: org.springframework.beans.factory.UnsatisfiedDepe 阅读全文
posted @ 2021-05-11 13:46 VipSoft 阅读(3678) 评论(0) 推荐(0) 编辑
摘要:基于 MongoDB 读写分离——Windows MongoDB 副本集配置 ,里面配置了一个坑,导致出现下列错误 [2021-05-10 10:06:11.981] [cluster-ClusterId{value='60989513a224157532b8e092', description=' 阅读全文
posted @ 2021-05-10 10:45 VipSoft 阅读(1492) 评论(2) 推荐(1) 编辑
摘要:成员变量的注入是在Bean创建成功之后,通过setter方法进行注入的。所以下面会获取不到值 @RestController public class VipsoftImController { @Autowired private ZooKeeperUtil zooKeeperUtil; @Req 阅读全文
posted @ 2021-04-12 14:57 VipSoft 阅读(374) 评论(0) 推荐(0) 编辑
摘要:logback 日志的开发者和log4j 的开发者是一波人,而springboot 默认日志是,较新的logback 日志。 但是在以前流行的日志却是log4j ,而且很多的第三方工具都含有log4j 得引入。 排除 zookeeper 中的 log4j12 <dependency> <groupI 阅读全文
posted @ 2021-04-09 14:37 VipSoft 阅读(140) 评论(0) 推荐(0) 编辑
摘要:Settings -> Inspections -> 注释 取消 “方法内部单行注释 xxxx ” 里面的勾,【设完后重启】如下图 阅读全文
posted @ 2021-04-09 13:44 VipSoft 阅读(1625) 评论(0) 推荐(1) 编辑
摘要:pom文件中引用了 lombok 插件,但Intellij 代码里仍然是红色提示,具体操作如下 Mac 阅读全文
posted @ 2021-03-26 14:34 VipSoft 阅读(1558) 评论(0) 推荐(0) 编辑
摘要:断点续传(上传)Java版 1. 客户每次上传前先获取一下当前文件已经被服务器接受了多少 2. 上传时设定偏移量 服务端代码如下: /// <summary> /// 断点续传,获取已上传文件大小 /// </summary> /// <returns></returns> [HttpPost] p 阅读全文
posted @ 2021-02-20 09:36 VipSoft 阅读(324) 评论(0) 推荐(0) 编辑
摘要:test下的包名和java下的包名不一致会产生下面错误 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @Spri 阅读全文
posted @ 2021-01-18 20:00 VipSoft 阅读(197) 评论(0) 推荐(0) 编辑
摘要:[2021-01-15 13:20:14.623] ERROR [Druid-ConnectionPool-Create-497208183] DruidDataSource.java:2471 - create connection SQLException, url: jdbc:sqlserve 阅读全文
posted @ 2021-01-15 13:25 VipSoft 阅读(1201) 评论(0) 推荐(0) 编辑
摘要:application.yml data: mongodb: uri: mongodb://127.0.0.1:27017,127.0.0.1:27018,127.0.0.1:27019/fecg_dev?slaveOk=true&replicaSet=rs0&write=1&readPrefere 阅读全文
posted @ 2020-12-22 17:02 VipSoft 阅读(909) 评论(2) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页