Spring
文章平均质量分 81
稳中向好_
专业外包五十年
展开
-
Spring4中的@Profile和@Conditional注解的源码解析
@Profile和@Bean一起使用,决定要不要创建这个bean。先来看一下@Profile的源码:@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Documented@Conditional(ProfileCondition.class)public @inter原创 2018-01-31 10:04:03 · 1087 阅读 · 0 评论 -
spring boot使用spring缓存demo
pom文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.原创 2018-02-08 14:35:47 · 203 阅读 · 0 评论