Spring AI接入DeepSeek:构建你的第一个AI应用


在人工智能技术飞速发展的今天,将大语言模型集成到应用程序中已成为许多开发者关注的焦点。Spring AI作为Spring生态系统的一部分,为开发者提供了一套简洁、统一的API来集成各种AI模型。本文将介绍如何使用Spring AI接入DeepSeek,构建您的第一个AI应用。 什么是Spring A

SpringBoot集成MongoDB:从入门到生成实践


1、MongoDB 简介 MongoDB 是一个开源的、面向文档的 NoSQL 数据库,旨在提供高性能、高可用性和易扩展性。它与传统的关系型数据库(如 MySQL)有着根本性的区别。 面向文档(Document-Oriented):数据以 BSON(Binary JSON)文档的形式存储,结构类似于

SpringBoot入门:SpringBoot项目中使用Jasypt加密数据库账号


1、前言 生产环境的配置文件中的各种账户、密码一般都是隐私数据,这些明文的配置容易泄露,不安全,推荐一个加密这些配置的软件jasypt。 Jasypt是一个Java的加密库,可以用来加密数据库、Redis等账号,再也不用担心账号泄密了。 github: https://github.com/ulis

SpringBoot入门:SpringBoot访问html静态页面


最近做一个小功能,一个html单页完成信息展示及操作,前端使用Vue + ElementUI,后端使用springboot提供接口,需要在后端springboot项目中直接访问html页面,这样做比较简单。 1、先写一个springboot基础项目 这里不做介绍,可参考博文:SpringBoot入门

There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp问题解决

Q&A 

SpringBoot集成JSP时遇到如下问题: There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp。 项目结构如下:

SpringBoot入门:开发自定义的Spring-Boot-Starter


1、starter命名规范 spring提供的starter: spring-boot-starter-xxx-x.y.z.jar spring-boot-xxx-autoconfigure-x.y.z.jar 第三方提供的starter: xxx-spring-boot-starter-x.y.z

SpringBoot入门:SpringBoot2+Zookeeper实现分布式配置中心


0、市面上的配置中心产品 说到配置中心,大家应该也了解目前市面上用的较多的配置中心: 百度的Disconf、Spring Cloud Config、携程的Apollo、阿里的Nacos等。 由于Disconf不再维护,以下对Spring Cloud Config、Apollo、Nacos的功能点做的

SpringBoot入门:SpringBoot2整合Elasticsearch7.9.2(RestHighLevelClient)


elasticsearch7.9.2安装及使用可参考博文:Elasticsearch7.9.2+Kibana7.9.2安装使用 现在来介绍下SpringBoot项目中使用Elasticsearch,应该说是集成RestHighLevelClient的使用。 1、引入依赖 <parent> <

SpringBoot入门:SpringBoot2.x自定义启动banner


大家在做springboot项目时,启动项目,控制台都会打印spring的默认的banner: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_|

SpringBoot上传文件:the request was rejected because its size (11601865) exceeds the configured maximum


springboot上传文件时报错: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (116018