- 博客(13)
- 收藏
- 关注
转载 统计数据库IP连接数量
selectSUBSTRING_INDEX(host,':',1)asip,count(*)frominformation_schema.processlistgroupbyip; ...
2019-09-05 15:27:00
408
转载 安装 mongodb 4.0.7
1、MongoDB官网下载地址https://www.mongodb.com/download-center?jmp=nav#community 2、下载MongoDB安装包 1、wgethttps://fastdl.mongodb.org/linux/mongodb-...
2019-09-04 16:08:00
302
转载 解决 elasticsearch root 启动报错问题
elasticsearch root账户启动会出现 org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException:can not run elasticsearch as root 方法如下: 创建...
2019-09-03 14:57:00
784
转载 MYSQL 修改时区问题
select curtime(); # select now() show variables like "%time_zone%"; setglobaltime_zone ='+8:00'; ##修改mysql全局时区为北京时间,即我们所在的东8区 settime_z...
2019-08-31 08:57:00
260
转载 Swagger+dubbo 返回值ApiModelProperty注解说明不显示问题
前几天github上找了swagger结合dubbo的demo整合进项目中 但接下来出现一个问题,就是返回值在swaggerUI上不显示,data一直显示空,代码也配了 @ApiModelProperty注解说明,但就是不显示; 后来加班找原因发现,dubbo暴露出去的接口 A 在它的实现...
2019-07-29 10:40:00
2498
转载 swagger结合dubbo 2.7+
dubbo更新进度越来越快,swagger目前却原地不动,为了适应新版的dubbo,所以需要调整下swagger源码。 dubbo已加入Apache,所以包路径要调。 com.alibaba.dubbo 调整 org.apache.dubbo 找到 ReferenceManager类中g...
2019-06-25 11:32:00
718
转载 Linux -- 通过Firewall开放防火墙端口
CentOS 7.0默认使用的是firewall作为防火墙 ,替代了之前版本的 iptables firewalld的基本使用 启动:systemctl start firewalld 关闭:systemctl stop firewalld 查看状态:systemctl sta...
2019-06-15 17:40:00
179
转载 Nacos配置中心源码理解
动态配置管理是 Nacos 的三大功能之一,通过动态配置服务,我们可以在所有环境中以集中和动态的方式管理所有应用程序或服务的配置信息。 动态配置中心可以实现配置更新时无需重新部署应用程序和服务即可使相应的配置信息生效,这极大了增加了系统的运维能力。 动态配置 下面我将来和大家一起来了解...
2019-06-13 16:48:00
2047
转载 Java前端传值后台接收为Date类型
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") 在Date类型属性上加这个注解即可 ...
2019-04-08 09:53:00
11232
转载 sprintboot2.1.3 版本配置项
# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideli...
2019-03-28 11:35:00
1349
转载 deprecated configuration property 'spring.redis.pool.max-active'
今天把sprintboot 升到2.1.2后发现Redis的配置报红,虽然启动不影响,但是本着负责任的态度还是google上找了下 # REDIS (RedisProperties) # Redis数据库索引(默认为0) spring.redis.database=0 # Redis...
2019-03-27 18:44:00
4589
转载 SpringBoot初始化数据源循环依赖 The dependencies of some of the beans in the application context form a cycle:...
使用druid多数据源时,项目启动出现数据源循环依赖,百度半天没找到解决办法,最后只能去Google了,一下子就出来了,还是Google靠谱啊!!! sprintboot 低版本可以使用 spring.datasource.initialize=false (默认为true) 来解决,升级到...
2019-03-27 18:38:00
2870
转载 Java 进制转换方法
1、10进制转其它进制( a 代表 10进制值) 10进制转2进制: Integer.toBinaryString(a); 10进制转8进制: Integer.toOctalString(a); 10进制转16进制:Integer.toHexString(a);...
2019-01-22 16:52:00
147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人