上一页 1 2 3 4 5 6 ··· 17 下一页

2023年6月18日

vue 路由懒加载

摘要: VUE路由的懒加载,官网是这样说明的: 当打包构建应用时,JavaScript 包会变得非常大,影响页面加载。如果我们能把不同路由对应的组件分割成不同的代码块,然后当路由被访问的时候才加载对应组件,这样就会更加高效。 Vue Router 支持开箱即用的动态导入,这意味着你可以用动态导入代替静态导入 阅读全文

posted @ 2023-06-18 16:15 白衣风云 阅读(7) 评论(0) 推荐(0) 编辑

2023年6月8日

celery起动警告

摘要: celery起动报下列警告 [2023-06-08 01:07:11,671: WARNING/MainProcess] D:\program\ANACONDA3\envs\medical\lib\site-packages\celery\worker\consumer\consumer.py:49 阅读全文

posted @ 2023-06-08 22:20 白衣风云 阅读(1670) 评论(0) 推荐(0) 编辑

2023年6月1日

postgresql 的 idle_session_timeout 与连接池的 max-ide-time参数

摘要: 看下面的异常: 下面的错误说:terminating connection due to idle-session timeout 下面的这个错误说:Caused by: reactor.pool.PoolShutdownException: Pool has been shut down reac 阅读全文

posted @ 2023-06-01 11:18 白衣风云 阅读(916) 评论(0) 推荐(0) 编辑

2023年4月16日

webFlux 获取上传文件的附带参数

摘要: 前端上传文件 uploadFilePromise(url) { return new Promise((resolve, reject) => { let a = uni.uploadFile({ url: base.baseUrl + uploadHemogram.concat(this.pati 阅读全文

posted @ 2023-04-16 13:18 白衣风云 阅读(134) 评论(0) 推荐(0) 编辑

2023年4月11日

idea警告Possibly blocking call in non-blocking context could lead to thread starvation

摘要: 看下列代码 这个警告的说在非阻塞上下文中阻塞调用可能会导致线程饥饿 解决方法: private Mono<Path> createTempFile(String name) { String prefix = name +"_"; return Mono.defer(() -> { Path dir 阅读全文

posted @ 2023-04-11 04:49 白衣风云 阅读(1923) 评论(0) 推荐(0) 编辑

2023年2月18日

reactor rabbitmq 实现RPC远程调用

摘要: 照着官方文档上写,最后发现在消费端怎么也返回不了数据。在文档中也找不到怎么返回数据,查看官方demo也没有案例,各种搜索都找不到。 最后在源码中发现有一个RpcServer类,经过一通研究终于跑通了,真是不容易,消费端代码如下: 第一步:定义一个类继承RpcServer,重写父类的handleCal 阅读全文

posted @ 2023-02-18 15:02 白衣风云 阅读(86) 评论(0) 推荐(0) 编辑

rabbitmq消息丢失

摘要: 发送消息后,队列中没有显示 最后发现只能在flatMap中创建和关闭RpcClient。 public Mono<ServerResponse> addCart(ServerRequest request){ AtomicReference<Cart> temp = new AtomicRefere 阅读全文

posted @ 2023-02-18 09:24 白衣风云 阅读(12) 评论(0) 推荐(0) 编辑

2023年2月6日

webFlux route 下path与post优先级

摘要: @Bean public RouterFunction<ServerResponse> doctorRoutes(DoctorHandler handler) { return RouterFunctions.route() .POST("/doctors/cart",accept(MediaTyp 阅读全文

posted @ 2023-02-06 03:35 白衣风云 阅读(23) 评论(0) 推荐(0) 编辑

2023年1月25日

Ubuntu下安装RabbitMQ

摘要: 设置Erlang仓库 curl -1sLf \ 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.deb.sh' \ | sudo -E bash 设置rabbitmq仓库 curl -1sLf \ 'https://dl 阅读全文

posted @ 2023-01-25 20:25 白衣风云 阅读(384) 评论(0) 推荐(0) 编辑

2023年1月19日

webFlux routers 嵌套路由解析规则

摘要: 有下列路由 public RouterFunction<ServerResponse> doctorRoutes(DoctorHandler handler) { return RouterFunctions.route() .path("/doctors",b1 -> b1 .POST( hand 阅读全文

posted @ 2023-01-19 02:26 白衣风云 阅读(65) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 17 下一页

导航