2016年10月12日

@Configuration 和 @Bean

摘要: 1. @Bean: 1.1 定义 从定义可以看出,@Bean只能用于注解方法和注解的定义。 1.2 spring文档中对 @Bean的说明 The @Bean annotation is used to indicate that a method instantiates, configures 阅读全文

posted @ 2016-10-12 19:19 shuimx 阅读(6383) 评论(0) 推荐(0)

各种 starter poms (启动器)

摘要: starter包含了搭建项目,快速运行所需的依赖。它是一个依赖关系描述符的集合。当应用需要一种spring的服务时,不需要粘贴拷贝大量的依赖关系描述符。例如想在spring中使用redis,只需要在项目中包含 spring-boot-starter-redis 依赖就可以使用了。 名字有什么含义:所 阅读全文

posted @ 2016-10-12 16:42 shuimx 阅读(868) 评论(0) 推荐(0)

导航