上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: http://ifeve.com/google-guava/ 阅读全文
posted @ 2018-03-16 14:09 FrankYou 阅读(5407) 评论(0) 推荐(0) 编辑
摘要: Druid是Java语言中最好的数据库连接池。Druid能够提供强大的监控和扩展功能。 https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 阅读全文
posted @ 2018-03-16 11:44 FrankYou 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Spring在第三方依赖包中包含了两个数据源的实现类包,其一是Apache的DBCP,其二是 C3P0。可以在Spring配置文件中利用这两者中任何一个配置数据源。 DBCP数据源 DBCP类包位于 <spring_home></spring_home>/lib/jakarta-commons/co 阅读全文
posted @ 2018-03-15 16:42 FrankYou 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 在基本的 MyBatis 中,session 工厂可以使用 SqlSessionFactoryBuilder 来创建。而在 MyBatis-Spring 中,则使用 SqlSessionFactoryBean 来替代。 Setup 要创建工厂 bean,放置下面的代码在 Spring 的 XML 配 阅读全文
posted @ 2018-03-15 15:17 FrankYou 阅读(10960) 评论(0) 推荐(1) 编辑
摘要: 没有必要在 Spring 的 XML 配置文件中注册所有的映射器。相反,你可以使用一个 MapperScannerConfigurer , 它 将 会 查 找 类 路 径 下 的 映 射 器 并 自 动 将 它 们 创 建 成 MapperFactoryBean。 要创建 MapperScanner 阅读全文
posted @ 2018-03-15 14:30 FrankYou 阅读(4042) 评论(0) 推荐(0) 编辑
摘要: static { try { SIGNATURE = Signature.getInstance("SHA1withRSA", "BC"); } catch (NoSuchAlgorithmException | NoSuchPaddingException | NoSuchProviderException e) { throw Throwabl... 阅读全文
posted @ 2018-03-12 11:48 FrankYou 阅读(13565) 评论(0) 推荐(0) 编辑
摘要: private static final Cipher DES_CIPHER; static { try { DES_CIPHER = Cipher.getInstance("DES/ECB/PKCS1Padding"); } catch (NoSuchAlgorithmException | NoSuchPaddingException e) { ... 阅读全文
posted @ 2018-03-12 11:06 FrankYou 阅读(3750) 评论(1) 推荐(0) 编辑
摘要: 1、单应用单服务器; 2、单应用拆分成多个应用并部署到多个服务器; 3、单应用拆分成多个应用并实现分布式部署; 4、流动计算框架(用于提高机器利用率的资源调度和治理中心)。 阅读全文
posted @ 2018-02-05 18:29 FrankYou 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 作者:微子Lee链接:https://www.jianshu.com/p/2f4cfb6ed048 Dubbo的注册中心有好多种,包括Multicast、Zookeeper、Redis、Simple等。Dubbo官方推荐使用Zookeeper注册中心,我所使用过的也只是Zookeeper注册中心。 阅读全文
posted @ 2018-02-05 12:28 FrankYou 阅读(12018) 评论(0) 推荐(1) 编辑
摘要: 启动时检查 Dubbo缺省会在启动时检查依赖的服务是否可用,不可用时会抛出异常,阻止Spring初始化完成,以便上线时,能及早发现问题,默认check=true。 如果你的Spring容器是懒加载的,或者通过API编程延迟引用服务,请关闭check,否则服务临时不可用时,会抛出异常,拿到null引用 阅读全文
posted @ 2018-02-05 10:31 FrankYou 阅读(7860) 评论(1) 推荐(2) 编辑
摘要: Shell脚本,用来从网站下载指定文件名的文件。先判断本地这个文件是否存在,如果存在则忽略,不存在则从远程服务器上下载,下载成功后本地的批次号累加1,然后使用新的批次号继续下载新文件。 编辑crontab文件以便在指定时间执行调度任务(job) 阅读全文
posted @ 2018-02-05 09:58 FrankYou 阅读(973) 评论(0) 推荐(0) 编辑
摘要: RSACryptoServiceProvider does work with SHA2-based signatures, but you have to invest some effort into it. When you use a certificate to get your RSAC 阅读全文
posted @ 2018-02-02 14:29 FrankYou 阅读(25771) 评论(23) 推荐(0) 编辑
摘要: private static String hexXOR(String hex1, String hex2){ BigInteger i1 = new BigInteger(hex1, 16); BigInteger i2 = new BigInteger(hex2, 16); BigInteger res = i1.xor(i2); return res.t... 阅读全文
posted @ 2018-02-02 10:25 FrankYou 阅读(2509) 评论(0) 推荐(0) 编辑
摘要: private static final Cipher DES_CIPHER; static { try { DES_CIPHER = Cipher.getInstance("DESede/ECB/PKCS5Padding"); } catch (NoSuchAlgorithmException | NoSuchPaddingException e) { ... 阅读全文
posted @ 2018-02-01 14:07 FrankYou 阅读(1761) 评论(0) 推荐(0) 编辑
摘要: DN -- Distinguished Name,证书持有人的唯一标识符。 可以通过下面的openssl命令来打印出证书的DN。 CER证书主题DN为详细信息标签中"使用者"字段内容 阅读全文
posted @ 2018-01-29 16:58 FrankYou 阅读(12246) 评论(0) 推荐(1) 编辑
摘要: nopadding模式下的补位,此例为补空格。 阅读全文
posted @ 2018-01-25 16:18 FrankYou 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: byte[] expBytes = Base64.decodeBase64(exponentElem.getText().trim())); byte[] modBytes = Base64.decodeBase64(modulusElem.getText().trim()); byte[] dBytes = Base64.decodeBase64(dElem.getText().trim())... 阅读全文
posted @ 2018-01-23 12:01 FrankYou 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 1. ftp自动登录批量下载文件。#####从ftp服务器上的/home/data 到 本地的/home/databackup#####!/bin/bashftp -n<<!open 192.168.1.171user guest 123456binarycd /home/datalcd /home 阅读全文
posted @ 2017-12-20 17:33 FrankYou 阅读(23701) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.blogjava.net/fancydeepin/archive/2012/07/12/382933.html 前言: 逛开源社区的时候无意发现的,用了一段时间,觉得还可以,特此推荐一下。 lombok 提供了简单的注解的形式来帮助我们简化消除一些必须有但显得很臃肿的 j 阅读全文
posted @ 2017-12-18 17:46 FrankYou 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 一段对16进制字符串进行异或的代码。 阅读全文
posted @ 2017-12-04 14:38 FrankYou 阅读(3236) 评论(0) 推荐(0) 编辑
摘要: 一个封装的使用Apache HttpClient进行Http请求(GET、POST、PUT等)的类。 阅读全文
posted @ 2017-12-01 15:12 FrankYou 阅读(3803) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/650455/c-sharp-parameterized-query-mysql-with-in-clausehttps://stackoverflow.com/questions/773641/mysql-parameteri 阅读全文
posted @ 2017-12-01 10:47 FrankYou 阅读(2740) 评论(0) 推荐(0) 编辑
摘要: PKCS(Public Key Cryptography Standards) PKCS12:定义了包含私钥与公钥证书(public key certificate)的文件格式。私钥采密码(password)保护。常见的PFX就履行了PKCS#12。 X509(PEM格式的)转PFX格式: open 阅读全文
posted @ 2017-09-25 12:20 FrankYou 阅读(3780) 评论(0) 推荐(0) 编辑
摘要: cer后缀的证书文件有两种编码-->DER二进制编码或者BASE64编码(也就是.pem) p7b一般是证书链,里面包括1到多个证书 pfx是指以pkcs#12格式存储的证书和相应私钥。 在Security编程中,有几种典型的密码交换信息文件格式: DER-encoded certificate: 阅读全文
posted @ 2017-09-15 17:04 FrankYou 阅读(4831) 评论(0) 推荐(0) 编辑
摘要: 1、通过 HTTPS 发送 POST 请求; 2、HTTPS 安全协议采用 TLSv1.2; 3、 使用代理(Proxy)进行 HTTPS 访问; 4、指定 Content-Type 为:application/x-www-form-urlencoded; 5、HTTPS 请求时加载客户端证书(Cl 阅读全文
posted @ 2017-09-14 18:49 FrankYou 阅读(7116) 评论(2) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页