Stella981 Stella981
3年前
Spring AOP
什么是AOPAOP(AspectOrientedProgramming,面向方面编程),它利用一种称为“横切”的技术,剖解开封装的对象内部,并将那些影响了多个类的公共行为封装到一个可重用模块,并将其名为“Aspect”,即方面。所谓“方面”,简单地说,就是将那些与业务无关,却为业务模块所共同调用的逻辑或责任封装起来,便于减少系统的重复代码,降低
Stella981 Stella981
3年前
Spring 回顾 (Spring 扩展之 BeanPostProcessor 接口)
BeanPostProcessor的作用BeanPostProcessor主要用来在bean初始化之后做相应的处理,例如参数的注入等等。BeanPostProcessor接口说明BeanPostProcessor接口存在两个方法,一个在初始化之前被调用,一个在初始化之后被调用。(这里的初始化是指调用了Spring的初始化方法,例如加注
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
Stella981 Stella981
3年前
Spring Boot 2.X整合Spring
计算机领域有人说过一句名言:“计算机科学领域的任何问题都可以通过增加一个中间层来解决”,今天我们就用Springcache给网站添加一层缓存,让你的网站速度飞起来。本文目录一、SpringCache介绍二、缓存注解介绍三、SpringBootCache实战1、pom.xml引入jar包2、启动类添加@EnableCaching注解
Stella981 Stella981
3年前
Spring mvc ,spring ,ibatis 学习记录(2)
下面是关于iBATIS部分的使用的是c3p0的数据库连接池配置文件如下:_<!__连接池___<beanid\"ds1" class\"com.mchange.v2.c3p0.ComboPooledDataSource"\<propertyname\"driverClass"value\"co
Stella981 Stella981
3年前
Spring Boot
!(http://uploadimages.jianshu.io/upload_images/5954965fa4cc6ba169cb9a3.png?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)Profile是什么Profile我也找不出合适的中文来定义,简单来说
Easter79 Easter79
3年前
Spring核心源码
一、常见的初始化方式spring常见的初始化方式有如下几种:1\.main函数里使用ClassPathXmlApplicationContextpublicstaticvoidmain(String\\args){ClassPathXmlApplicationContextclassPathXml
Easter79 Easter79
3年前
Spring采用velicity视图时解决Cannot expose session attr...
Spring采用velicity视图时,使用@SessionAttributes("")注解出现Cannotexposesessionattribute'user'becauseofanexistingmodelobjectofthesamename异常问题错误原因:因为request session默认是不会加入vel
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)