摘要:
JVM参数MetaspaceSize的误解:https://www.cnblogs.com/williamjie/p/9558136.html 阅读全文
摘要:
https://blog.csdn.net/qq_39525893/article/details/103163915 阅读全文
摘要:
参考:https://www.cnblogs.com/pxblog/p/12246248.html 说明的是,前期本地回滚提交,可以直接用 ,更方便,然后“ git push -u origin master -f “这个代码是表示冲突的时候强制提交,一般不建议 2.出现git 合并提示 warni 阅读全文
摘要:
,如图,官网的说明。 2.3以后,想要用valid的功能,则需要maven引入依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifa 阅读全文
摘要:
我的版本是2.0.3 jdk1.8.0.131 这里我们只看console源码,这是控制台,比较熟悉。我目前只看了这部分代码 1. 启动main class 报错。 提示少了某些类。 百度后,才知道,看下图: 这里的东西编译后,会产生class类。 maven执行compile命令 或者安装prot 阅读全文
摘要:
要将微服务加入到springboot admin的监控中心,如果没有配置server.servlet.context-path的话,就一切ok,但是如果配置了呢? 从springboot admin找到微服务,什么都看不到。 上图可以看到,我们的健康监控没有项目路径,所以导致找不到。 那么问题来了, 阅读全文
摘要:
看driver源码的时候,重温了下spi。以前虽然看过spi源码,但是忘记了。如今回看,发现有些疑惑。 这里将得到的所有实例的class对象找到后,就是从iterator.next了一下,也就是获取,根本没实例化,很奇怪。 于是看了下源码: 1. Iterator<Driver> driversIt 阅读全文
摘要:
建议用背景图,这样可以全局都设置。如果用颜色设置,就比较麻烦 (最下面有我自己用的背景图) 设置方法: 设置-appearance & behavior-appearance-ui options - background image.. 图片选择好后,选择拉伸的方式。opacity 我选择的是10 阅读全文
摘要:
环境: centos7.6 redis:6.2.6 1.主从复制 命令方式:在从节点,登录cli后,输入:slaveof xxxx port 然后使用info replication查看。 发现:1主机 slave 0 2.从机 显示主机状态:down 原来有密码的时候,需要设置下密码: 配置sla 阅读全文
摘要:
/** * Returns a power of two size for the given target capacity. */ static final int tableSizeFor(int cap) { int n = cap - 1; n |= n >>> 1; n |= n >>> 阅读全文