标签

 spring boot 

相关的文章:

本列表汇集了关于 Spring Boot 的实用教程,涵盖从用户认证、项目部署到版本更新的各个方面,帮助开发者提升技能与效率。

如何驯服一只狂野的AI来回答银行问题而不编造内容:一个Spring Boot与OpenAI的故事

Banking info should be easier to find than car keys on a Monday morning. Sadly, it isn’t. So we built a chatbot to fix that. A behind-the-scenes look at designing an AI-driven chatbot for the...

本文介绍了一个基于AI的银行聊天机器人项目,旨在提高信息获取效率。通过使用Azure OpenAI和Spring Boot,开发者创建了一个安全、快速的聊天接口,有效解决了数据安全和API延迟问题。该项目显著提升了内部查询响应速度,节省了员工的查找时间,展示了企业级AI在金融行业的应用潜力。

如何驯服一只狂野的AI来回答银行问题而不编造内容:一个Spring Boot与OpenAI的故事
原文英文,约800词,阅读约需3分钟。发表于:
阅读原文

开发Spring Boot应用程序的依赖

1.Spring Web- The spring-boot-starter-web dependency in Spring Boot facilitates the development of web applications, including RESTful APIs and traditional web applications using Spring MVC. By...

Spring Boot通过spring-boot-starter-web依赖简化Web应用开发,自动配置组件。DevTools支持代码自动重编译,减少开发时间。Thymeleaf是现代Java模板引擎,支持动态内容嵌入,促进逻辑与表现层分离。Lombok库减少样板代码,自动生成常用方法,提高代码可读性。

开发Spring Boot应用程序的依赖
原文英文,约300词,阅读约需1分钟。发表于:
阅读原文

基于城市的天气显示应用程序,使用Spring Boot和REST API

Weather display based on the city we are giving in the text field using springboot and Rest API https://openweathermap.org/ Have to sign up(create one account get api) in the website:...

本文介绍了如何使用Spring Boot和REST API创建城市天气显示应用。首先,在OpenWeatherMap注册并获取API密钥。然后,创建Spring Starter项目,添加依赖,设置模型、服务和控制器类。通过RestTemplate获取天气数据的JSON格式,并使用Thymeleaf在前端展示。

基于城市的天气显示应用程序,使用Spring Boot和REST API
原文英文,约600词,阅读约需2分钟。发表于:
阅读原文

Spring新闻汇总:Spring Boot、Data、Security、Auth、Session、Integration和Web Services的候选版本

There was a flurry of activity in the Spring ecosystem during the week of April 21st, 2025, highlighting first release candidates of Spring Boot, Spring Data, Spring Security, Spring Authorization...

2025年4月21日,Spring生态系统发布了多个版本,包括Spring Boot 3.5.0候选版,修复漏洞并增加新特性。同时,Spring Data 2025.0.0和Spring Security 6.5.0也发布了候选版,包含文档改进和依赖升级。其他项目如Spring Session和Spring Integration也有新版本推出。

Spring新闻汇总:Spring Boot、Data、Security、Auth、Session、Integration和Web Services的候选版本
原文英文,约1100词,阅读约需4分钟。发表于:
阅读原文

掌握Spring Boot中的依赖注入:真实案例与最佳实践

Table of Contents What is Dependency Injection (DI)? How Dependency Injection Works in Spring Boot Types of Dependency Injection 3.1 Constructor Injection 3.2 Setter Injection 3.3 Field...

依赖注入(DI)是指由框架自动管理和注入依赖,而非手动构建。Spring Boot通过扫描代码,创建并注入标注类,实现松耦合和灵活配置。主要有构造器注入、设置器注入和字段注入。DI在支付网关切换、单元测试和数据库支持等场景中表现优异。遵循良好的项目结构和规则,有助于实现清晰的依赖注入。

掌握Spring Boot中的依赖注入:真实案例与最佳实践
原文英文,约900词,阅读约需3分钟。发表于:
阅读原文
发表于:
阅读原文

在Spring Boot中实现JWT认证

What is JWT? JSON Web Token (JWT) is a compact, URL-safe token format used for securely transmitting information between parties as a JSON object. JWTs are commonly used for authentication and...

JWT(JSON Web Token)是一种用于安全传输信息的紧凑格式,广泛应用于Web应用的身份验证和授权。它由头部、负载和签名三部分组成,具有无状态特性,服务器无需存储会话信息。通过Spring Boot实现JWT认证,需要添加依赖、创建工具类、过滤器和安全配置,以支持安全的API访问。

在Spring Boot中实现JWT认证
原文英文,约800词,阅读约需3分钟。发表于:
阅读原文

在Spring Boot中实现JWT认证

What is JWT? JSON Web Token (JWT) is a compact, URL-safe token format used for securely transmitting information between parties as a JSON object. JWTs are commonly used for authentication and...

JWT(JSON Web Token)是一种用于安全传输信息的令牌格式,常用于Web应用的身份验证和授权。它由头部、有效载荷和签名三部分组成,具有无状态特性,服务器无需存储会话信息。使用Spring Boot实现JWT认证需要添加依赖、创建工具类、过滤器和安全配置,以确保API访问的安全性。

在Spring Boot中实现JWT认证
原文英文,约800词,阅读约需3分钟。发表于:
阅读原文

我如何优化Spring Boot应用程序以处理每秒100万请求🚀

Reading on Medium Link Dear Folks, Your 50 claps 👏👏 help the discussion reach more developers 👀 on Medium, and your comments 💬 make me to keep writing. Discover the exact techniques I used to...

本文介绍了如何将Spring Boot应用程序的请求处理能力从每秒5万提升至120万。通过识别瓶颈、采用响应式编程、优化数据库查询和配置,平均响应时间降至85毫秒。关键在于测量、优化和合理扩展,以确保系统在高负载下的稳定性。

我如何优化Spring Boot应用程序以处理每秒100万请求🚀
原文英文,约1600词,阅读约需6分钟。发表于:
阅读原文

使用Spotless和Git预提交钩子的Spring Boot

This guide walks you through setting up automated code formatting and pre-commit checks in a Spring Boot Maven project, ensuring consistent code style across your team. Table of...

本文介绍如何在Spring Boot Maven项目中设置自动代码格式化和预提交检查,以确保团队代码风格一致。主要步骤包括创建项目、配置Spotless插件、安装Git钩子和添加Git提交ID插件,从而提升项目的可读性和可维护性。

使用Spotless和Git预提交钩子的Spring Boot
原文英文,约900词,阅读约需4分钟。发表于:
阅读原文