OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版。 本文对OAuth 2.0的设计思路和运行流程,做一个简明通俗的解释,主要参考材料为RFC 6749。一、应用场景为了理解OAuth的适用场合,让我举一个假设的例子。有一个"云冲印"的网...
分类:
其他好文 时间:
2015-02-07 13:02:22
阅读次数:
191
一:S2SH框架流程图
hibernate的作用就是在Dao层将model的数据持久化到DB数据库。
这幅图上没有标记spring,
其实spring贯穿整个过程:
spring面向接口编程:
spring将service注入到Action,
spring将dao注入到service
spring针对servic进行声明式的事务管理。
二:单独看hibernat...
分类:
Web程序 时间:
2015-02-05 09:39:14
阅读次数:
201
1.去官网下载axis的jar包,我下的是1.4版本的http://axis.apache.org/axis/java/releases.html2.JAVA 代码:public void myWebService() throws Exception { Service servic...
分类:
编程语言 时间:
2015-02-04 12:22:30
阅读次数:
210
HTTP Service插件
这里的http接口插件是神马?
Openfire主要是在消息推送,那么与其他系统的的消息怎么结合呢,那么这里这个HTTP Service插件就提供了一个基于HTTP的接口。为什么要提供这样的接口?在有些互联网的场景。一个用户平台可以是web的,当然也会有移动终端的APP,那么web端要给移动终端的APP发送消息就依赖这样的接口了。当然这里只是一种实现方式。
首先...
分类:
Web程序 时间:
2015-02-03 23:05:57
阅读次数:
533
http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-10.5code REQUIRED. The authorization code generated by the authorization se...
原文地址:http://www.android100.org/html/201306/20/3224.html运行效果:其中,这一块就是悬浮窗,可以随意拖动,动态显示当前内存使用量。 下面看一下代码是如何实现的:悬浮窗的实现是用了一个service,为什么要用service呢?了解servic...
分类:
移动开发 时间:
2015-02-02 13:52:15
阅读次数:
219
Important Note: I am not stating or encouraging you operate by following the next steps to update from Xprog 5.0 to Xprog 5.5.1 if you do not have kno...
分类:
其他好文 时间:
2015-01-31 11:52:19
阅读次数:
255
With the defaultApache HBaseconfiguration,everyone is allowed to read from and write to all tables available in the system. For many enterprise setups...
分类:
Web程序 时间:
2015-01-29 19:08:41
阅读次数:
1287
win7+iis71、localhost访问bad request错误。 主机地址不要指定为127.0.0.1。设置为”全部未分配“。2、错误 500.19(由于权限不足而无法读取配置文件)的问题 编辑权限,添加一个everyone用户,赋给所有权限。3、未能从程序集“System.Servic.....
分类:
其他好文 时间:
2015-01-27 17:55:15
阅读次数:
112
原文地址:http://www.jb51.net/os/188487.html一、配置防火墙,开启80端口、3306端口CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.servic...
分类:
其他好文 时间:
2015-01-27 11:04:23
阅读次数:
210