上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 60 下一页
摘要: 成员变量的注入是在Bean创建成功之后,通过setter方法进行注入的。所以下面会获取不到值 @RestController public class VipsoftImController { @Autowired private ZooKeeperUtil zooKeeperUtil; @Req 阅读全文
posted @ 2021-04-12 14:57 VipSoft 阅读(427) 评论(0) 推荐(0)
摘要: logback 日志的开发者和log4j 的开发者是一波人,而springboot 默认日志是,较新的logback 日志。 但是在以前流行的日志却是log4j ,而且很多的第三方工具都含有log4j 得引入。 logback.xml 配置文件 排除 zookeeper 中的 log4j12 <de 阅读全文
posted @ 2021-04-09 14:37 VipSoft 阅读(167) 评论(0) 推荐(0)
摘要: Settings -> Inspections -> 注释 取消 “方法内部单行注释 xxxx ” 里面的勾,【设完后重启】如下图 阅读全文
posted @ 2021-04-09 13:44 VipSoft 阅读(1810) 评论(0) 推荐(1)
摘要: Debug的时候碰到这个很烦人得重新运行 工具=>选项=>常规=>调试=>常规 将启用“编辑”并继续,勾取消掉 阅读全文
posted @ 2021-04-01 11:46 VipSoft 阅读(2267) 评论(0) 推荐(0)
摘要: pom文件中引用了 lombok 插件,但Intellij 代码里仍然是红色提示,具体操作如下 Mac 阅读全文
posted @ 2021-03-26 14:34 VipSoft 阅读(1662) 评论(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 阅读(945) 评论(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 阅读(146) 评论(0) 推荐(0)
摘要: 断点续传(上传)Java版 1. 客户每次上传前先获取一下当前文件已经被服务器接受了多少 2. 上传时设定偏移量 服务端代码如下: /// <summary> /// 断点续传,获取已上传文件大小 /// </summary> /// <returns></returns> [HttpPost] p 阅读全文
posted @ 2021-02-20 09:36 VipSoft 阅读(375) 评论(0) 推荐(0)
摘要: 注意: CompressionLevel 选择 阅读全文
posted @ 2021-01-25 20:11 VipSoft 阅读(200) 评论(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 阅读(2270) 评论(0) 推荐(0)
摘要: 放行FTP服务器 TCP 21端口及FTP服务器被动1024/65535端口 阅读全文
posted @ 2021-01-25 14:23 VipSoft 阅读(206) 评论(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 阅读(242) 评论(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 阅读(1341) 评论(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 阅读(969) 评论(2) 推荐(0)
摘要: 本文基于:MongoDB 读写分离——MongoDB 安装 参考:https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/ Master-Slave 主从复制 实现数据同步只需要在某一台服务器启动时加上"-mas 阅读全文
posted @ 2020-12-22 15:56 VipSoft 阅读(475) 评论(0) 推荐(0)
摘要: 下载安装包:https://www.mongodb.com/try/download/community 同一台电脑装了两服务,所以下载zip包,单机服务 mis 安装方便些 解压并重命名. 4.2 是版本 .27017 是端口号 Server下面建两目录 data、log 分别用来存放 数据文件和 阅读全文
posted @ 2020-12-22 13:31 VipSoft 阅读(146) 评论(0) 推荐(0)
摘要: 情况如下 db.currentOp() 发现有全表扫描 将 Collscan 对应的 Collection 建索引 db.Table1.createIndex({"DataTime":1}) db.Table1.getIndexes() 阅读全文
posted @ 2020-12-18 09:34 VipSoft 阅读(807) 评论(0) 推荐(0)
摘要: 不同的版本配置项可能不同:本文使用的 mongodb-win32-x86_64-2012plus-4.2.11-signed.msi mongod.cfg 默认占用内存为 0.5*(物理内存-1)如内存8G => 0.5*(8-1)=> 3.5G # mongod.conf # for docume 阅读全文
posted @ 2020-12-17 10:14 VipSoft 阅读(420) 评论(0) 推荐(0)
摘要: 获取SVN代码 保存并提交 创建分支 主干合到分支 修改分支内容 分支合并到主干 先提交主干代码到服务器,防止合并时冲突,破坏了代码内容 用 Test merge 可以看看是否有冲突, 也可以直接打开文件编辑 及时将主干合到分支上 阅读全文
posted @ 2020-12-16 11:18 VipSoft 阅读(316) 评论(0) 推荐(0)
摘要: 先到 https://www.u.tools/ 下载 uTools ,里面有好多插件, 下载安装后,打开uTools工具,搜索“内网穿透” 直接支持https,对于有https要求的,非常方便 点右边的图标,或者直接搜索 安装好后,到已安装里选择打开 阅读全文
posted @ 2020-12-10 09:10 VipSoft 阅读(210) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 60 下一页