package main import ( "fmt" "time" ) func main() { s := NewServices( SetName("peter"), SetTimeout(time.Second*5), ) fmt.Println("name:", s.conf.Name) ...
分类:
其他好文 时间:
2021-03-31 12:16:53
阅读次数:
0
#include <iostream> #include <vector> #include <thread> #include <mutex> #include <condition_variable> #include <queue> #include <functional> using na ...
分类:
编程语言 时间:
2021-03-30 13:55:19
阅读次数:
0
虚函数 如果用基类指针指向一个衍生类对象,透过基类指针只能调用基类所定义的成员函数。 要实现透过基类指针调用子类成员函数(多态),需要使用 virtual 关键字。 MFC 有两个十分十分重要的虚 拟函数:与document 有关的Serialize 函数和与view 有关的OnDraw 函数 动态 ...
分类:
编程语言 时间:
2021-03-30 13:38:49
阅读次数:
0
1.选择Analyze——》Run Inspection by Name...或者使用快捷键Ctrl+Alt+Shift+I 2.在弹框中输入:unused declaration 3.弹框默认选择 4.等待下方读条结束会自动弹出Inspection Results弹窗 5.对没有用到的方法和变量提 ...
分类:
其他好文 时间:
2021-03-30 13:30:44
阅读次数:
0
Reconstruct Original Digits from English (M) 题目 Given a non-empty string containing an out-of-order English representation of digits 0-9, output the d ...
分类:
其他好文 时间:
2021-03-30 13:01:57
阅读次数:
0
很明显之前学的方式 手动配置还是不够方便。就需要我们去学习Spring的自动装配! #autowire="byName" 定义几个简单类 package Demo; public class Cat { public void shout(){ System.out.println("miao~") ...
分类:
编程语言 时间:
2021-03-29 12:52:06
阅读次数:
0
多态的概述 什么是多态 同一个对象,在不同时刻表现出来的不同形态 多态的前提 1.要有继承或实现关系 2.要有方法的重写 3.要有父类引用指向子类对象 代码演示 class Animal { public void eat() { System.out.println("动物吃饭"); } } cl ...
分类:
编程语言 时间:
2021-03-29 12:34:46
阅读次数:
0
我不是标题党, 但我确实很惊讶, 原来反汇编真的有可能作为辅助的调试手段. 我运行一个很小的mpi程序(奇偶排序). 得到了以下的报错: 1380 PA1$mpirun -n 2 ./a.out [parallels-Parallels-Virtual-Platform:15012] *** Pro ...
分类:
其他好文 时间:
2021-03-29 12:06:47
阅读次数:
0
1. 准备工作: 需要.netcore或者java程序一套,引入consul第三方包 我这里搭建了一个.netcore的webapi项目,引入Consul第三方包,网上可查资料一堆 环境需要kong,konga管理平台,consul 2. 运行程序,注册服务到consul端 找到项目调试debug目 ...
分类:
其他好文 时间:
2021-03-29 11:48:30
阅读次数:
0
ps -ef|grep apache -tomcat 查看进程 kill -9 杀死进程 ls 看命令 ./ startup.sh 启动 cd ../logs 查log tail -f catalina.out 看log chmod -R 777 * chmod 777 * 赋权限 unzip 文件 ...
分类:
系统相关 时间:
2021-03-26 15:32:48
阅读次数:
0