上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页
摘要: 包(Packages): Cargo 的一个功能,它允许你构建、测试和分享 crate。Crates :一个模块的树形结构,它形成了库或二进制项目。模块(Modules)和 use: 允许你控制作用域和路径的私有性。路径(path):一个命名例如结构体、函数或模块等项的方式 创建一个库 cargo 阅读全文
posted @ 2022-02-04 18:27 谷粒-笔记 阅读(93) 评论(0) 推荐(0)
摘要: 2021.1.1 <component name="RunDashboard"> <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> </set> </o 阅读全文
posted @ 2022-01-27 20:30 谷粒-笔记 阅读(38) 评论(0) 推荐(0)
摘要: 【Spring Boot】启动时执行:CommandLineRunner、ApplicationRunner 和 ApplicationListener 阅读全文
posted @ 2022-01-21 11:27 谷粒-笔记 阅读(212) 评论(0) 推荐(0)
摘要: post public static String doPost(String url, String json) { PrintWriter out = null; BufferedReader in = null; String result = ""; try { URL realUrl = 阅读全文
posted @ 2022-01-17 19:54 谷粒-笔记 阅读(81) 评论(0) 推荐(0)
摘要: 【Rust】枚举 enum 阅读全文
posted @ 2022-01-13 21:05 谷粒-笔记 阅读(55) 评论(0) 推荐(0)
摘要: 定义结构体 #[derive(Debug)] struct Rectangle { name: String, width: u32, height: u32, } 定义结构体方法 impl Rectangle { // 方法 fn area(&self) -> u32 { self.width * 阅读全文
posted @ 2022-01-13 21:04 谷粒-笔记 阅读(199) 评论(0) 推荐(0)
摘要: 所有权 所有权的规则 1. Rust 中的每一个值都有一个被称为其 所有者(owner)的变量。 2. 值在任一时刻有且只有一个所有者。 3. 当所有者(变量)离开作用域,这个值将被丢弃。 Rust 采取了一个不同的策略:内存在拥有它的变量离开作用域后就被自动释放 变量与数据交互 方式(一):移动, 阅读全文
posted @ 2022-01-08 20:57 谷粒-笔记 阅读(291) 评论(0) 推荐(0)
摘要: String类 1. push_str 2. push 3. as_bytes 4. chars 5. bytes 6. slice 7. as_str 定义字符串 // 不可变 let s = String::from("hello"); // 可变 let mut s = String::fro 阅读全文
posted @ 2022-01-06 22:08 谷粒-笔记 阅读(92) 评论(0) 推荐(0)
摘要: http { limit_req_zone $binary_remote_addr zone=mybufname:10m rate=200r/s; } 第一个参数:$binary_remote_addr 表示通过 remote_addr 这个标识来做限制,"binary_"的目的是缩写内存占用量,是 阅读全文
posted @ 2022-01-05 21:10 谷粒-笔记 阅读(381) 评论(0) 推荐(0)
摘要: 查看容器使用的IP docker inspect nginx docker inspect --format='{{.NetworkSettings.Networks.deyatech.IPAddress}}' nginx 查看容器ID,记住ID后续会用 docker ps -a 停止容器 dock 阅读全文
posted @ 2022-01-05 20:16 谷粒-笔记 阅读(3340) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页