上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 58 下一页
摘要: https://hub.docker.com/r/sebp/elk 安装ELK镜像 docker pull sebp/elk:793 启动 elk 容器 docker run --name elk --restart always \ -d -p 5601:5601 -p 9200:9200 -p 阅读全文
posted @ 2021-05-19 18:09 VipSoft 阅读(782) 评论(0) 推荐(0)
摘要: 在 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 阅读(726) 评论(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 阅读(190) 评论(0) 推荐(0)
摘要: 解决方案 @Resourceprivate RestTemplate restTemplate; 阅读全文
posted @ 2021-05-11 14:49 VipSoft 阅读(1875) 评论(0) 推荐(1)
摘要: Test 报错时,添加@注释 解决方案: @SpringBootTest(webEnvironment= SpringBootTest.WebEnvironment.RANDOM_PORT)错误如下: org.springframework.beans.factory.UnsatisfiedDepe 阅读全文
posted @ 2021-05-11 13:46 VipSoft 阅读(3775) 评论(0) 推荐(0)
摘要: 基于 MongoDB 读写分离——Windows MongoDB 副本集配置 ,里面配置了一个坑,导致出现下列错误 [2021-05-10 10:06:11.981] [cluster-ClusterId{value='60989513a224157532b8e092', description=' 阅读全文
posted @ 2021-05-10 10:45 VipSoft 阅读(1705) 评论(2) 推荐(1)
摘要: 成员变量的注入是在Bean创建成功之后,通过setter方法进行注入的。所以下面会获取不到值 @RestController public class VipsoftImController { @Autowired private ZooKeeperUtil zooKeeperUtil; @Req 阅读全文
posted @ 2021-04-12 14:57 VipSoft 阅读(416) 评论(0) 推荐(0)
摘要: logback 日志的开发者和log4j 的开发者是一波人,而springboot 默认日志是,较新的logback 日志。 但是在以前流行的日志却是log4j ,而且很多的第三方工具都含有log4j 得引入。 logback.xml 配置文件 排除 zookeeper 中的 log4j12 <de 阅读全文
posted @ 2021-04-09 14:37 VipSoft 阅读(157) 评论(0) 推荐(0)
摘要: Settings -> Inspections -> 注释 取消 “方法内部单行注释 xxxx ” 里面的勾,【设完后重启】如下图 阅读全文
posted @ 2021-04-09 13:44 VipSoft 阅读(1790) 评论(0) 推荐(1)
摘要: Debug的时候碰到这个很烦人得重新运行 工具=>选项=>常规=>调试=>常规 将启用“编辑”并继续,勾取消掉 阅读全文
posted @ 2021-04-01 11:46 VipSoft 阅读(2254) 评论(0) 推荐(0)
摘要: pom文件中引用了 lombok 插件,但Intellij 代码里仍然是红色提示,具体操作如下 Mac 阅读全文
posted @ 2021-03-26 14:34 VipSoft 阅读(1652) 评论(0) 推荐(0)
摘要: MySQL 事务回滚。在执行删除、更新等操作时,防止误操作 生产环境更新数据时必用 begin tran --开启事务 begin--先在事务中 执行 UPDATE Sys_User SET Name='张三' where Id='a46d92fb-5c7b-45e7-8571-5eae426578 阅读全文
posted @ 2021-03-18 09:40 VipSoft 阅读(902) 评论(0) 推荐(0)
摘要: 每5分钟检查一次,如果不在线就重启 #!/bin/bash count=`ps axu | grep kafka_2.11-1.0.0|grep -v grep|wc -l` echo "process count => "$count if [ "$count" != 0 ];then echo 阅读全文
posted @ 2021-03-02 17:16 VipSoft 阅读(135) 评论(0) 推荐(0)
摘要: 断点续传(上传)Java版 1. 客户每次上传前先获取一下当前文件已经被服务器接受了多少 2. 上传时设定偏移量 服务端代码如下: /// <summary> /// 断点续传,获取已上传文件大小 /// </summary> /// <returns></returns> [HttpPost] p 阅读全文
posted @ 2021-02-20 09:36 VipSoft 阅读(366) 评论(0) 推荐(0)
摘要: 注意: CompressionLevel 选择 阅读全文
posted @ 2021-01-25 20:11 VipSoft 阅读(195) 评论(0) 推荐(0)
摘要: 查询所有表 select * from information_schema.tables SQL SERVER 查询表结构,导出到Excel 生成代码用 --快速查看表结构字段(比较全面的) SELECT col.colorder AS 序号 ,CASE WHEN col.colorder = 1 阅读全文
posted @ 2021-01-25 14:28 VipSoft 阅读(2257) 评论(0) 推荐(0)
摘要: 放行FTP服务器 TCP 21端口及FTP服务器被动1024/65535端口 阅读全文
posted @ 2021-01-25 14:23 VipSoft 阅读(204) 评论(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 阅读(230) 评论(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 阅读(1328) 评论(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 阅读(961) 评论(2) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 58 下一页