
Spring Boot
文章平均质量分 61
凌冰_
分享知识带给我的快乐!帮助他人就是帮助自己。
希望更多人能关注,来分享我的成果!
希望大家快快乐乐的学习,开开心心的畅游知识的海洋。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot 发生异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
SpringBoot 发生异常org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)原创 2025-07-03 10:32:47 · 219 阅读 · 0 评论 -
SpringBoot 解决配置文件有黄色波浪线
SpringBoot 解决配置文件有黄色波浪线原创 2025-07-03 10:03:30 · 182 阅读 · 0 评论 -
Springboot MyBatis CRUD(XML)
Springboot MyBatis CRUD(XML)原创 2025-07-03 09:56:56 · 515 阅读 · 0 评论 -
Springboot MyBatis 简单CRUD(注解)
Springboot MyBatis 简单CRUD(注解)原创 2025-07-03 09:15:02 · 300 阅读 · 0 评论 -
Springboot MyBatis 数据库连接池
Springboot MyBatis 数据库连接池原创 2025-06-17 11:57:04 · 408 阅读 · 0 评论 -
Springboot MyBatis 快速入门
Springboot MyBatis 快速入门原创 2025-06-16 16:14:57 · 391 阅读 · 0 评论 -
Springboot 解决Mybatis查询日期值为null
Springboot 解决Mybatis查询日期值为null原创 2025-06-17 09:42:01 · 181 阅读 · 0 评论 -
SpringBootWeb 入门
SpringBootWeb 入门原创 2025-06-12 09:59:38 · 613 阅读 · 0 评论 -
SpringBoot 无法将类 com.hlx.myspringboot1.entity.Emp中的构造器, Emp应用到给定类型
SpringBoot 无法将类 com.hlx.myspringboot1.entity.Emp中的构造器, Emp应用到给定类型原创 2025-04-03 11:41:58 · 468 阅读 · 0 评论 -
SpringBoot 运行发生异常:java: 错误: 不支持发行版本 5
SpringBoot 运行发生异常:java: 错误: 不支持发行版本 5原创 2024-12-06 10:07:57 · 680 阅读 · 0 评论 -
IDEA2023 SpringBoot整合Thymeleaf(四)
IDEA2023 SpringBoot整合Thymeleaf(四)原创 2024-11-28 15:55:24 · 1321 阅读 · 0 评论 -
SpringBoot 整合Mybatis时读取部分数据为空或日期为空
SpringBoot 整合Mybatis时读取部分数据为空或日期为空原创 2024-11-22 15:58:51 · 522 阅读 · 0 评论 -
IDEA2023 SpringBoot整合MyBatis(三)
IDEA2023 SpringBoot整合MyBatis(三)原创 2024-11-22 15:14:46 · 868 阅读 · 3 评论 -
SpringBoot 发生异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
SpringBoot 发生异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)原创 2024-11-22 14:55:59 · 320 阅读 · 0 评论 -
IDEA2023 SpringBoot整合Web开发(二)
IDEA2023 SpringBoot整合Web开发(二)原创 2024-11-19 15:55:01 · 1127 阅读 · 0 评论 -
IDEA2023 创建SpringBoot项目(一)
IDEA 创建SpringBoot项目(一)原创 2024-11-19 10:35:25 · 860 阅读 · 0 评论 -
SpringBoot 启动发生异常:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
SpringBoot 启动发生异常:Failed to configure a DataSource: 'url' attribute is not specified and no embedded原创 2024-11-19 10:06:57 · 279 阅读 · 0 评论 -
SpringBoot 注解配置文件自动映射到属性和实体类
配置文件加载方式一 1、Controller上面配置 @PropertySource({"classpath:application.properties"}) 2、增加属性 @Value("${web.images-path}") private String filePath;application.properties文件web.ima...原创 2022-02-22 10:56:07 · 1708 阅读 · 0 评论 -
SpringBoot 打包jar运行web项目文件上传和访问(二)
一、文件上传限制文件的大小和总大小以及打包1、文件上传时配置文件大小,启动类里面配置Demoboot1Application /** * 可以使用配置文件来设置文件的大小 * @return */ @Bean public MultipartConfigElement multipartConfigElement() { MultipartConfigFactory factory = new MultipartConfigFact.原创 2022-01-10 16:01:09 · 1183 阅读 · 0 评论 -
SpringBoot 打包jar发生异常: Failed to execute goal org.apache.maven.plugins:maven-resources
make install 发生异常:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demoboot1: Input length = 1 -> [Help 1]原因:plugins标签里面缺少maven-resources-plugin依赖。解决:添加maven-resources-plu.原创 2022-01-10 14:40:13 · 384 阅读 · 0 评论 -
SpringBoot 文件上传
springboot文件上传 MultipartFile file,源自SpringMVC (1)静态页面放在static目录下(2)直接访问:localhost:8080/upload.html<form enctype="multipart/form-data" method="post" action="/upload"> 文件:<input type="file" name="himg"/><p/> 姓名:<input t.原创 2022-01-07 16:05:04 · 388 阅读 · 0 评论 -
SpringBoot 目录与文件结构的介绍
一、目录说明:src/main/java:存放代码src/main/resource 资源静态文件 static: 存放静态文件,比如 css、js、image, (访问方http://localhost:8080/js/main.js)templates:存放静态页面jsp,html,tpl config:存放配置文件,application.properties resources如:my.js同个文件的加载顺序,静态资源文件 Spring B...原创 2022-01-06 16:18:46 · 1544 阅读 · 1 评论 -
SpringBoot static下的图片无法访问
解决:右键static文件|选择Rebuild 'static',再重启服务效果:http://localhost:8080/images/rose.png原创 2022-01-06 11:22:26 · 1832 阅读 · 0 评论 -
SpringBoot HTTP接口GET请求
HTTP接口get请求,注解使用:1 @RequestMapping:来映射请求,也就是通过它来指定控制器可以处理哪些URL请求2 @PathVariable: 将 URL 中的占位符绑定到控制器的处理方法的参数中,占位符使用{}括起来3 @GetMapping:来映射GET请求,也就是通过它来指定控制器可以处理哪些URL请求4 @RequestParam:接收的参数是来自HTTP请求体或请求url的QueryString中。@RequestParam有三个配置参数:re.原创 2022-01-05 11:16:20 · 6202 阅读 · 1 评论 -
IDEA 搭建springboot2.X
Spring Boot是什么 Spring Boot 是 Pivotal 团队在 Spring 的基础上提供的一套全新的开源框架,其目的是为了简化 Spring 应用的搭建和开发过程。Spring Boot 去除了大量的 XML 配置文件,简化了复杂的依赖管理。 Spring Boot 具有 Spring 一切优秀特性,Spring 能做的事,Spring Boot 都可以做,而且使用更加简单,功能更加丰富,性能更加稳定而健壮。随着近些年来微服务技术的流行,Spring Boo...原创 2022-01-04 15:01:10 · 789 阅读 · 0 评论 -
SpringBoot+Lombok使用
一、开发环境准备和新版SpringBoot2.X.X项目创建https://spring.io/projects/spring-boot单击Spring Initializr 在线编写:https://start.spring.io/生成解压后打开IDEA选择工程:注意: 有些包maven下载慢,等待下载如果失败删除本地仓库spring相关的包,重新执行 mvn install 建议先使用默认的maven仓库,不用更换地址当前项目仓库地址修改...原创 2021-09-08 12:05:26 · 631 阅读 · 1 评论 -
Spring Boot + Dubbox + MyBatis 发生异常:No provider available from registry 127.0.0.1:2181
异常:解决方法1.检查controller层的注解@Reference是不是导的dubbo包2.检查service层有没有添加dubbo提供的service注解原创 2020-07-19 14:58:56 · 679 阅读 · 0 评论 -
SpringBoot2.1.X+Dubbo2.6.0运行发生异常:ApplicationConfig.application == null
原因:application.properties未配置 name解决:#必须指定这个应用名称哦spring.application.name=rtp-provider !原创 2020-06-02 22:56:15 · 667 阅读 · 0 评论 -
SpringBoot2.1.X 整合 ActiveMQ同时支持两种模式(三)
我们用发布订阅模式操作时,点对点的就不起作用:http://localhost:8080/activemq/my/order?msg=oop看到有消息但是没有消费;也就是说,这种发布订阅模式模式操作,无效!如何两个同时都可以?1、在配置文件里面,注释掉 #spring.jms.pub-sub-domain=true2、在启动类中添加 //需要给topic定义独...原创 2019-09-23 13:07:34 · 540 阅读 · 0 评论 -
SpringBoot2.1.X 整合 ActiveMQ发布订阅消息队列(二)
一、订阅模式 生产者产生一条消息message放入一个topic中,该topic已经三个消费者订阅了,那么被放入topic中的这条消息,就会同时被这三个消费者取走(当然他们必须都处于在线状态),并进行“消费”。其实就类似现实生活中的手机接收推送。二、订阅模式的使用场景 发布订阅模式下,当发布者消息量很大时,显然单个订阅者的处理能力是不足的。实际上现实场景中是多个订阅...原创 2019-09-23 12:47:07 · 228 阅读 · 0 评论 -
SpringBoot2.1.X 整合 ActiveMQ点对点消息队列(一)
一、什么是消息队列? 它是分布式应用间交换信息的重要组件。消息队列可驻留在内存或磁盘上, 队列可以存储消息直到它们被应用程序读走。通过消息队列,应用程序可以在不知道彼此位置的情况下独立处理消息,或者在处理消息前不需要等待接收此消息。所以消息队列可以解决应用解耦、异步消息、流量削锋等问题,是实现高性能、高可用、可伸缩和最终一致性架构中不可以或缺的一环。简单的来说,消息队列就是独立于...原创 2019-09-23 11:27:35 · 927 阅读 · 3 评论 -
SpringBoot2.1.X 整合ActiveMQ运行时发生JmsMessagingTemplate注解异常
异常信息:原因: 主要是:Springboot 2.1.X版本与activemq线程池管理包有冲突! 下面线程池管理包在Springboot 2.0.X版本是可以使用! <dependency> <groupId>org.apache.activemq</groupId> ...原创 2019-09-23 10:30:02 · 952 阅读 · 0 评论 -
SpringBoot 操作Spring-Data-JPA 自定义查询(五)
一. 自定义@Query查询:用于查询复杂数据哦!package com.hlx.dao;import java.util.List;import org.springframework.data.jpa.repository.JpaRepository;import org.springframework.data.jpa.repository.JpaSpecificationExe...原创 2018-05-26 17:13:39 · 5125 阅读 · 0 评论 -
SpringBoot2.1.X 整合 RocketMQ4.x
实战操作:1、启动nameser和broker2、添加相应的包 <properties> <!--rocketmq版本--> <rocketmq.version>4.1.0-incubating</rocketmq.version> </properties> ...原创 2019-09-25 11:05:52 · 1095 阅读 · 0 评论 -
SpringBoot2.1.X 多环境配置
可以使用MVN或程序来多环境配置不同环境使用不同配置 例如数据库配置,在开发的时候,我们一般用开发数据库,而在生产环境的时候,我们是用正式的数据;spring boot允许通过命名约定按照一定的格式(application-{profile}.properties)来定义多个配置文件1>配置文件application.properites#spring...原创 2019-09-25 11:40:39 · 303 阅读 · 0 评论 -
SpringBoot2.1.X 响应式编程Reactive Programming(一)
响应式编程是一种新的编程风格,它提供了一种基于事件驱动的方式来处理异步数据流的能力,其特点是允许开发人员构建事件驱动、可扩展性、弹性的响应式系统。 响应式编程遵循观察者设计模式,该模式可以定义为:当一个事物发生状态变化时,其他事物将被相应地通知和更新。 因此,观察者不需要询问事件的变化,而是异步等待事件变化的通知,所以观察者收到通知后就可以处理该事件。 在这个过程中,观察者是...原创 2019-09-25 15:32:36 · 426 阅读 · 0 评论 -
SpringBoot2.1.X 响应式编程WebFlux实战(三)
实战操作:模拟一个CURD 1、WebFlux中,请求和响应不再是WebMVC中的ServletRequest和ServletResponse,而是ServerRequest和ServerResponse 2、加入依赖,如果同时存在spring-boot-starter-webflux,则会优先用spring-boot-starter-web;那必须注释了! <...原创 2019-09-25 15:58:18 · 452 阅读 · 0 评论 -
SpringBoot2.1.X 响应式编程WebFlux客户端WebClient(四)
官网:https://docs.spring.io/spring-boot/docs/2.1.8.BUILD-SNAPSHOT/reference/htmlsingle/#boot-features-webclient WebClient是一个响应式客户端,它提供了RestTemplate的替代方法。它公开了一个功能齐全、流畅的API,并依赖于非阻塞I / O,使其能够比Res...原创 2019-09-25 16:17:14 · 1110 阅读 · 1 评论 -
SpringBoot2.1.X 服务端推送(四)
服务端常用推送技术介绍,如websocket,sse轮询等 1、客户端轮询:ajax定时拉取 2、服务端主动推送:WebSocket (实时) 全双工的,本质上是一个额外的tcp连接,建立和关闭时握手使用http协议,其他数据传输不使用http协议 更加复杂一些,适用于需要进行复杂双向数据通讯的场景...原创 2019-09-25 16:39:19 · 280 阅读 · 1 评论 -
SpringBoot2.1.X 整合Elasticsearch
一、查看 Spring Data官网:http://projects.spring.io/spring-data/ Spring Data 的使命是给各种数据访问提供统一的编程接口,不管是关系型数据库(如MySQL),还是非关系数据库(如Redis),或者类似Elasticsearch这样的索引数据库。从而简化开发人员的代码,提高开发效率。Spring Data Elastics...原创 2019-09-18 17:00:13 · 1583 阅读 · 1 评论