会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浅笑19
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
38
下一页
2022年8月5日
如何解决"Spring Cloud LoadBalancer当前正在使用默认缓存,可以切换到使用咖啡因缓存‘的警告?
摘要: 如何解决spring boot中的 Spring Cloud LoadBalancer is currently working with the default cache. You can switch to using Caffeine cache, by adding it to the c
阅读全文
posted @ 2022-08-05 14:21 浅笑19
阅读(1605)
评论(0)
推荐(0)
2022年7月20日
spring rabbitmq @RabbitListener注解参数详解
摘要: @Queue注解为我们提供了队列相关的一些属性,具体如下: name: 队列的名称; durable: 是否持久化; exclusive: 是否独享、排外的; autoDelete: 是否自动删除; arguments:队列的其他属性参数,有如下可选项,可参看图2的arguments: x-mess
阅读全文
posted @ 2022-07-20 13:52 浅笑19
阅读(6772)
评论(0)
推荐(0)
2022年7月6日
rabbitmq 使用笔记
摘要: rabbitmq 默认路由说明 amq.rabbitmq.trace 说明:firehose的机制是将生产者投递给rabbitmq的消息,rabbitmq投递给消费者的消息按照指定的格式发送到默认的exchange上。这个默认的exchange的名称为amq.rabbitmq.trace,它是一个t
阅读全文
posted @ 2022-07-06 11:08 浅笑19
阅读(63)
评论(0)
推荐(0)
2022年6月14日
javax.websocket 在spring-boot中的使用教程
摘要: 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 添加配置 package org.qx
阅读全文
posted @ 2022-06-14 19:40 浅笑19
阅读(774)
评论(0)
推荐(0)
2022年6月8日
【MongoDB】springboot项目里BigDecimal和Decimal128类型的转换
摘要: 原文出处:https://blog.51cto.com/u_15288542/3030781
阅读全文
posted @ 2022-06-08 16:48 浅笑19
阅读(200)
评论(0)
推荐(0)
基于spring ioc 实现的 策略模式
摘要: 接口 //接口 public interface Shape { void draw(); } 实现 //实现1 @Service public class Rectangle implements Shape { @Override public void draw() { System.out.
阅读全文
posted @ 2022-06-08 16:40 浅笑19
阅读(198)
评论(0)
推荐(0)
Java忽略警告注解大全@SuppressWarnings
摘要: // 忽略全部类型的警告 @SuppressWarnings("all") // 忽略未检查的转化,例如集合没有指定类型的警告 @SuppressWarnings("unchecked") // 忽略未使用的变量的警告 @SuppressWarnings("unused") // 忽略与使用Clos
阅读全文
posted @ 2022-06-08 16:30 浅笑19
阅读(1563)
评论(0)
推荐(0)
spring-boot swagger扫描多个包或模块
摘要: @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) // 详细定制 .apiInfo(apiInfo()).select().apis(RequestHandlerSelectors
阅读全文
posted @ 2022-06-08 16:26 浅笑19
阅读(538)
评论(0)
推荐(0)
spring 或者 java执行JavaScript脚本方式
摘要: 简单示例 public static void test10(){ // 创建JavaScript引擎 ScriptEngine jsEngine = new ScriptEngineManager().getEngineByName("js"); // ScriptEngine jsEngine
阅读全文
posted @ 2022-06-08 16:25 浅笑19
阅读(2416)
评论(0)
推荐(0)
2022年5月31日
spring-data-redis 事务操作
摘要: 方法一: @Autowired private RedisTemplate redisTemplate; /** * 事务方式一 */ @Test void testTransaction(){ //开启事务支持 //记得开启事务支持,但是不知道为何,我已经开启了,结果还是出现“ ERR EXEC
阅读全文
posted @ 2022-05-31 12:10 浅笑19
阅读(294)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
38
下一页
公告