会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr_4
博客园
首页
新随笔
联系
管理
订阅
2016年1月15日
无状态(Stateless)Web应用机制
摘要: 1、实现StatelessAuthcFilter:拦截所有stateless的请求(1)isAccessAllowed():拦截后先进入该方法。直接返回false,交由onAccessDenied处理鉴权与登录逻辑。(原因参照说明1)(2)参照抽象类AccessControlFilter重写两个on...
阅读全文
posted @ 2016-01-15 18:10 Mr_4
阅读(4233)
评论(0)
推荐(0)
2015年2月6日
git配置
摘要: git配置步骤:1、安装git2、安装TortoiseGit3、ssh-keygen -t rsa -C "这里输入邮箱帐号,普通帐号也行" -f ~/.ssh/id_rsa(这里输入路径及密钥名) 密钥对保存在c:/users/administrator/.ssh下4、把公钥添加到代码托管平台注...
阅读全文
posted @ 2015-02-06 10:10 Mr_4
阅读(147)
评论(0)
推荐(0)
2014年11月20日
电脑监控软件实现(截图端、服务端、监控端)
摘要: 最近在做的项目中客户有监控软件的需求。需求:每5秒显示被监控电脑的桌面情况。实现思路:1.截图端:Timer每5秒截图、调用服务端接口上传。2.服务端:保存截图到服务端本地并把截图信息保存到数据库,包括图片在服务端的保存路径。3.监控端:①调用服务端下载List接口,下载需要显示的截图列表。②Tim...
阅读全文
posted @ 2014-11-20 16:40 Mr_4
阅读(2048)
评论(0)
推荐(0)
2014年8月8日
零散知识点
摘要: 1.引用传递参数ref static void Main(string[] args) { int n1 = 10, n2 = 20; Swap(ref n1,ref n2); Console.WriteL...
阅读全文
posted @ 2014-08-08 21:44 Mr_4
阅读(218)
评论(0)
推荐(0)
2013年4月9日
C# 记事本功能实现
摘要: 一、文件1.打开 private void fOpen_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { richTextBox1.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.PlainText); } path = openF...
阅读全文
posted @ 2013-04-09 20:39 Mr_4
阅读(959)
评论(2)
推荐(0)
2013年4月8日
C# 调用API函数创建INI文件
摘要: 1.首先导入命名空间:using System.Runtime.InteropServices;2.声明API函数:1 [DllImport("kernel32")]2 private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);3 [DllImport("kernel32")]4 private static extern int GetPrivateProfileStr...
阅读全文
posted @ 2013-04-08 22:52 Mr_4
阅读(252)
评论(0)
推荐(0)
公告