摘要: 1. 创建项目 需要已在本地安装好了 Gradle,并配置环境变量 1.1 新建项目 创建 spring boot 项目 Type 选择 Gradle Project 添加 web mvc 依赖 finish 创建完成 整个创建过程中,没法选择本地的 Gradle,所以要在项目创建完成后手动选择 1 阅读全文
posted @ 2020-07-19 13:37 Soulballad 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1. 安装前检查 Gradle 依赖 JDK, 检查 JDK 是否已经安装 2. 安装 Gradle 2.1 下载 Gradle https://gradle.org/releases/ https://services.gradle.org/distributions/ 2.2 设置 Gradle 阅读全文
posted @ 2020-07-19 13:35 Soulballad 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1. 项目自动化的好处 防止手动介入 创建可重复的构建 让构建便携 2. 项目自动化的类型 按需构建:开发人员在自己的机器上触发构建 触发构建:代码提交到版本控制系统时触发构建 预定构建:通过定时任务进行构建 3. 构建工具 3.1 构建工具的组成 构建文件+构建的输入输出+构建引擎+依赖管理器 构 阅读全文
posted @ 2020-07-19 13:34 Soulballad 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The banner that is printed on start up can be changed by adding a banner.txt file to your classpath or by setting the spring.banner.locati 阅读全文
posted @ 2020-07-13 19:57 Soulballad 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 Spring Profiles provide a way to segregate parts of your application configuration and make it be available only in certain environments. 阅读全文
posted @ 2020-07-12 22:45 Soulballad 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The method validation feature supported by Bean Validation 1.1 is automatically enabled as long as a JSR-303 implementation (such as Hiber 阅读全文
posted @ 2020-07-12 20:56 Soulballad 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The Spring portfolio provides two parallel stacks. One is based on a Servlet API with Spring MVC and Spring Data constructs. The other is 阅读全文
posted @ 2020-07-12 18:47 Soulballad 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 Annotation for externalized configuration. Add this to a class definition or a @Bean method in a @Configuration class if you want to bind 阅读全文
posted @ 2020-07-11 22:24 Soulballad 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionate 阅读全文
posted @ 2020-07-10 22:34 Soulballad 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1. ognl获取bean SpringContextUtil,通常代码中会有类似这样的工具类用来获取 bean 实例 @Component public class SpringContextUtil implements ApplicationContextAware { private sta 阅读全文
posted @ 2020-05-19 17:00 Soulballad 阅读(952) 评论(0) 推荐(0) 编辑