随笔分类 -  springboot

摘要:一、引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> 二、配置RabbitMQ 配置项 #rabb 阅读全文
posted @ 2022-06-13 13:46 长弓射大狗 阅读(64) 评论(0) 推荐(0) 编辑
摘要:恢复内容开始 一、 引入maven 依赖包, zookeeper 单独引入 <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-recipes</artifactId> <version>5.0.0</vers 阅读全文
posted @ 2022-05-07 15:53 长弓射大狗 阅读(108) 评论(0) 推荐(0) 编辑
摘要:一、 引入 maven 依赖包, 因为会报有包冲突,所以去掉了slf4j <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.7.0</version> 阅读全文
posted @ 2022-05-06 15:21 长弓射大狗 阅读(23) 评论(0) 推荐(0) 编辑
摘要:redisson 官网: https://redisson.org/ 一、引入 maven 包 <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <ve 阅读全文
posted @ 2022-05-05 16:47 长弓射大狗 阅读(410) 评论(0) 推荐(0) 编辑
摘要:一、 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> 只要添加该starter, Spring 阅读全文
posted @ 2022-01-12 23:37 长弓射大狗 阅读(191) 评论(0) 推荐(0) 编辑
摘要:我们常用的IOC 容器是 ApplicationContext, 她的顶层接口是 BeanFactory, ApplicationContext 对BeanFactory 进行了扩展。 package org.springframework.context; import org.springfra 阅读全文
posted @ 2021-12-30 17:09 长弓射大狗 编辑
摘要:SpringBoot 提供了 @SpringBootTest 注解,用于修饰单元测试用例类; 测试方法依然用 @Test 或 @ParameterizedTest 注解修饰 <!-- Spring Boot 单元测试的依赖 --> <dependency> <groupId>org.springfr 阅读全文
posted @ 2021-12-08 23:31 长弓射大狗 阅读(104) 评论(0) 推荐(0) 编辑
摘要:一段时间备受前后台传参 接参 问题的折磨,记住,忘记,反反复复, 抽时间出来好好梳理记录一下, 以防后面忘了,可以有个地方查询 Post传参 1、 参数为单个字符串,用 @RequestBody ,可以接收 非JSON 格式数据, 传输格式可以为JSON(application/json) TEXT 阅读全文
posted @ 2021-12-02 19:47 长弓射大狗 阅读(2032) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示