`
elicer
  • 浏览: 130991 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
                               Rest API 设计原则 1.前缀主要有下面几部分组成:   api.domain.subdomain  , sample:http://api.domain.subdomain 2.具体的url是后台domain层次关系的一种展现,比如下面,某个班级的某个学生   sample:http://api.domain.subdomain/classes/{id}/students/{id} 3.一般forward slash(/)后都是名词,已及它们的复数,但某些时候也有可能是动词,比如某些场景我们没法map我们的操作到标准的http ...
1.JMX 简介   JMX(Java Management Extension)是一个为应用程序植入管理功能的框架,是一套标准的代理跟服务 2.应用场景   2.1用来管理应用程序的配置项,可以在运行期动态改变配置项的值,而不用妨碍程序的运行,这对与许多可靠性要求较高的应用来说非常方便。     可以通过jconsole等JMX客户端工具动态改变配置项的值。   2.2用来对应用程序的运行状态进行监控,比如对一个大型交易处理程序,我们要监控当前有多少交易在排队中,每笔交易的处理时间是多少,平均每处理一笔交易要花多少时间等等。 3.实例    http://www.ibm.com/de ...
1.Amoeba简介 Amoeba(变形虫)项目,该开源框架于2008年 开始发布一款 Amoeba for Mysql软件。这个软件致力于MySQL的分布式数据库前端代理层,它主要在应用层访问MySQL的 时候充当SQL路由功能,专注于分布式数据库代理层(Database Proxy)开发。座落与 Client、DB Server(s)之间,对客户端透明。具有负载均衡、高可用性、SQL 过滤、读写分离、可路由相关的到目标数据库、可并发请求多台数据库合并结果。 通过Amoeba你能够完成多数据源的高可用、负载均衡、数据切片的功能。 2.缺点 目前还不支持事 务 暂时不支持存储过程(近期 ...
Reference Url:http://www.ibm.com/developerworks/cn/rational/1312_wanggb_arch/index.html 软件架构分解 对复杂的大规模软件系统,软件架构分解是架构设计中必不可少的关键步骤。通过分解识别架构元素,同时也是解决非功能需求的重要手段之一 ...

teste

<!DOCTYPE html> <html>   <head>        <meta http-equiv="content-type" content="text/html; charset=UTF-8">         <meta charset="utf-8">         <title>Colibri UX responsive layout</title>         <meta name="generator& ...
    转载:http://www.ibm.com/developerworks/cn/web/wa-clientmvc/index.html 几种流行客户端 MVC 框架介绍 15 年前,许多人都使用 Perl 和 ColdFusion 之类的工具构建网站。我们经常编写可以在页面顶部查询数据库的脚本,对数据应用必 ...
背景: 最近在做一个大型网上银行项目前端的优化,需要使用一个胖客户端的优化,大概思路就是前端通过Ajax 请求去后端获取数据,以Jason的格式返回,然后显示在页面上。由于这个系统非常庞大,胖客户端方案难免需要在客 ...
Today we will create a Spring MVC based application that uses Freemarker FTL as view instead of JSP. This would give you a good insight in Spring MVC + Freemarker integration. The application is similar to previous tutorial’s User app, where a list of users will be displayed and also we can add new ...
本人最近遇到一个难题,我们在对spring webflow做了扩展后, 需要在spring context初始化完成后对我们自己的bean做一些init的初始化操作实现方法。   实现思路, 我们想借助于spring context的自己的listener的生命周期方法ContextRefreshedEvent。这个event会在spring context初始化完成之后调用。我们可以在这个方法里调用我们自己的bean的init方法。     实现细节: 自定义一个公共接口 Initilization,所有想要在spring context初始化后被调用的bean都要实现这个接口: ...
Introduction This article provides a simple positive model for preventing XSS using output escaping/encoding properly. While there are a huge number of XSS attack vectors, following a few simple rules can completely defend against this serious attack. This article does not explore the technical o ...
Cross-site Scripting (XSS)   Overview   Cross-Site Scripting attacks are a type of injection problem, in which malicious scripts are injected into the otherwise benign and trusted web sites. Cross-site scripting (XSS) attacks occur when an attacker uses a web application to send malicious code, ...
    Brief Currently there is a vulnerability of some application which is the application can be opened  inside a frame, and the application does not detect whether the application has been loaded in frames, which could lead to an attack by which users are persuaded to perform site actions witho ...
Below regular expression used for validate a user name can only contain letters and digits, and must have at least one letter and one digits. ^.*(?=.{6,10})(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$
定义模板 这个模板很简单,就是定义了一个显示文章的指今,然在的显示最新文章和热门文章的时候调用即可 模板文件源代码: <#macro showNewArticles articles> <#list articles as article> <li> ${article_index+1}. <a target="_blank" href="/article/${article.id }">${article.title }</a> ...
分布式计算开源框架Hadoop入门实践(三)         Hadoop基本流程 一个图片太大了,只好分割成为两部分。根据流程图来说一下具体一个任务执行的情况。 在分布式环境中客户端创建任务 ...
Global site tag (gtag.js) - Google Analytics