09 2022 档案

摘要:pom.xml 引入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> <dependen 阅读全文
posted @ 2022-09-26 11:09 水水君 阅读(601) 评论(0) 推荐(0)
摘要:1、登陆https://hub.docker.com/拉取nacos镜像 2、运行docker启动命令 docker run -d \ --name nacos-server \ -e MODE=standalone -e prefer_host_mode={host} \-p 8848:8848 阅读全文
posted @ 2022-09-25 12:08 水水君 阅读(1409) 评论(0) 推荐(0)
摘要:error:zsh: command not found: mysql 解决方案:docker exec -it {container name} bash -l 阅读全文
posted @ 2022-09-23 10:36 水水君 阅读(19) 评论(0) 推荐(0)
摘要:一、Set:特点不包含重复元素 常用功能: HashSet result = new HashSet(); HashSet set1 = new HashSet(); HashSet set2 = new HashSet(); result.addAll(set1); result.retainAl 阅读全文
posted @ 2022-09-08 21:48 水水君 阅读(168) 评论(0) 推荐(0)
摘要:一、类加载的时机 场景遇到 new、getstatic、putstatic、invokestatic 四条字节码指令 使用new关键字实例化对象 读取/设置静态字段(除常量池内的静态字段) 调用静态方法 使用java.lang.reflect包对类型进行反射调用 初始化子类的时,发现未初始化父类 虚 阅读全文
posted @ 2022-09-07 21:15 水水君 阅读(36) 评论(0) 推荐(0)