`
seong
  • 浏览: 22703 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
预览图: 该帖子展示了如何安装openfire 以及做一些配置 例如cross-domain 并且会在本地安装spark客户端以及web客户端, web客户端主要用于打印日志,输出客户端与XMPP服务器之间传输XMPP节。 web客户端主要参照了《Professional XMPP Programming with JavaScript and jQuery》这本书 第4章的例子,该书的PDF下载地址:http://ishare.iask.sina.com.cn/f/12563306.html 第一步 下载安装openfire和spark的最新版本 到下面的页面下载即可。注意open ...
记得刚开始使用微博的时候,没有什么粉丝关注,哪怕写了非常有意思的微博,也没有人看, 逐渐的对微博失去了兴趣;后来发现不少朋友在四处寻求互粉,心里便萌生了要开发这个微博互粉的想法, 让大家更有动力去写微博。 下面是截图: 有了它,您就不用再四处留言寻求互粉了,您也不用再花钱买僵尸粉伪装自己的人气了,您每天只需1分钟, 就1分钟,就可以拥有您大批的活粉丝与您互动,这就是该应用的魅力所在,也是我认为的为数不多的真正解决问题的微博应用。

Spring Social

 
Spring Social的核心API package org.springframework.social.connect; /** * A link to a service provider user. * Allows the client application to access or update user information using the provider's API. * Exposes a set of operations that are common across all service providers, including * ...
Array.pop() : 删除数组的最后一项 Array.push(): 在数组的末尾添加项,例如: colors.push('red', 'blue'); Array.shift(): 删除数组的第一个项 Array.unshift():在数组的起始位置添加项,例如: colors.unshift('red', 'blue'); Array.sort(Function): 给数组排序, 需要一个Function参数, 该方法需要进行比较的2个参数 通过返回值来做排序,例如: var num = [40,10,8,2,5]; num.sort(function (var1, var ...
Spring MVC是通过实现了LocaleResolver的类来识别用户的locale 1. org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver 默认的locale resolver 他是通过提取request.header的'Accept-Language'的值来解析 2. org.springframework.web.servlet.i18n.SessionLocaleResolver Another option of resolving locales is by SessionLocaleResolv ...
Spring的Interceptor(拦截器)是Controller 方法级别的 当某一个Controller的方法进行request处理的时候 可以通过Interceptor进行拦截, 拦截器可以在方法执行之前, 方法执行完以后(返回ModelAndView) 以及执行完整个流程(直到渲染完View) 进行拦截 制作一个Interceptor需要实现org.springframework.web.servlet.HandlerInterceptor接口 他提供3个抽象方法 如下 public boolean preHandle(HttpServletRequest request, Htt ...

HandlerMapping

当客户端发出Request的时候DispatcherServlet会将Request提交给HandlerMapping, 然后HanlerMapping根据Web Application Context的配置来回传给DispatcherServlet相应的Controller. HandlerMapping 1. org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping 默认的HanlerMapping 会根据Controller的Bean Name来进行匹配 例如: <bean class="o ...
在Swt里 按钮的分类 普通按钮(SWT.PUSH) 单选按钮(SWT.RADIO) 多选按钮(SWT.CHECK) 箭头按钮(SWT.ARROW) 切换按钮(SWT.TOGGLE) 按钮的对齐方式样式 SWT.LEFT SWT.RIGH SWT.CENTER 按钮的外观风格的样式 SWT.FLAT SWT.BORDER 普通按钮(SWT.PUSH) 例: 效果图 代码 package me.iace.swt.ch4; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; i ...
在Swt里面 Shell可充当主要窗口的角色 也可充当子窗口或者对话框的角色 如果要建立一个主要窗口的话 应该在构造方法里面添加Display为参数 如果是创建子窗口或者对话框就应该在构造函数里添加父窗口的Shell Shell parent = new Shell(Display display, int style); 建立主窗口 Shell dialog = new Shell(Shell parent, int style); 建立子窗口 以下为Shell的不同样式
If you are using JUnit 4 to create tests with the TestContext framework, you will have two options to access the managed application context. The first option is by implementing the ApplicationContextAware interface. For this option, you have to explicitly specify a Spring-specific test runner for ru ...
Many Java EE application servers build in data source implementations that you can configure from the server console or in configuration files. If you have a data source configured in an application server and exposed for JNDI lookup, you can use JndiObjectFactoryBean to look it up. 很多JAVA EE应用服务器都有内 ...
域模型 public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; // Constructors, Getters and Setters ... } 表 CREATE TABLE VEHICLE ( VEHICLE_NO VARCHAR(10) NOT NULL, COLOR VARCHAR(10), WHEEL INT, SEAT INT, PRIMARY KEY (VEHICLE_NO) ) ...
Global site tag (gtag.js) - Google Analytics