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年前
ASP.Net Core 3.1 With Autofac ConfigureServices returning an System.IServiceProvider isn't suppor...
ASP.NetCore3.1WithAutofacConfigureServicesreturninganSystem.IServiceProviderisn'tsupported.前言Autofac在ASP.NetCore3.0以后,集成方式有所调整。在ASP.NetCore2中我们一般是把Startup的Con
Stella981 Stella981
3年前
Django使用redis
方式一,使用Djangoredis模块安装:pip3installdjangoredis!(https://oscimg.oschina.net/oscnet/33166ab87a704022602b77dd9352da19f6a.jpg)!(https://oscimg.oschina.net/
Caomeinico Caomeinico
3年前
[C语言] 浮点型存储
浮点型存储方式按照IEEE754规定储存浮点型数据includeintmain()intn9;//原码反码补码//00000000000000000000000000001010floatpFloat(float)&n;printf("n%d\n",n);printf("pFloat%f\n",pFloat);
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
Stella981 Stella981
3年前
Spring Annotation 启动流程
SpringAnnotation启动流程本文将对Spring注解方式的启动流程进行分析author:huifer(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fhuifer)实例
Wesley13 Wesley13
3年前
mysql server 8.0 以上修改重置密码(亲测有效方案)
mysqlserver8.0以上修改重置密码(亲测有效方案)\mysqld\charactersetserverutf8忘记密码时使用skipgranttables设置协议认证方式(重点啊)default\_authentication\_pluginmysql\_native\_password具体操作流