摘要: 1、安装erlang (1)获取安装包 wget --content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-20.2.2-1.el7.centos.x86_64.rpm/download.rp 阅读全文
posted @ 2020-06-28 16:10 昵称不好起啊 阅读(180) 评论(0) 推荐(0)
摘要: 一、停止 (1)直接停止 #!/bin/bash echo "Stopping fsn Application" kill -9 $(ps -ef|grep fsn-iot|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ') (2)参数形式 #!/bin/b 阅读全文
posted @ 2020-06-28 15:12 昵称不好起啊 阅读(2876) 评论(0) 推荐(0)
摘要: 1、springboot启动类加上@EnableAsync注解 2、异步执行的方法需单独写在一个类中 阅读全文
posted @ 2020-06-08 11:55 昵称不好起啊 阅读(529) 评论(0) 推荐(0)
摘要: 先上依赖 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version> <c 阅读全文
posted @ 2020-04-28 10:15 昵称不好起啊 阅读(216) 评论(0) 推荐(0)
摘要: 1、maven依赖 <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore --><dependency> <groupId>org.apache.httpcomponents</groupId> <art 阅读全文
posted @ 2020-04-27 14:40 昵称不好起啊 阅读(580) 评论(0) 推荐(0)
摘要: 1、idea中的get、set方法标红 解决方法: 在File->Setting->Plugins 中查找lombok插件,下载安装之后,重启idea,即可,在pom.xml 文件中添加如下依赖 <dependency> <groupId>org.projectlombok</groupId> <a 阅读全文
posted @ 2020-03-31 10:26 昵称不好起啊 阅读(183) 评论(0) 推荐(0)
摘要: 广播模式:1对多,produce发送一则消息多个consumer同时收到。 注意:广播是实时的,produce只负责发出去,不会管对端是否收到,若发送的时刻没有对端接收,那消息就没了,因此在广播模式下设置消息持久化是无效的。 三种广播模式: fanout: 所有bind到此exchange的queu 阅读全文
posted @ 2020-03-30 18:48 昵称不好起啊 阅读(1108) 评论(0) 推荐(0)
摘要: 解决方式有两种,如下 (1)标红即为中文乱码的处理方式 rsp.setHeader("Content-Disposition", "attachment;fileName=" + java.net.URLEncoder.encode(fileInfo.getName(), "UTF-8"));rsp 阅读全文
posted @ 2020-03-25 10:04 昵称不好起啊 阅读(2695) 评论(0) 推荐(0)
摘要: 在abator中可生成iBatis的代码。其中,Sql_map中带有的两个函数是: updateByPrimaryKeySelective updateByPrimaryKey 前者只是更新新的model中不为空的字段。 后者则会将为空的字段在数据库中置为NULL。 阅读全文
posted @ 2018-06-12 10:41 昵称不好起啊 阅读(3270) 评论(0) 推荐(0)
摘要: 一、cookie机制和session机制的区别*************************************************************************************具体来说cookie机制采用的是在客户端保持状态的方案,而session机制采用的是 阅读全文
posted @ 2018-04-17 18:42 昵称不好起啊 阅读(172) 评论(0) 推荐(0)