UIViewController 的 生命周期 #pragma mark life circle // 非storyBoard(xib或非xib)都走这个方法 - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBun ...
分类:
其他好文 时间:
2020-06-15 12:12:01
阅读次数:
64
前言 上一篇【.Net Core微服务入门全纪录(二)——Consul-服务注册与发现(上)】已经成功将我们的服务注册到Consul中,接下来就该客户端通过Consul去做服务发现了。 服务发现 同样Nuget安装一下Consul: 改造一下业务系统的代码: ServiceHelper.cs: pu ...
分类:
Web程序 时间:
2020-06-15 09:41:35
阅读次数:
70
题目::https://pintia.cn/problem-sets/15/problems/717 #include<iostream> using namespace std; const int N = 505 ; const int MAX = 1000000000 ; int n,m,s, ...
分类:
其他好文 时间:
2020-06-15 00:04:00
阅读次数:
76
pair的数据定义 在C++ pair的参考网站的介绍如下所示 > stdpair is a class template that provides a way to store two heterogeneous objects as a single unit. A pair is a spe ...
分类:
编程语言 时间:
2020-06-14 23:53:25
阅读次数:
113
package LeetCode_282 /** * 282. Expression Add Operators * https://leetcode.com/problems/expression-add-operators/description/ * * Given a string that ...
分类:
其他好文 时间:
2020-06-14 20:59:44
阅读次数:
62
可以根据解析的结果得出token还有多久过期 package util; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jws; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.Si ...
分类:
其他好文 时间:
2020-06-14 16:41:32
阅读次数:
577
图 逻辑结构 图的定义 图G由顶点集V和边集E组成,记为G=(V,E),其中由V(G)表示图中G中的顶点的有限非空集;E(G)表示图G中顶点之间的关系(边)集合(图不能为空) |V|表示图中顶点个数也称图的阶;|E|表示图中边的条数 相关概念 无向图&有向图 无向边:v-w 无序对(v,w)=(w, ...
分类:
其他好文 时间:
2020-06-14 15:08:51
阅读次数:
68
当您创建多个相同类型的 bean 并希望仅使用属性装配其中一个 bean 时,您可 以使用@Qualifier 注解和 @Autowired 通过指定应该装配哪个确切的 bean 来消除歧义。 例如,这里我们分别有两个类,Employee 和 EmpAccount。在 EmpAccount 中,使用 ...
分类:
其他好文 时间:
2020-06-14 13:11:33
阅读次数:
89
package Demo; /** * @Author:胡琪 * @Description: * @Date: created in 15:31 2019/6/12 */ public class SnowflakeIdUtils { // Fields /** 开始时间截 (2015-01-01) ...
分类:
编程语言 时间:
2020-06-14 12:50:47
阅读次数:
52
import java.util.*;/** * 图的广度优先遍历 */public class BreadthFirst { public static void bfs(Node node) { if (node == null) { return; } Queue<Node> queue = ...
分类:
其他好文 时间:
2020-06-14 11:20:26
阅读次数:
70