注解
@RestController 相当于 @Controller + @ResponseBody
@Controller 标注为 Controller
1 |
|
i8, i16, i32, i64, isize)、u8, u16, u32, u64, usize) 、f32, f64)、以及有理数、复数&strtrue和 false() ,其唯一的值也是 ()!String&str ( &str 是切片)"let s: &str = "Hello, world!"; ")let tup = (500, 6.4, 1); 定义let (x, y, z) = tup; 模式匹配结构tup.0; tup.1; tup.2 访问元组1 | fn main(){ |
1 | n main() { |
安装 Microsoft C++ Build Tools,勾选安装 C++ 环境即可。
msvc 命令行程序需要手动添加到环境变量中
%Visual Studio 安装位置%\VC\Tools\MSVC\%version%\bin\Hostx64\x64(请自行替换其中的 %Visual Studio 安装位置%、%version% 字段)