06 2015 档案

摘要:http://blog.csdn.net/john_cdy/article/details/7738393 阅读全文
posted @ 2015-06-22 12:05 samu 阅读(217) 评论(0) 推荐(0) 编辑
摘要:http://www.infoq.com/cn/articles/WebScan-CI一. 当前Web应用安全现状随着中国互联网金融的爆发和繁荣,Web应用在其中扮演的地位也越来越重要,比如Web支付系统、Web P2P系统、Web货币系统等。对于这些金融系统来讲,安全的重要性是不言而喻的, 一旦黑... 阅读全文
posted @ 2015-06-22 11:46 samu 阅读(310) 评论(0) 推荐(0) 编辑
摘要:If your application is usingSpringthen it is easier to use the Spring Framework'sRetryTemplate.The example below shows how you can use aRetryTemplatet... 阅读全文
posted @ 2015-06-18 15:08 samu 阅读(272) 评论(0) 推荐(0) 编辑
摘要:There are many cases in which you may wish to retry an operation a certain number of times. Examples are database failures, network communication fail... 阅读全文
posted @ 2015-06-18 15:07 samu 阅读(395) 评论(0) 推荐(0) 编辑
摘要:1. Basic validate on bean's attribute.@Notnull@Max@Min@Pattern...2. Validate by logic1) password repeat if same (server validate/client validate) ... 阅读全文
posted @ 2015-06-16 17:09 samu 阅读(231) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2015-06-15 19:32 samu 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2015-06-15 17:40 samu 阅读(1) 评论(0) 推荐(0) 编辑
摘要:spring.security提供了一种身份认证框架,开发者可以在这个框架中实现各种方式的用户身份管理,比如:LDAP、MYSQL、OAUTH、Mongo等等。spring.security认证步骤:1、配置类WebSecurityConfigurerAdapter 该类中通过configure ... 阅读全文
posted @ 2015-06-15 13:43 samu 阅读(2330) 评论(0) 推荐(0) 编辑
摘要:// Accumulate names into a List List list = people.stream().map(Person::getName).collect(Collectors.toList()); // Accumulate names into a... 阅读全文
posted @ 2015-06-15 12:12 samu 阅读(485) 评论(0) 推荐(0) 编辑
摘要:Collection.stream() / parallelStream()1. Stream1)Filter stringCollection .stream().filter((s) -> s.startsWith("a")) .forEach(System.out::println);2)So... 阅读全文
posted @ 2015-06-15 12:03 samu 阅读(314) 评论(0) 推荐(0) 编辑
摘要:Read / Write Excel file in Java using Apache POI2014-04-18BYDINESHLEAVE A COMMENTAbout a year or two ago I was working with finance team where they wa... 阅读全文
posted @ 2015-06-09 19:43 samu 阅读(354) 评论(0) 推荐(0) 编辑
摘要:package demo.future; import java.util.ArrayList;import java.util.List;import java.util.concurrent.*; /** * 试验 Java 的 Future 用法 */public class FutureTe... 阅读全文
posted @ 2015-06-09 13:03 samu 阅读(697) 评论(0) 推荐(0) 编辑
摘要:Nginx的反向代理通常用来映射内网中提供的Apache、IIS、Lighttpd服务,以实现负载均衡;同时,由于动态服务程序运行在内网,服务器的整体安全性也有所提高,那么怎样用nginx设置SSL的反向代理呢?使用nginx设置SSL的优点不少:易用性:nginx安装、升级简单,nginx的平滑升... 阅读全文
posted @ 2015-06-09 12:47 samu 阅读(1014) 评论(0) 推荐(0) 编辑
摘要:引言: 在JQuery的Ajax POST请求中,进行请求,其中的中文在后台,显示为乱码,该如何解决呢?问题的引入: var regid = $('#oregion').combobox('getValue'); //var sname = $('#sname').val(); var sname ... 阅读全文
posted @ 2015-06-09 12:38 samu 阅读(330) 评论(1) 推荐(0) 编辑
摘要:https://www.prestashop.com/en/system-requirements 阅读全文
posted @ 2015-06-08 20:50 samu 阅读(110) 评论(0) 推荐(0) 编辑
摘要:http://www.kuqin.com/shuoit/20140615/340573.html1SSL单向认证概念 当客户端(服务请求方)向服务端(服务提供方)发起请求时,服务器端需要向客户端提供认证。服务端需要生成一个keystore和一个服务器密钥对儿(公钥和私钥),客户端需要生成一个tru... 阅读全文
posted @ 2015-06-08 11:05 samu 阅读(253) 评论(0) 推荐(0) 编辑
摘要:http://docs.alfresco.com/community/tasks/imagemagick-config.html 阅读全文
posted @ 2015-06-05 15:51 samu 阅读(144) 评论(0) 推荐(0) 编辑
摘要:VNC全称是Virtual Network Computing,属于远程控制类软件。其优点是支持跨操作系统的远程图形化控制。在日常工作中,服务器常常是存在机房,不可能每次需要图形界面操作就跑到机房,因此vnc是一款不错的替代软件。1、查看本机是否已经安装vncserver# rpm -qa|grep... 阅读全文
posted @ 2015-06-05 12:48 samu 阅读(235) 评论(0) 推荐(0) 编辑
摘要:实验环境:mac 操作系统: OS X 10.9.4 Mavericksmac IP 192.168.1.106XQuartz: 2.6.7虚拟机版本: VirtualBox 4.3.12虚拟机IP: 192.168.1.112虚... 阅读全文
posted @ 2015-06-05 10:03 samu 阅读(1473) 评论(0) 推荐(0) 编辑
摘要:1. 启动launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist2. 关闭launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist经过试验,发现只... 阅读全文
posted @ 2015-06-03 18:46 samu 阅读(613) 评论(0) 推荐(0) 编辑
摘要:1. PicEdithttp://www.jqueryrain.com/?tlxC27l92. jQuery PictureCuthttp://www.jqueryrain.com/?jKrB7Iva3. many plugins herehttp://jqueryhouse.com/jquery-... 阅读全文
posted @ 2015-06-02 20:21 samu 阅读(162) 评论(0) 推荐(0) 编辑
摘要:User is an administrator User is a manager User is some other thing Hello! Something elsewrong: 阅读全文
posted @ 2015-06-02 18:39 samu 阅读(439) 评论(0) 推荐(0) 编辑
摘要:1. 执行类public class BooleanConverter implements AttributeConverter {}2. 属性注解@Column(name = "VALID")@Convert(converter = BooleanConverter.class) 阅读全文
posted @ 2015-06-02 14:22 samu 阅读(611) 评论(0) 推荐(0) 编辑
摘要:http://www.ibm.com/developerworks/cn/java/j-lo-beanvalid/index.html 阅读全文
posted @ 2015-06-02 13:11 samu 阅读(164) 评论(0) 推荐(0) 编辑
摘要:http://yui.github.io/yuicompressor/ 阅读全文
posted @ 2015-06-02 10:08 samu 阅读(124) 评论(0) 推荐(0) 编辑
摘要:How to Supercharge Google Maps How to Supercharge Google Maps 阅读全文
posted @ 2015-06-01 18:16 samu 阅读(270) 评论(0) 推荐(0) 编辑
摘要:@Data@Embeddable@NoArgsConstructor @AllArgsConstructor@JsonNaming(value = LowerCaseWithUnderscoresStrategy.class)public class AccountHolder { @... 阅读全文
posted @ 2015-06-01 15:50 samu 阅读(316) 评论(0) 推荐(0) 编辑
摘要:public static ConfigurableApplicationContext context = null; public static void main( String[] args ) throws Exception { //1. start ... 阅读全文
posted @ 2015-06-01 13:53 samu 阅读(2518) 评论(0) 推荐(0) 编辑
摘要:import java.io.File;import javax.servlet.Servlet;import lombok.extern.slf4j.Slf4j;import org.springframework.boot.autoconfigure.AutoConfigureAfter;imp... 阅读全文
posted @ 2015-06-01 13:37 samu 阅读(7114) 评论(0) 推荐(0) 编辑