摘要: db.createUser({ user : "a", pwd : "1", roles : [ { role: "readWrite", db: "bos-log" } ]}) 阅读全文
posted @ 2017-06-26 19:32 kingsy.lin 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 安装elasticsearch 2.4.5 安装head控件 bin/plugin install mobz/elasticsearch-head 安装分词语法(https://github.com/medcl/elasticsearch-analysis-ik)wget -O plugins/an 阅读全文
posted @ 2017-06-21 14:15 kingsy.lin 阅读(345) 评论(0) 推荐(0) 编辑
摘要: String pathname = Test3.class.getResource("/client.jks").getFile(); System.out.println(pathname); SSLContext sslContext = SSLContexts.custom() .loadTr 阅读全文
posted @ 2017-05-14 16:30 kingsy.lin 阅读(410) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/RO_wsy/article/details/51319963 阅读全文
posted @ 2017-05-14 16:10 kingsy.lin 阅读(204) 评论(0) 推荐(0) 编辑
摘要: OpenSSL 1.0.0生成p12、jks、crt等格式证书的命令个过程 此生成的证书可用于浏览器、java、tomcat、c++等。在此备忘! 1.创建根证私钥命令:openssl genrsa -out root-key.key 1024 2.创建根证书请求文件 命令:openssl req 阅读全文
posted @ 2017-05-14 12:37 kingsy.lin 阅读(3905) 评论(0) 推荐(0) 编辑
摘要: http://lib.csdn.net/article/57/37915?knId=1549 阅读全文
posted @ 2017-03-31 09:04 kingsy.lin 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: 定义配置器 配置 阅读全文
posted @ 2017-03-28 17:37 kingsy.lin 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 定义过滤器 security配置 阅读全文
posted @ 2017-03-28 17:09 kingsy.lin 阅读(3764) 评论(0) 推荐(0) 编辑
摘要: @Configuration public static class WebSecurityConfigurer extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { ... 阅读全文
posted @ 2017-03-28 16:40 kingsy.lin 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 配置pom 或 注:如果使用 spring-session-data-redis 依赖方式,不需要加入@EnableRedisHttpSession 配置applicaton.yml 阅读全文
posted @ 2017-03-28 10:48 kingsy.lin 阅读(603) 评论(0) 推荐(0) 编辑