Easter79 Easter79
3年前
springboot集成RocketMQ,三种方式(原生Jar,springboot封装starter,阿里云Ons接入)
写在前面这里介绍下Springboot集成RocketMQ的三种方式一、原生jar(rocketmqclient)1.1、producer1.1.1、三个基本使用producerGroup,定义生产者组DefaultMQ
Wesley13 Wesley13
3年前
java后台接收json数据,报错com.alibaba.fastjson.JSONObject cannot be cast to xxx
  从前台接收json封装的list数据,在后台接收时一直报错,com.alibaba.fastjson.JSONObjectcannotbecasttoxxx,  使用这种方式接收可以接收1@RequestMapping(value"/insertUser",methodRequestMethod.POST)
Stella981 Stella981
3年前
Spring Cloud Gateway 数据库存储路由信息的扩展方案
动态路由背景​无论你在使用Zuul还是SpringCloudGateway的时候,官方文档提供的方案总是基于配置文件配置的方式例如:zuul的配置形式routes:pigauth:path:/auth/serviceId:
Stella981 Stella981
3年前
Django使用redis
方式一,使用Djangoredis模块安装:pip3installdjangoredis!(https://oscimg.oschina.net/oscnet/33166ab87a704022602b77dd9352da19f6a.jpg)!(https://oscimg.oschina.net/
Stella981 Stella981
3年前
IOS开发网络第一天之02NSThread的基本使用
创建子线程的三种方法1.第一种方式,创建线程后必须要开启线程! NSThread \thread\\NSThread alloc\initWithTarget:             self selector:@selector(longTimeOperation) object:nil\;
Caomeinico Caomeinico
3年前
[C语言] 浮点型存储
浮点型存储方式按照IEEE754规定储存浮点型数据includeintmain()intn9;//原码反码补码//00000000000000000000000000001010floatpFloat(float)&n;printf("n%d\n",n);printf("pFloat%f\n",pFloat);
Wesley13 Wesley13
3年前
C#调用mysql,使用带参数mysql语句
最近学习中,尝试使用带参数的mysql语句。sqlserver中参数以@para替换,但是Mysql语句中参数需要以?para替换,不支持@para方式。例如://mysqlstringcmd"selectuserBackImagefromuserswhereuserName?name";      MySql
Wesley13 Wesley13
3年前
PHP友好的时间显示
完全逻辑代码/友好的时间展示@paramint$time时间戳@paramstring$format默认显示格式化方式@returnstring返回时间,错误时返回为空字符串/functiondiy_friend_date($time,
Wesley13 Wesley13
3年前
mysql10.3修改默认存储路径
版本为10.3的用该种方式修改:创建/data/mysql目录mkdirp/data/mysql给这个目录至少要附加读写权限chmod777/data/mysqlr把mariadb服务停掉systemctlstopmariadb把/v
RongCallKit 非源码如何获取 RCCallSession
"描述(来源参考:https://www.rongcloud.cn/?utmsourceSEO&utmtermjishitongxun)使用非源码方式集成CallKit后,希望获取RCCallSession,实现自定义的业务逻辑。分析(根因分析、需求分析)