2018-12-01
Spring Boot缓存之Caffeine

什么是缓存

缓存就是将程序或系统频繁使用的对象保存在内存中,便于使用时可以快速调用,不必再去创建新的重复的实例或者重复调用接口。可以显著减少系统开销,提高系统效率。

阅读此文

2018-11-04
Spring Boot使用jetty作为Servlet容器

SpringBoot默认tomcat作为内置的Servlet容器.spring-boot-starter-web pom.xml文件description有如下描述.

Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container

pom文件中有spring-boot-starter-tomcat依赖,spring-boot-starter-tomcat中又包含了tomcat.但是修改为jetty也十分简单.

阅读此文

2018-05-01
Spring Boot初识

1 What is Spring Boot

Spring Boot 是一个轻量级框架,可以完成 Spring 应用程序的大部分配置工作,能够快速创建可以直接运行的基于 Spring 的应用程序。Spring Boot 的目的是提供一组工具,以便快速构建容易配置的 Spring 应用程序。

阅读此文

2018-05-01
Spring AOP原理

我们知道声明式事务是通过spring 的aop实现的,先看spring aop的实现

Spring aop

注解属性解析

spring能完成AOP的代理,因为Spring有这样的配置

<aop:aspectj-autoproxy />

这一配置使得整个Spring项目拥有了AOP的功能.那么spring如何解析aop配置的呢?

阅读此文