Stella981 Stella981
3年前
Spring AOP
什么是AOPAOP(AspectOrientedProgramming,面向方面编程),它利用一种称为“横切”的技术,剖解开封装的对象内部,并将那些影响了多个类的公共行为封装到一个可重用模块,并将其名为“Aspect”,即方面。所谓“方面”,简单地说,就是将那些与业务无关,却为业务模块所共同调用的逻辑或责任封装起来,便于减少系统的重复代码,降低
Stella981 Stella981
3年前
Spring 回顾 (Spring 扩展之 BeanPostProcessor 接口)
BeanPostProcessor的作用BeanPostProcessor主要用来在bean初始化之后做相应的处理,例如参数的注入等等。BeanPostProcessor接口说明BeanPostProcessor接口存在两个方法,一个在初始化之前被调用,一个在初始化之后被调用。(这里的初始化是指调用了Spring的初始化方法,例如加注
Wesley13 Wesley13
3年前
spring cloud
添加熔断依赖<dependency<groupIdorg.springframework.cloud</groupId<artifactIdspringcloudstarternetflixhystrix</artifactId</dependencya
Stella981 Stella981
3年前
Spring Boot 之Spring data JPA简介
文章目录添加依赖(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104490203%23_7)添加entitybean(https://www.oschin
Wesley13 Wesley13
3年前
3.7 spring
1.0Property子元素的使用  property子元素是再常用不过的了,在看Spring源码之前,我们先看看它的使用方法,1\.实例类如下:1publicclassAnimal{23publicStringtype;45public
Stella981 Stella981
3年前
Spring Boot 2.X整合Spring
计算机领域有人说过一句名言:“计算机科学领域的任何问题都可以通过增加一个中间层来解决”,今天我们就用Springcache给网站添加一层缓存,让你的网站速度飞起来。本文目录一、SpringCache介绍二、缓存注解介绍三、SpringBootCache实战1、pom.xml引入jar包2、启动类添加@EnableCaching注解
Stella981 Stella981
3年前
Spring Boot
!(http://uploadimages.jianshu.io/upload_images/5954965fa4cc6ba169cb9a3.png?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)Profile是什么Profile我也找不出合适的中文来定义,简单来说
Stella981 Stella981
3年前
Spring @Valid
@Valid基本用法强烈推荐如果要学习@ValidJSR303,建议看这里的API BeanValidation规范(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fcn%2Fjava
Stella981 Stella981
3年前
Spring InitBean
概述初始化过程无非是读取\解析\注册,相信程序员都能实现它,但是要把它变成一个框架性的工具还是需要走很多路的。1.load即资源加载,具体说就是找到合适的工具读取合适的资源(不同的方法读取不同的资源,下一篇有详解)2.parse即资源解析,这里的标准比较多,先是根据读取XML中的关键字“DTD”来
Stella981 Stella981
3年前
Spring Boot
文章目录Springboot配置扫描其它模块路径的方法(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Finthat%2Farticle%2Fdetails%2F108834790%23Springboot_1)