摘要: ImportSelector接口源码 package org.springframework.context.annotation; import org.springframework.core.type.AnnotationMetadata; /** * Interface to be impl 阅读全文
posted @ 2023-02-16 19:23 hy叶子 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1 运行SpringApplication.run()方法 org.springframework.boot.SpringApplication.SpringApplication(org.springframework.core.io.ResourceLoader, java.lang.Class 阅读全文
posted @ 2023-02-16 16:08 hy叶子 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 除了配合后台管理页面的CRUD接口,本文主要介绍config服务的实现和client如何读取配置文件。 基于EnvironmentRepository 读取启动配置spring_cloud_config文件 1.配置中心项目端: 1)pom引入spring-cloud-config-server 2 阅读全文
posted @ 2023-02-15 16:31 hy叶子 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 类图 实现代码 Director class Director { private Builder builder; public Director(Builder builder) { this.builder = builder; } public void construct() { buil 阅读全文
posted @ 2022-02-11 11:49 hy叶子 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 哨兵模式 1主n从 原理:client端先请求哨兵,哨兵返回主master的ip,client端通过ip访问redis服务。 哨兵也是一个程序,监控redis服务器情况,对外有服务端口。 问题:client端一直只访问一个节点,单台服务器内存不能提供到很大。 高可用集群模式 n主n*m从,多个子集群 阅读全文
posted @ 2022-01-05 18:11 hy叶子 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 #!/usr/bin/env python # # Name: pymssqlTest.py # Purpose: 测试 pymssql库,该库到这里下载:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql # # Aut 阅读全文
posted @ 2021-12-27 11:57 hy叶子 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1.JPS public class test1 { public static void main(String[] args) { while(true){ System.out.println("1"); } } } cmd -> 输入jps命令,显示java进程的pid;或者输入taskli 阅读全文
posted @ 2021-12-27 11:53 hy叶子 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 案例1:一次 SQL 查询优化原理分析 1. SELECT PLAT_BATCH_CODE FROM t_fee_fact_record t WHERE t.SALES_CHANNEL = ? AND t.PAY_STATUS IN (?) AND t.FEE_STATUS != ? AND t.I 阅读全文
posted @ 2021-12-27 11:51 hy叶子 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 一、微信授权流程图 1、project/mainPage.html?pagetype=1 2、返回浏览器重定向A地址为:open.weixin.qq.com/connect/oauth2/authorize?appid=AA&redirect_uri=#REDIRECT_URI#&response_ 阅读全文
posted @ 2021-12-27 11:50 hy叶子 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 调用: 1.程序调用 2.开发者工具 -> 在线接口调试工具 菜单 api接口地址 1.创建菜单接口:http请求方式:POST(请使用https协议) https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN 2 阅读全文
posted @ 2021-12-27 11:36 hy叶子 阅读(2088) 评论(0) 推荐(0) 编辑