Easter79 Easter79
3年前
spring源码分析
   在spring源码中,在很多地方都会出现PropertyEditor,那么属性编辑器用来干什么的呢?属性编辑器主要应用在以下两个方面:使用PropertyEditors设置Bean属性。当你在XML文件中声明的bean的属性类型为java.lang.String时,Spring将在容器初始化该bean时使用ClassEditor将Str
Stella981 Stella981
3年前
Spring Boot 2 (十):Spring Boot 中的响应式编程和 WebFlux 入门
Spring5.0中发布了重量级组件Webflux,拉起了响应式编程的规模使用序幕。WebFlux使用的场景是异步非阻塞的,使用Webflux作为系统解决方案,在大多数场景下可以提高系统吞吐量。SpringBoot2.0是基于Spring5构建而成,因此SpringBoot2.X将自动继承了Webflux组件,本篇给大家
Wesley13 Wesley13
3年前
Java缓存Ehcache
需要在Spring配置文件中配置:<!配置缓存管理器工厂<beanid"cacheManager"class"org.springframework.cache.ehcache.EhCacheManagerFactoryBean"<propertyname"co
Stella981 Stella981
3年前
Quartz结合SPRING多任务定时调用
public class QuartzJob {      public void work()      {              System.out.println(Spring Quartz的任务调度1被调用!");              //定时调用的业务逻辑      }
Easter79 Easter79
3年前
SSM(SpringMVC+Spring+Mybatis)框架学习理解
近期做到的项目中,用到的框架是SSM(SpringMVCSpringMybatis)。之前比较常见的是SSH。用到了自然得了解各部分的分工springmvc是spring处理web层请求的一个模块,springmvc需要有spring的架包作为支撑才能跑起来。(也有看到一些博客有提到springboot,springboot就是一个大框架
Stella981 Stella981
3年前
SpringAnnotation注解之@Autowired
@Autowired:自动装配,不用在bean里写<property属性来指定所依赖的属性1234@AutowiredpublicvoidsetUserDao(UserDaouserDao){this.userDaouserDao;}Autowired:表示spring
Easter79 Easter79
3年前
SpringBoot介绍
一、SpringBoot的特点1.为基于Spring的开发提供更快的入门体验。2.创建可以独立运行的Spring应用。3.直接潜入Tomcat或Jetty服务器,不需要打包成war文件。4.提供推荐的基础pom文件(starter)来简化ApacheMaven配置。5.尽可能的根据项目依赖来自动配置Spr
Easter79 Easter79
3年前
Spring的事务传播行为
先举一个Spring的嵌套例子ServiceA {    void methodA() {        ServiceB.methodB();    }}ServiceB {    void methodB();}事务传播属性可以在@Trans
Stella981 Stella981
3年前
More than one fragment with the name [spring_web] was found. This is not legal ...
 今天在搭建springweb应用环境的时候启动tomcat报错Morethanonefragmentwiththename\spring\_web\wasfound.Thisisnotlegal...···Causedby:java.lang.IllegalArgumentException:Mo
Stella981 Stella981
3年前
Redis在SSM框架的使用(三)
Spring整合springdataredis1、springredis.xml<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.springframework.org/schema/beans"xmlns:xsi"http