上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: 当项目中存在多数据源时,就涉及到数据源的动态切换,通过研究,特此记录一下。 1、maven依赖 <!--数据库连接--> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2. 阅读全文
posted @ 2020-01-09 17:23 炫舞风中 阅读(390) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-08 16:04 炫舞风中 阅读(2) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class CorsConfig implements GlobalFilter, Ordered { private static final String ALL = "*"; private static final String MAX_AGE = 阅读全文
posted @ 2020-01-08 15:23 炫舞风中 阅读(1986) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.jianshu.com/p/018c0f083501 阅读全文
posted @ 2020-01-07 17:03 炫舞风中 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.jianshu.com/p/19059060036b session和token的区别: session是空间换时间,而token是时间换空间。session占用空间,但是可以管理过期时间,token管理部了过期时间,但是不占用空间. sessionId失效问题和t 阅读全文
posted @ 2020-01-07 14:32 炫舞风中 阅读(5913) 评论(1) 推荐(2) 编辑
摘要: 转载:https://www.jianshu.com/p/0c64f3c49dd6 为监控配置索引 索引模板用于配置存储从建群收集的监视数据的索引。 你可以通过_template API检索模板: curl -X GET "localhost:9200/_template/.monitoring-* 阅读全文
posted @ 2020-01-07 10:27 炫舞风中 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.jianshu.com/p/9d08c767b33e 在springboot整合spring-security实现简单的登录注销 的基础上进行开发。 1、添加生成验证码的控制器。 (1)、生成验证码 1 /** 2 * 引入 Security 配置属性类 3 */ 阅读全文
posted @ 2020-01-07 09:39 炫舞风中 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.jianshu.com/p/18875c2995f1 1、引入maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-secur 阅读全文
posted @ 2020-01-06 16:38 炫舞风中 阅读(3322) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/secbro/p/12095837.html 在使用Spring框架的项目中,@Value是使用比较频繁的注解之一,它的作用是将配置文件中key对应的值赋值给它标注的属性。在日常使用中我们常用的功能都比较简单,本篇文章系统的带大家来了解一下@Va 阅读全文
posted @ 2019-12-25 12:16 炫舞风中 阅读(2689) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.cnblogs.com/dreamroute/p/4037050.html 《java并发编程实践》中说:一个类在可以被多个线程安全调用时就是线程安全的。 静态变量:线程非安全 静态变量即类变量,位于方法区,为所有对象共享,共享一份内存,一旦静态变量被修改,其他对象 阅读全文
posted @ 2019-12-24 16:27 炫舞风中 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页