上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 启动脚本 #!/bin/sh #zookeeper节点 zookeeperServers='192.168.221.102 192.168.221.103 192.168.221.104' #启动所有zookeeper节点 for zoo in $zookeeperServers do ssh -T 阅读全文
posted @ 2020-02-29 10:38 smileLS66 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-31 18:05 smileLS66 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目 DockerController.java @RestController @RequestMapping("/docker") public class DockerController { @GetMapping("/hello") public String hello(){ r 阅读全文
posted @ 2020-01-27 20:17 smileLS66 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 从list中模糊查询字符串 public class Test008 { public static void main(String[] args) { String name = "b"; List<String> list = new ArrayList<>(); list.add("aa") 阅读全文
posted @ 2019-12-25 16:45 smileLS66 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Java实现文件下载 @GetMapping("/getFile") public Boolean getFile(HttpServletResponse response) throws IOException { //文件路径 final String filePath = "E:/test.l 阅读全文
posted @ 2019-12-16 11:06 smileLS66 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-12-10 11:39 smileLS66 阅读(43) 评论(0) 推荐(0) 编辑
摘要: oauth2 feign 报401的错误 报错 feign.FeignException: status 401 reading UserFeign#queryUser(Long,String,String,String,Integer,Integer,Integer) 解决方法 import fe 阅读全文
posted @ 2019-11-19 16:10 smileLS66 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 1.要使用4.1版本以上的,否则可能不生效 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.0</version> </dependency> 阅读全文
posted @ 2019-11-18 11:29 smileLS66 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Mybatis批量插入mysql插入自身sql语句太长## 标题 1.报错 Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long 阅读全文
posted @ 2019-11-11 19:23 smileLS66 阅读(525) 评论(0) 推荐(0) 编辑
摘要: SpringBoot整合kafka报could not be established. Broker may not be available. 报错日志 [AdminClient clientId=adminclient-1] Connection to node 0 (localhost/127 阅读全文
posted @ 2019-11-01 16:06 smileLS66 阅读(922) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页