上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页
摘要: 前言 在 SpringBoot 中,我们需要使用某个依赖,直接添加一个 starter 即可。 为什么添加了一个 starter 就能生效?这其中就离不来 SpringBoot 的自动装配。 自动装配是 Starter 的基础,也是整个 Spring Boot 的核心,那什么是自动装配呢?简单来说, 阅读全文
posted @ 2021-07-29 13:42 爱吃西瓜的番茄酱 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 多模块管理 在软件开发中,把一个大项目分拆为多个模块是降低软件复杂度的有效方法。 多模块管理简单地理解就是一个 Java 工程项目中不止有一个 pom.xml 文件,会在不同的目录中有多个这样的文件,进而实现 Maven 的多模块管理。 pom 文件编写注意事项 1、父 pom 中的 <packag 阅读全文
posted @ 2021-07-28 17:18 爱吃西瓜的番茄酱 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Spring MVC 简介 Spring Web MVC 是基于 Servlet API 的原始 Web 框架,从一开始就包含在 Spring 框架中。“Spring Web MVC” 的正式名称来自其源模块的名称(Spring -webmvc),但它通常被简称为“Spring MVC”。 与 Sp 阅读全文
posted @ 2021-07-28 09:53 爱吃西瓜的番茄酱 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 方法原型 forEach() 方法用于遍历动态数组中每一个元素并执行特定操作。 这个是 java8 的新特性的应用。 forEach() 方法原型如下: default void forEach(Consumer<? super T> action) { Objects.requireNonNull 阅读全文
posted @ 2021-07-27 18:57 爱吃西瓜的番茄酱 阅读(10317) 评论(0) 推荐(2) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第八篇文章: 前七篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 SpringBoot 官方文档中文版 - 3. 构建你的代码 SpringBoot 官方文档中 阅读全文
posted @ 2021-07-26 10:29 爱吃西瓜的番茄酱 阅读(1725) 评论(0) 推荐(1) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第七篇文章: 前六篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 SpringBoot 官方文档中文版 - 3. 构建你的代码 SpringBoot 官方文档中 阅读全文
posted @ 2021-07-25 09:29 爱吃西瓜的番茄酱 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第六篇文章: 前五篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 SpringBoot 官方文档中文版 - 3. 构建你的代码 SpringBoot 官方文档中 阅读全文
posted @ 2021-07-25 08:55 爱吃西瓜的番茄酱 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第五篇文章: 前四篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 SpringBoot 官方文档中文版 - 3. 构建你的代码 SpringBoot 官方文档中 阅读全文
posted @ 2021-07-25 08:34 爱吃西瓜的番茄酱 阅读(2201) 评论(0) 推荐(0) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第四篇文章: 前三篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 SpringBoot 官方文档中文版 - 3. 构建你的代码 配置类 Spring Boot 阅读全文
posted @ 2021-07-23 16:03 爱吃西瓜的番茄酱 阅读(2543) 评论(1) 推荐(1) 编辑
摘要: 前言 这是 SpringBoot 官方文档中文翻译版系列的第三篇文章: 前两篇文章如下: SpringBoot 官方文档中文版 - 1. 入门指南 SpringBoot 官方文档中文版 - 2. 构建系统 Spring Boot 不需要任何特定的代码布局来工作。然而,有一些最佳实践是有帮助的。 1. 阅读全文
posted @ 2021-07-23 15:37 爱吃西瓜的番茄酱 阅读(2371) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页