摘要:1.新增 @PostMapping("/add") public R<Boolean> insert(@RequestBody BusinessCustomer businessCustomer) { return add(this.businessCustomerService.save(busi
阅读全文
摘要:1.创建一个maven工程,引入pom坐标 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>2.0.0</version> </dependency> <
阅读全文
摘要:方法一 Controller中注入service的时候使用@Autowired自动注入,@Qualifier("beanId")来指定注入哪一个。 方法二 Controller中注入service的时候使用@Resource(type = 类名.class)来指定注入哪一个。 #方法三 每个serv
阅读全文
摘要:参考链接:https://jingyan.baidu.com/article/ad310e80f90cfa5949f49ef3.html 亲测有效,界面可能不太一样,主要找到"任务计划程序"。
阅读全文
摘要:1.把连接的服务器导出。 2.打开导出的文件,找到password的编码后的字符串,复制。 3.运行下面代码,即可查看原来的密码,把紫色部分的字符串替换成上一步复制的字符串。 import java.io.ByteArrayOutputStream; import java.io.DataOutpu
阅读全文
摘要:1.引入pom,okhttp有版本要求,最低4.8.3 <dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.4.2</version> </dependency> <dependency
阅读全文
摘要:1.引入pom依赖,okhttp有版本要求,最低4.8.3 <dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.4.2</version> </dependency> <dependen
阅读全文
摘要:1.下载安装包 安装包:https://dl.min.io/server/minio/release/linux-amd64/minio 2.启动(基于非纠删码模式-EC) 纠删码适用于一台机器,多个磁盘。项目中一般采用分布式集群。 # 赋予执行权限 chmod +x minio #修改用户名密码,
阅读全文