编程笔记
-
SpringMVC学习笔记二:请求与响应
请求映射路径 多人开发,每人设置不同的请求路径,冲突问题如何解决? 设置模块名作为请求路径前缀 @Controller //设置整体请求路径前缀 @RequestMapping("/hello") public class HelloController { //请求方式为--…
-
二进制安装多master节点的k8s集群(2)
1.环境准备 k8s集群角色 IP 主机名 安装的组件 控制节点 192.168.1.10 master apiserver、controller-manager、scheduler、etcd、docker、keepalived、nginx 控制节点 192.168.1.11 pod1 apiserver、controller-man…
-
391 基环树 P2607 [ZJOI2008] 骑士
视频链接: // Luogu P2607 [ZJOI2008] 骑士 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N=1e6+10; typedef long long LL; int n; struct ed…
-
mybatis面试官题-碰到了就更新
1、问:mybatis怎么获取主键? 在后台插入的时候获取值, 有两种情况:支持主键自增数据库和不支持主键自增。 (1)对于支持自动生成主键的数据库 如Mysql、sqlServer,可以通过 Mybatis元素useGeneratedKeys返回当…
-
392 基环树 P1399 [NOI2013] 快餐店
视频链接: // Luogu P1399 [NOI2013] 快餐店 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=100000+10; int n; struct edge{int v,w,ne;}e[N<…
-
git创建项目
根据邮箱生成秘钥 ssh-keygen -t rsa -C "379858863@qq.com" 查看秘钥 cat ~/.ssh/id_rsa.pub 然后复制秘钥 登录到马云中 https://gitee.com/profile/sshkeys 测试是否链接成功 ssh -T git@gitee.com
-
WiFI Weak Security(WPA) All In One
WiFI Weak Security(WPA) All In One Weak Security(WPA) WPA is not considered secure. Learn More. If this is your Wi-Fi network, configure the router to use WPA2/WPA3 Personal (AES) security type for t…
-
POJ1984 Navigation Nightmare
题目链接 题目 Description Farmer John's pastoral neighborhood has N farms (2 <= N <= 40,000), usually numbered/labeled 1..N. A series of M (1 <= M < 40,000) vertical and horizontal roads …
-
vue组件传值的方法有哪些
原文地址:https://www.cnblogs.com/cheyunhua/p/16179610.html vue组件传值的方法:1、父向子传值使用props;2、子向父传值使用“$emit”;3、使用EventBus或Vuex进行兄弟传值;4、使用“provide/inject”或“$attrs/$l…
-
数据存储——四种存储方式——Application的生命周期
Application是Android的一大组件,在App运行过程中有且仅有一个Application对象贯穿整个生命周期。 在AndroidManifest.xml里面,activity节点的上级正是application节点。如果给application节点指定android:name…