加载中
查看mysql数据库容量大小

第一种情况: 查询所有数据库的总大小 ,方法如下: mysql> use information_schema; mysql> select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from TABLES; +-----------+...

2021/12/22 11:12
19
Field 'X' doesn't have a default value

最近在使用django框架的过程中发现一个问题,即标题所写的“Field ‘X’ doesn't have a default value”,具体的migrations代码如下: migrations.AddField( model_name="test", name="user...

2021/11/10 19:40
186
mybatis timezone问题

数据库里存的时间是GMT(即UTC+0时区),所以需要在数据库链接上加个serverTimezone=GMT的参数

2021/09/09 21:11
32
nginx location

Syntax: location [ = | ~ | ~* | ^~ ] uri { ... } location @name { ... } Default: — Context: server, location Sets configuration depending on a request URI. The matching is per...

springboot接口入参下划线转驼峰以及返回参数驼峰转下划线实现

参数返回转换实现: @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class):在实体类上使用,整个实体返回的json字段格式转换为下划线格式 或者:@JsonProperty:在字段名上使用,返...

2021/04/27 11:48
623
Maven Build Lifecycle

Introduction to the Build Lifecycle Table Of Contents Build Lifecycle Basics Setting Up Your Project to Use the Build Lifecycle Packaging Plugins Lifecycle Reference Built-in Li...

Maven工程 jacoco/sonar 单元测试覆盖率

一、maven工程概分两类 单模块工程 多模块工程 二、maven单模块工程 单模块工程比较容易,因为单测直接就在本工程里了,可以直接参看: https://github.com/SonarSource/sonar-scanning-exam...

2021/03/12 18:25
235
springboot配置文件查找优先级

spring boot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件 –file:.// –file:./ –classpath:/config/ –classpath:/ 但是寻找属性的...

2021/01/21 15:06
191
Jenkins系列文章编写计划

一、背景 最近在基于Jenkins做CI/CD相关的东西,准备把中间用到的东西写个系列记录。 二、计划 TBD...

2021/01/19 22:44
191
SonarQube Scanner for Jenkins plugin waitForQualityGate pending 超时

一、背景 关于SonarQube Scanner for Jenkins plugin waitForQualityGate,网上流传的文章,正确使用方法几乎没有,导致我也走了一些弯路。 比如这篇文章(https://www.cnblogs.com/faberbe...

2021/01/18 19:23
339
nginx log_format

nginx 可用的变量 https://nginx.org/en/docs/varindex.html $upstream_addr (ngx_http_upstream_module) 实际服务器地址 $request_uri 原始请求的uri $uri 我以为是经过nginx处理之后的实际...

2021/01/12 20:23
84
Surefire The forked VM terminated without properly saying goodbye

"The forked VM terminated without properly saying goodbye" when running Surefire in a very deep project structure on Windows https://issues.apache.org/jira/plugins/servlet/mobil...

2020/12/25 12:55
184
maven多模块工程jacoco、sonar单元测试覆盖率及集成测试覆盖率

一、针对Sonarqube 8.x版本 官方有例子,链接如下 https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner-maven/maven-multimodule 该版本已经要求尽量用x...

2020/12/04 11:53
1.5K
Java神奇的32GB

Don’t Cross 32 GB! There is another reason to not allocate enormous heaps to Elasticsearch. As it turns out, the HotSpot JVM uses a trick to compress object pointers when heap...

AbstractQueuedSynchronizer(AQS)粗解

AbstractQueuedSynchronizer位于java.util.concurrent.locks包下面,java.util.concurrent里面的好多工具类都是基于AQS实现的,比如mutual exclusion locks,read-write locks,semaphores,...

2020/03/13 17:02
85
Java synchronization 粗解

java提供了很多种用于线程之间通讯协作的机制,其中最基本的就是synchronization(同步),它是基于内置监视器来实现的。我们知道每一个java对象都有一个内置的监视器,称之为monitor,线程访...

Java Thread State(java线程状态)

Java的线程,有如下几个状态: 状态 说明 NEW Thread state for a thread which has not yet started 线程刚创建,还未开始执行 RUNNABLE Thread state for a runnable thread. A thread in...

A bird's eye view of ZooKeeper, including design concepts and architecture(zookeeper鸟瞰图)

ZooKeeper ZooKeeper: A Distributed Coordination Service for Distributed Applications Design Goals Data model and the hierarchical namespace Nodes and ephemeral nodes Conditional...

Redis Clients Handling(redis是如何处理客户端连接的)

This document provides information about how Redis handles clients from the point of view of the network layer: connections, timeouts, buffers, and other similar topics are cove...

2020/03/10 15:38
187
Secondary indexing with Redis(redis二级索引)

Redis is not exactly a key-value store, since values can be complex data structures. However it has an external key-value shell: at API level data is addressed by the key name. ...

2020/03/10 15:33
197

没有更多内容

加载失败,请刷新页面

返回顶部
顶部