首页 > Windows开发
mybatis简介相关API及配置文件介绍
1.1什么是Mybatis? mybatis 是一个优秀的基于java的持久层框架,它内部封装了jdbc,使开发者只需要关注sql语句本身,而不需要花费精力去处理加载驱动、创建连接、创建statement等繁杂的过程。 mybatis通过xml或注解的方式将要执行的各种 statement配置起来, ...
分类:Windows开发   时间:2020-12-02 00:06:29    收藏:0  评论:0  赞:0  阅读:35
c# md5及盐值加密
using System.Text; using System.Security.Cryptography; namespace Tool { public class PasswordHelper { /// <summary> /// MD5 加密字符串 /// </summary> /// < ...
分类:Windows开发   时间:2020-12-02 00:05:36    收藏:0  评论:0  赞:0  阅读:132
delphi ----日期控件运用,日期问题,日期时间比较
一、日期控件 1、DateTimePicker 1)只显示年月 DateMode:dmUpDown format:yyyy-MM 2)将DateTimePicker的Format属性中加入日期格式设成 'yyyy-MM-dd HH:mm',注意大小写 , 将kind设置为dtkTime即可,可以在每 ...
分类:Windows开发   时间:2020-12-01 21:17:34    收藏:0  评论:0  赞:0  阅读:45
c# RegistryKey 的相关简单操作(转)
c# RegistryKey 的相关简单操作 以下从‘读’‘写’‘删除’‘判断’四个事例实现对注册表的简单操作 1.读取指定名称的注册表的值 private string GetRegistData(string name) { string registData; RegistryKey hkml ...
分类:Windows开发   时间:2020-12-01 21:08:36    收藏:0  评论:0  赞:0  阅读:42
C# 设计模式(7)适配器模式
适配器模式 1. 类适配器 (通过继承) 2. 对象适配器 (通过组合) 组合优于继承 数据库适配,代码实现: 原始类 Sql server /MySql namespace AdapterPattern { interface IHelper { void Add<T>(); void Delet ...
分类:Windows开发   时间:2020-12-01 21:06:35    收藏:0  评论:0  赞:0  阅读:42
ServletAPI中forward()和redirect()的区别
forward()仅仅是容器中控制权的转向,在客户端浏览器地址栏中不会显示出转向后的地址 redirect()是完全跳转,浏览器将会得到t跳转地址,并重新发送请求链接 前者更加高效,在前者可以满足需要时,尽量使用forward()方法,并且这样有利于隐藏实际的链接。但是某些特殊情况下,就需要使用到后 ...
分类:Windows开发   时间:2020-12-01 18:10:23    收藏:0  评论:0  赞:0  阅读:37
WEBAPI 的调用方式
Web API的几种调用方式 示例是调用谷歌短网址的API. 1. HttpClient方式: public static async void DoAsyncPost() { DateTime dateBegin = DateTime.Now; string url = @"https://www ...
分类:Windows开发   时间:2020-12-01 18:07:09    收藏:0  评论:0  赞:0  阅读:31
C#/Asp.net后台传值为List,在前台View页面如何解析
今天遇到了一个问题,那就是后台传过来的List,在前台如果是正常的页面Html代码,是可以很顺畅的运行, 但是如果放到Js中,就很痛苦了,直接获取是不可以使用的。 于是乎,从网上翻到的资源,放在这里记录下。备 后使用 var arr= JSON.parse('@Html.Raw(new System ...
分类:Windows开发   时间:2020-12-01 16:08:10    收藏:0  评论:0  赞:0  阅读:88
C# Winform TCP发消息
服务端: 代码: using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System. ...
分类:Windows开发   时间:2020-12-01 16:05:35    收藏:0  评论:0  赞:0  阅读:30
C# 设计模式(5)建造者模式
建造者模式 1. 复杂对象创建,包含多步骤 2. 建造流程相对固定 代码实现:造车 模型: namespace BuilderPattern.Models { public class Engine { public string Name { get; set; } } public class ...
分类:Windows开发   时间:2020-12-01 14:58:09    收藏:0  评论:0  赞:0  阅读:26
C#设置DataGridView单元格的内容居中显示
//dgvVisitor 是DataGridView的名称 dgvVisitor.RowsDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; //单元格居中显示 private void dgvVisitor ...
分类:Windows开发   时间:2020-12-01 13:57:39    收藏:0  评论:0  赞:0  阅读:435
This Activity already has an action bar supplied by the window decor Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead
Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPOR ...
分类:Windows开发   时间:2020-12-01 11:19:29    收藏:0  评论:0  赞:0  阅读:31
Easy win for Barca as Messi pays homage to Maradona and Lenglet suffers ankle injury
##Easy win for Barca as Messi pays homage to Maradona and Lenglet suffers ankle injury FC Barcelona's Lionel Messi celebrates scoring their fourth goa ...
分类:Windows开发   时间:2020-12-01 09:16:52    收藏:0  评论:0  赞:0  阅读:22
Gateway中引入Sentinel基于api分组限流
编写配置类 import com.alibaba.csp.sentinel.adapter.gateway.common.SentinelGatewayConstants; import com.alibaba.csp.sentinel.adapter.gateway.common.api.ApiD ...
分类:Windows开发   时间:2020-12-01 09:12:41    收藏:0  评论:0  赞:0  阅读:667
C# where用法
where 子句用于指定类型约束,这些约束可以作为泛型声明中定义的类型参数的变量。 1.接口约束。 例如,可以声明一个泛型类 MyGenericClass,这样,类型参数 T 就可以实现 IComparable<T> 接口: public class MyGenericClass<T> where ...
分类:Windows开发   时间:2020-12-01 09:01:53    收藏:0  评论:0  赞:0  阅读:31
安装github for windows问题解决
安装githubforwindows问题解决githubforwindows安装包下载地址https://desktop.github.com/下载安装包,打开安装报错如下:Anerroroccurredtryingtodownload‘http://github-windows.s3.amazonaws.com/GitHub.application‘.Seethesetuplog
分类:Windows开发   时间:2020-11-30 23:28:18    收藏:0  评论:0  赞:0  阅读:55
如何动态修改windows下的host文件
如何动态修改windows下的host文件事件背景:为了测试数据提交后,需要在另一个环境的多个测试节点下去验证测试数据是否添加成功,找了一大堆放法,用了比较笨的方法实现了。不多废话思路如下:为了万无一失,先备份hosts文件内容:1.读取hosts所有文本内容,代码如下/***获取文件全部内容*@paramfileName*@return*/publicStringreadToString(Str
分类:Windows开发   时间:2020-11-30 23:25:05    收藏:0  评论:0  赞:0  阅读:41
彻底关闭win10自动更新
彻底关闭win10自动更新 最近系统重装了一遍,导致之前很多的设置都失效了,今天正好win10又给我自动更新了,用了一段时间的mac已经不适应windows的流氓行为了,不能惯着他,故记下关闭win10自动更新的步骤。 步骤一 1.同时按下win+R键,调出运行窗口,输入services.msc,打 ...
分类:Windows开发   时间:2020-11-30 21:52:36    收藏:0  评论:0  赞:0  阅读:46
window.location.href
1. session 丢失 在后端代码中,返回一个字符串,内容为重定向地址。 @ResponseBody @RequestMapping("autoLogin") public String doctorAutoLogin(HttpServletRequest request, HttpServle ...
分类:Windows开发   时间:2020-11-30 21:49:15    收藏:0  评论:0  赞:0  阅读:110
C# 知识点集锦(二)
一。多线程创建 Task.Factory.StartNew( delegate { TimeConsumingTask(); } ); Task.Factory.StartNew( () => { TimeConsumingTask(); } ); Task.Run( () => { TimeCon ...
分类:Windows开发   时间:2020-11-30 19:15:23    收藏:0  评论:0  赞:0  阅读:25
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!