Easter79 Easter79
4年前
springboot集成RocketMQ,三种方式(原生Jar,springboot封装starter,阿里云Ons接入)
写在前面这里介绍下Springboot集成RocketMQ的三种方式一、原生jar(rocketmqclient)1.1、producer1.1.1、三个基本使用producerGroup,定义生产者组DefaultMQ
Easter79 Easter79
4年前
ssh配置免密码登录
生成公钥命令sshkeygen可在机器上生成公钥和相关文件,等待输入的时候可以直接回车使用默认配置admin@iZ280626x93Z~$sshkeygenGeneratingpublic/privatersakeypair.Enterfileinwhichtosave
Stella981 Stella981
4年前
React:react
使用react构建单页面应用:  实现方法:(1)reactrouter       (2)reactrouterdomreactrouter:实现了路由的核心功能,而reactrouterdom依赖reactrouter,reactrouterdom:基于reactrouter,加入了在浏览器运行环境下的
Stella981 Stella981
4年前
MyBatis where标签语句
当 where 中的条件使用的 if 标签较多时,这样的组合可能会导致错误。当 java 代码按如下方法调用时:@Testpublicvoidselect_test_where(){UserusernewUser();user.setUsername(null);
Wesley13 Wesley13
4年前
mySql版本的相关问题:com.mysql.cj.jdbc.Driver和com.mysql.jdbc.Driver
Mysql版本的相关问题:com.mysql.cj.jdbc.Driver和com.mysql.jdbc.Driver1.在使用mysql时,控制台日志报错如下:Loadingclasscom.mysql.jdbc.Driver'.Thisisdeprecated.Thenewdriverclassis
Stella981 Stella981
4年前
Docker镜像制作
  使用docker原始源为centos制作一个nginx镜像  pull一个centos镜像dockerpullcentos  运行进入容器dockerrunitcentos  容器内安装wgetyumyinstallwget  更换镜像源为阿里wgetO/etc/y
Easter79 Easter79
4年前
Spring的异步线程处理
Spring封装了JDK的线程池和线程调用,并使用标签就可以开启多线程调用。先进行一个Spring的线程池配置@Configuration@EnableAsyncpublicclassThreadPoolConfigimplementsAsyncConfigurer{@Bean@OverridepublicExecut
Stella981 Stella981
4年前
Linux(Centos)给MySQL创建用户,并分配权限
//登录MYSQL使用root账号登录mysqlurootp密码 密码//创建用户(%表示可以远程登录该数据库)mysqlcreateuser's_root'@'%'identifiedby'123456';//刷新系统权限表用户授权格式:grant权限on
Wesley13 Wesley13
4年前
JPA之SQL修改语句
昨天遇到一个小问题,是使用JPA的注解对数据进行修改操作对:@Transactional@Modifying@Query("updatePersonpsetp.name?1")voidupdateById(Stringname);这里要注意的是@Transactional注解和@
Easter79 Easter79
4年前
SwiftCommon之Message弹窗
概述Message弹窗很多情况都需要用到,一个提示信息,一个错误信息等等。在IOS8中,使用UIAlertController类来管理弹窗。SCMessageimportFoundationimportUIKitpublictypealiasSCMessageBoxStyle