摘要: 1.下载包HttpMultipartParser 2.服务端代码 public bool Upload(Stream stream) { var parser = MultipartFormDataParser.Parse(stream);//解析stream var file = parser.F 阅读全文
posted @ 2023-11-17 16:56 赵三毛 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 网上各种 加binding 都不行 最后找到了在配置文件中加 webHttpBinding 1 <system.serviceModel> 2 <bindings> 3 <webHttpBinding> 4 <binding 5 maxBufferPoolSize="2048576000" 6 ma 阅读全文
posted @ 2023-11-01 14:42 赵三毛 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.首先创建一个窗体。设置FormBoderStyle为 none; 2.拖入一个panle 到窗体中,设置Dock 属性,让panle填满整个 窗体。修改panel的Name为Login_back 3. 代码 1 public partial class Login1 : Form 2 { 3 p 阅读全文
posted @ 2023-09-14 17:43 赵三毛 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1 public void GetNativeIp() 2 { 3 IPHostEntry hostEntry = Dns.GetHostEntry(Dns.GetHostName()); 4 foreach(var ip in hostEntry.AddressList) 5 { 6 if (ip 阅读全文
posted @ 2023-09-13 16:40 赵三毛 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 public class MD5Utils 2 { 3 public string ComputeHash(string input) 4 { 5 using (MD5 md5 = MD5.Create()) 6 { 7 // 将输入字符串转换为字节数组 8 byte[] inputBytes 阅读全文
posted @ 2023-07-27 20:44 赵三毛 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1 public class PasswordBoxHelper 2 { 3 public static readonly DependencyProperty PasswordProperty = DependencyProperty.RegisterAttached("Password", ty 阅读全文
posted @ 2023-07-14 22:06 赵三毛 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1.登录窗口布局 <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="2*"/> </Grid.ColumnDefinitions> <Border > <Border.Background> <I 阅读全文
posted @ 2023-07-05 15:09 赵三毛 阅读(70) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/LJJONESEED/article/details/125906210 阅读全文
posted @ 2023-03-20 11:25 赵三毛 阅读(32) 评论(0) 推荐(0) 编辑
摘要: @GetMapping("/page")public IPage<TManager> findPage(@RequestParam Integer pageNum, @RequestParam Integer pageSize){ IPage<TManager> page=new Page<>(pa 阅读全文
posted @ 2023-03-01 16:14 赵三毛 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1.公共字段自动填充 在实体类中需要被统一管理的字段上上面加上 @TableField注解,并在内部添加fill属性,INSERT为在执行新增操作时执行,@TableField(fill = FieldFill.INSERT加在create time字段上,即在调用maybatis-plus的sav 阅读全文
posted @ 2022-10-06 15:16 赵三毛 阅读(36) 评论(0) 推荐(0) 编辑