摘要:
启动脚本 #!/bin/sh #zookeeper节点 zookeeperServers='192.168.221.102 192.168.221.103 192.168.221.104' #启动所有zookeeper节点 for zoo in $zookeeperServers do ssh -T 阅读全文
摘要:
docker自己制作centos7-jdk1.8-tomcat8 1.准备安装包 apache-tomcat-8.5.43.tar.gz jdk-8u201-linux-x64.tar.gz 2.编辑Dockerfile FROM centos:centos7.6.1810 MAINTAINER s 阅读全文
摘要:
1.创建项目 DockerController.java @RestController @RequestMapping("/docker") public class DockerController { @GetMapping("/hello") public String hello(){ r 阅读全文
摘要:
从list中模糊查询字符串 public class Test008 { public static void main(String[] args) { String name = "b"; List<String> list = new ArrayList<>(); list.add("aa") 阅读全文
摘要:
Java实现文件下载 @GetMapping("/getFile") public Boolean getFile(HttpServletResponse response) throws IOException { //文件路径 final String filePath = "E:/test.l 阅读全文
摘要:
hadoop的HA集群搭建 环境 centos7,jdk1.8,zookeeper-3.5.5,hadoop-2.7.2 1.配置hosts:vi /etc/hosts 192.168.221.100 hadoop100 192.168.221.101 hadoop101 192.168.221.1 阅读全文
摘要:
oauth2 feign 报401的错误 报错 feign.FeignException: status 401 reading UserFeign#queryUser(Long,String,String,String,Integer,Integer,Integer) 解决方法 import fe 阅读全文
摘要:
1.要使用4.1版本以上的,否则可能不生效 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.0</version> </dependency> 阅读全文
摘要:
Mybatis批量插入mysql插入自身sql语句太长## 标题 1.报错 Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long 阅读全文
摘要:
SpringBoot整合kafka报could not be established. Broker may not be available. 报错日志 [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127 阅读全文