1、引入依赖 <dependency> <groupId>com.spring4all</groupId> <artifactId>swagger-spring-boot-starter</artifactId> <version>1.9.0.RELEASE</version> </dependen ...
分类:
其他好文 时间:
2020-07-23 01:43:07
阅读次数:
75
需要三个前提: # 在192.168.26.99代理上网前提:1) 路由表包含需要上网的网段route add -host 100.x.x.x gw 100.x.x.1 # eth1 是Wan口网卡route add -net 192.168.x.0/22 eth0 # eth0 是Lan口网卡 2 ...
分类:
系统相关 时间:
2020-07-22 20:08:34
阅读次数:
83
向屏幕输出 代码 package hello; public class Hello { public static void main(String[] args) { // TODO Auto-generated method stub // 输出 System.out.println("Hel ...
分类:
编程语言 时间:
2020-07-22 20:05:26
阅读次数:
70
解决redis启动时的三个警告 第一个警告:The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 第二个警告:o ...
分类:
其他好文 时间:
2020-07-22 16:25:57
阅读次数:
104
本篇文章收录于专辑:http://dwz.win/HjK前言你好,我是彤哥,一个每天爬二十六层楼还不忘读源码的硬核男人。上一节,我们从事后统计法过渡到渐近分析法,详细讲解了如何进行算法的复杂度分析。但是,如果遵循严格的渐近分析法,需要掌握大量数学知识,这无疑给我们评估算法的优劣带来了很大的挑战。那么,有没有更好地评估算法的方法呢?答案是必然的,本节,我们就从最坏、平均、最好三种情况来分析分析复杂度
分类:
其他好文 时间:
2020-07-22 16:06:19
阅读次数:
77
private static double EARTH_RADIUS = 6378.137; private static double rad(double d) { return d * Math.PI / 180.0; } /** * 通过经纬度获取距离 不同的计算方式存在误差 * * @pa ...
分类:
编程语言 时间:
2020-07-22 15:57:13
阅读次数:
66
import sun.misc.BASE64Decoder; String res = new sun.misc.BASE64Encoder().encode("03100003:c4ca4238a0b923820dcc509a6f75849b".getBytes()); System.out.pr ...
分类:
其他好文 时间:
2020-07-22 15:52:04
阅读次数:
78
public class Test { public static void main(String[] args) { int sum=0; for(int i=1;i<=100;i++) { sum+=i;/**进行累加 */ } System.out.println("结果为"+sum); } ...
分类:
编程语言 时间:
2020-07-22 15:34:27
阅读次数:
111
2 3 public class MyBubbleSort { 4 public static void main(String[] args) { 5 int num[] = {10,8,33,54,1,6,12,43,32,27}; 6 bubbleSort(num); 7 for (int i ...
分类:
编程语言 时间:
2020-07-22 11:34:29
阅读次数:
63
Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "D:\python_learn\meiduo_project\env ...
分类:
数据库 时间:
2020-07-22 11:10:04
阅读次数:
117