源码学习之Spring容器创建原理
1前言众所周知,Spring可以帮我们管理我们需要的bean。在我们需要用到这些bean的时候,可以很方便的获取到它,然后进行一系列的操作。比如,我们定义一个beanMyTestBean。publicclassMyTes
Easter79 Easter79
4年前
springboot与安全
概念:安全SpringSecurity是针对Spring项目的安全框架,也是SpringBoot底层安全模块默认的技术选型。他可以实现强大的web安全控制。对于安全控制,我们仅需引入springbootstartersecurity模块,进行少量的配置,即可实现强大的安全管理。几个类:    WebSec
Easter79 Easter79
4年前
spring解决循环依赖为什么要用三级缓存?
关注“苏三说技术”,回复:开发手册、时间管理有惊喜。也许有些朋友对spring的循环依赖问题并不了解,让我们先一起看看这个例子。@Service@Service@RequestMapping("/test")@SpringBootApplication我们在运行Ap
Stella981 Stella981
4年前
SpringBoot整合Sqlite数据库流程
1.创建项目  方式一:通过网站https://start.spring.io/  方式二:通过开发工具(IDEA或者Eclipse自行百度)2.修改pom.xml配置文件,添加必要的驱动包<?xmlversion"1.0"encoding"UTF8"?<projectxmlns"ht
Easter79 Easter79
4年前
SpringFramework之RequestBodyAdvice的使用
  Spring版本5.1.4.release.  前一篇(https://my.oschina.net/u/2518341/blog/4329778)讲了RequestBodyAdvice的实现  有人用RequestBodyAdvice来做参数的解密(前端传过来的是加密的),或者使用RequestBodyAdvice进行全局统一返
Easter79 Easter79
4年前
SpringCloud consul 微服务(注册到主机名的问题)
目前项目在使用consul做服务注册与发现,做SpringSecurityOAuth2权限认证的authorization\_code模式的时候发现一个异常坑爹的问题这是开始的服务注册代码块bootstrap.yml:spring:cloud:consul:port:8500
Easter79 Easter79
4年前
SpringBoot2.x搭建Eureka
1说明1.全部配置基于1.8.0_1112.当前SpringBoot使用2.0.52创建项目在SpringBoot项目生成器(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fstart.spring.io%2F)中,输入Grou
Stella981 Stella981
4年前
Spring Cloud Eureka 全解 (2)
本文基于SpringCloudDalston.SR5(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcloud.spring.io%2Fspringcloudstatic%2FDalston.SR5%2F)之前我们看过这个整体流程图:!image(https://note
Easter79 Easter79
4年前
Spring注解@Resource和@Autowired区别对比、spring扫描的默认bean的Id、程序获取spring容器对象
\注解扫面的bean的ID问题0.前提需要明白注解扫描出来的bean的id默认是类名首字母小写,当然可以指定id: