上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 60 下一页
摘要: 我们知道,静态变量是在类的实例化之前就进行了初始化(类的初始化阶段),所以静态变量是跟着类本身走的,跟具体的对象无关,所以我们获取变量就不需要传入对象,直接传入null即可: 1 public class User { 2 public static String name; 3 } 4 5 fie 阅读全文
posted @ 2022-11-16 17:24 Boblim 阅读(793) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/qq_40124555/article/details/126629409 参考:https://blog.csdn.net/weixin_40776321/article/details/120170756 参考:https://blog.csdn 阅读全文
posted @ 2022-11-16 15:19 Boblim 阅读(8811) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/ancongxie6976/article/details/101326474 一、使用场景 1.因某些原因,我们可能将log4j中的配置变量化,进行动态获取 2.动态获取内容不存在时,我们希望能够赋上通用的值 二、语法 单变量: ${前缀:变量:- 阅读全文
posted @ 2022-11-16 14:36 Boblim 阅读(680) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/xiaokanfuchen86/article/details/126695797 log4j2.xml 是不归 spring 管理的,所以也就没法读取到 application.yml 里面的配置了。 解决方式: 通过 spring 的 监听器(L 阅读全文
posted @ 2022-11-16 14:28 Boblim 阅读(1485) 评论(0) 推荐(0)
摘要: issue from: https://github.com/apache/dubbo/issues/9891 一、问题背景 项目版本 spring boot 2.6.6nacos 2.0.4dubbo 3.0.7 问题描述 provider启动正常consumer启动时报如下错误: 2022-04 阅读全文
posted @ 2022-11-15 17:27 Boblim 阅读(3140) 评论(1) 推荐(1)
摘要: 转自:https://blog.csdn.net/m0_54849806/article/details/123734294 1、参考 多协议:http://dubbo.apache.org/en-us/docs/user/demos/multi-protocols.html 多Registry:h 阅读全文
posted @ 2022-11-15 17:05 Boblim 阅读(396) 评论(0) 推荐(0)
摘要: 转自:https://www.jb51.net/article/239792.htm 首先创建一个数据库表,如下图所示: 然后创建一个Spring Boot项目,pom.xml和配置如下: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xml 阅读全文
posted @ 2022-11-10 11:41 Boblim 阅读(4471) 评论(0) 推荐(0)
摘要: 原文网址:yml/yaml--文件格式/配置文件--用法/写法_IT利刃出鞘的博客-CSDN博客 简介 说明 YAML 是一种简洁的非标记语言,文件名后缀为.yml,java中经常用它描述配置文件。 YAML以数据为中心,比json/xml等更适合做配置文件。 使用空格进行缩进,分行组织数据,从而使 阅读全文
posted @ 2022-11-01 15:10 Boblim 阅读(8016) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/dkfajsldfsdfsd/article/details/90721230 1、参考 多协议:http://dubbo.apache.org/en-us/docs/user/demos/multi-protocols.html 多Registry 阅读全文
posted @ 2022-10-31 20:34 Boblim 阅读(408) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/qq_36882793/article/details/117366243 一、前言 本系列为个人Dubbo学习笔记衍生篇,是正文篇之外的衍生内容,内容来源于《深度剖析Apache Dubbo 核心技术内幕》, 过程参考官方源码分析文章。仅用于个人笔 阅读全文
posted @ 2022-10-31 20:22 Boblim 阅读(180) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 60 下一页