SpringBoot
文章平均质量分 77
记录SpringBoot框架的提升过程
leeindex
Le vent se lève, il faut tenter de vivre. 纵有疾风起,人生不言弃。
展开
-
在 SpringBoot 中从 RestTemplate 过渡到 WebClient (详细指南)
通过实际示例深入探讨 RestTemplate 被弃用的原因、采用 WebClient 的优势以及如何有效过渡翻译 2023-10-25 11:05:01 · 312 阅读 · 0 评论 -
SpringBoot 操作 ElasticSearch 时 RESTful Api Basic 认证
ElasticSearch RESTful Api Basic 认证问题原创 2022-06-01 16:00:20 · 1124 阅读 · 0 评论 -
简单学习Spring属性注入和SpringBoot配置文件
Spring属性的注入Spring 启动时自动加载 application.properties 文件;实际项目开发中,可以自定义配置。简单示例:(将自定义配置进行属性注入)项目 resources 文件夹下新建 book.properties 文件book.id=15book.name=阿里巴巴Java开发手册book.author=孤尽新建一个类 (Book),并定义三个属性 id 、name 、author定义属性的 getter / setter 方法和 toString()原创 2020-05-19 18:38:09 · 190 阅读 · 0 评论 -
如何创建一个SpringBoot项目?(详细的图文教程)
SpringBoot简介SpringBoot 官网地址:https://www.spring.io官网介绍:Spring Boot makes it easy to create stand-alone, production-grade Spring-based Applications that you can run. We take an opinionated view of the Spring platform and third-party libraries, so that y原创 2020-05-15 19:15:55 · 124236 阅读 · 14 评论 -
Spring中 Service和ServiceImpl的选择
Auther: 江湖人称平头哥一般Spring项目中处理业务的层为Service层,称为业务层。目前常见的风格有:写法一: Service层 = Service类举个栗子:① Service类:(自动注入Dao层)@Servicepublic class RoleService { @Autowired RoleMapper roleMapper; publ...原创 2020-01-09 10:18:28 · 19658 阅读 · 3 评论