随笔 - 502  文章 - 1 评论 - 6 阅读 - 37万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

07 2018 档案
kafka 在Windows端安装 找不到或无法加载主类 的解决方案
摘要:https://blog.csdn.net/u012931508/article/details/55211390 阅读全文
posted @ 2018-07-25 18:39 1161588342 阅读(156) 评论(0) 推荐(0) 编辑
Linux kafka 单机安装
摘要:Kafka地址(选择最新地址1.1.1) http://archive.apache.org/dist/kafka/ 阅读全文
posted @ 2018-07-25 12:56 1161588342 阅读(97) 评论(0) 推荐(0) 编辑
Linux zookeeper 单机安装
摘要:Zookeeper(端口2181) 下载地址 http://mirror.bit.edu.cn/apache/zookeeper/ 解压到/usr/local目录 >tar -zxvf zookeeper-3.4.12.tar.gz -C /usr/local/ >cd /usr/local/zoo 阅读全文
posted @ 2018-07-25 12:53 1161588342 阅读(89) 评论(0) 推荐(0) 编辑
Hive安装 和管理
摘要: 阅读全文
posted @ 2018-07-24 21:30 1161588342 阅读(68) 评论(0) 推荐(0) 编辑
HBase 入门
摘要:使用条件: 海量数据百亿级的行 百万列, 准实时查询 使用场景: 比如金融,交通,电商,移动等 特点: 1: 阅读全文
posted @ 2018-07-20 23:21 1161588342 阅读(68) 评论(0) 推荐(0) 编辑
Solr 集群
摘要:https://www.cnblogs.com/1315925303zxz/p/6372004.html?utm_source=itdadao&utm_medium=referral 阅读全文
posted @ 2018-07-20 18:19 1161588342 阅读(55) 评论(0) 推荐(0) 编辑
Spring boot starter地址
摘要:https://docs.spring.io/spring-boot/docs/1.5.12.RELEASE/reference/htmlsingle/#using-boot-starter 阅读全文
posted @ 2018-07-20 14:46 1161588342 阅读(116) 评论(0) 推荐(0) 编辑
Spring boot 自定义starter
摘要:以下配置来自尚硅谷.. 常用如何配置 3、模式: 启动器只用来做依赖导入; 专门来写一个自动配置模块; 启动器依赖自动配置;别人只需要引入启动器(starter) mybatis-spring-boot-starter;自定义启动器名-spring-boot-starter 步骤: 1)、启动器模块 阅读全文
posted @ 2018-07-19 23:32 1161588342 阅读(131) 评论(0) 推荐(0) 编辑
Spring boot 启动配置原理
摘要:配置在META-INF/spring.factories 有几个主要的类 ApplicationContextInitializer 创建SpringAplication SpringApplicationRunListener 启动的run流程 ApplicationRunner CommandL 阅读全文
posted @ 2018-07-19 23:21 1161588342 阅读(272) 评论(0) 推荐(0) 编辑
Linux swap 使用
摘要:使用的背景 内存吃紧的时候可以考虑使用swap. swap新增 http://www.cnblogs.com/wuxie1989/p/5888595.html swap 使用 https://www.cnblogs.com/PandoraX/p/6806364.html 创建分区 查看使用百分比 释 阅读全文
posted @ 2018-07-18 12:11 1161588342 阅读(200) 评论(0) 推荐(0) 编辑
Spring boot 数据访问JDBC
摘要:s 阅读全文
posted @ 2018-07-17 22:38 1161588342 阅读(92) 评论(0) 推荐(0) 编辑
JVM jstack 详解
摘要:https://blog.csdn.net/zxp_cpinfo/article/details/54971115 输出到文件 >jstack -l PID >> /root/123.txt 阅读全文
posted @ 2018-07-17 15:58 1161588342 阅读(82) 评论(0) 推荐(0) 编辑
Spring boot 注册Filter , Listener, Servlet
摘要:1: ServletRegistrationBean Servlet 或者通过@WebServlet注解也可以. 2:FilterRegistrationBean 过滤器 3:ServletListenerRegistrationBean 监听器 myListener 实现 ServletConte 阅读全文
posted @ 2018-07-15 22:50 1161588342 阅读(157) 评论(0) 推荐(0) 编辑
Spring boot 配置嵌入式Servlet容器
摘要:SpringBoot默认使用Tomcat作为嵌入式的Servlet容器 1、修改和server有关的配置(ServerProperties【也是EmbeddedServletContainerCustomizer】 2、编写一个EmbeddedServletContainerCustomizer:嵌 阅读全文
posted @ 2018-07-15 22:38 1161588342 阅读(304) 评论(0) 推荐(0) 编辑
Spring boot 定制自己的错误
摘要:1)、如何定制错误的页面; ​ 1)、有模板引擎的情况下;error/状态码; 【将错误页面命名为 错误状态码.html 放在模板引擎文件夹里面的 error文件夹下】,发生此状态码的错误就会来到 对应的页面; ​ 我们可以使用4xx和5xx作为错误页面的文件名来匹配这种类型的所有错误,精确优先(优 阅读全文
posted @ 2018-07-15 22:07 1161588342 阅读(206) 评论(0) 推荐(0) 编辑
Spring boot 错误处理机制
摘要:请求方式时,若不存在 浏览器出现White label Error Page 错误页面 其他客户端出现响应一个JSON格式文本包含错误码等信息 浏览器发送请求的请求头: 客户端请求头 这样就能区分来自哪.. 原理:ErrorMvcAutoconfiguration 处理错误的自动配置 里面添加了以下 阅读全文
posted @ 2018-07-15 16:21 1161588342 阅读(146) 评论(0) 推荐(0) 编辑
Spring boot 日志
摘要:修改spring boot 默认日志的配置 #logging.path=# 不指定路径在当前项目下生成springboot.log日志# 可以指定完整的路径;#logging.file=G:/springboot.log # 在当前磁盘的根路径下创建spring文件夹和里面的log文件夹;使用 sp 阅读全文
posted @ 2018-07-14 23:15 1161588342 阅读(127) 评论(0) 推荐(0) 编辑
Spring boot 自动配置原理
摘要:1、自动配置原理: 1)、SpringBoot启动的时候加载主配置类,开启了自动配置功能 ==@EnableAutoConfiguration== 2)、@EnableAutoConfiguration 作用: 利用EnableAutoConfigurationImportSelector给容器中导 阅读全文
posted @ 2018-07-14 21:37 1161588342 阅读(232) 评论(0) 推荐(0) 编辑
Spring boot 配置文件 加载顺序
摘要:springboot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件 –file:./config/ –file:./ –classpath:/config/ –classpath:/ 优先级由高到底,高 阅读全文
posted @ 2018-07-14 21:29 1161588342 阅读(270) 评论(0) 推荐(0) 编辑
Spring boot profile 多环境配置
摘要:1、多Profile文件 我们在主配置文件编写的时候,文件名可以是 application-{profile}.properties/yml 默认使用application.properties的配置; 2、yml支持多文档块方式 3、激活指定profile ​ 1、在配置文件中指定 spring. 阅读全文
posted @ 2018-07-14 21:28 1161588342 阅读(159) 评论(0) 推荐(0) 编辑
Spring boot 配置文件 使用占位符号
摘要:配置文件占位符 1:使用随机数 2: 占位符获取之前配置的值,如果没有可以是用:指定默认值 阅读全文
posted @ 2018-07-14 21:25 1161588342 阅读(252) 评论(0) 推荐(0) 编辑
Spring boot @PropertySource, @ImportResource, @Bean
摘要:@PropertySource:加载指定的配置文件 @ImportResource:导入Spring的配置文件,让配置文件里面的内容生效; Spring Boot里面没有Spring的配置文件,我们自己编写的配置文件,也不能自动识别; 想让Spring的配置文件生效,加载进来;@ImportReso 阅读全文
posted @ 2018-07-14 21:24 1161588342 阅读(285) 评论(0) 推荐(0) 编辑
Spring boot @ConfigurationProperties 和@Value
摘要:配置文件yml还是properties他们都能获取到值; 如果说,我们只是在某个业务逻辑中需要获取一下配置文件中的某项值,使用@Value; 如果说,我们专门编写了一个javaBean来和配置文件进行映射,我们就直接使用@ConfigurationProperties; 阅读全文
posted @ 2018-07-14 10:52 1161588342 阅读(125) 评论(0) 推荐(0) 编辑
Spring boot 配置文件加载顺序,原理
摘要:ss 阅读全文
posted @ 2018-07-14 09:57 1161588342 阅读(148) 评论(0) 推荐(0) 编辑
Spring MVC 运行流程图
摘要: 阅读全文
posted @ 2018-07-12 22:05 1161588342 阅读(104) 评论(0) 推荐(0) 编辑
在mysql命令行下执行sql文件
摘要:***********在mysql命令行下执行sql文件*********** C:\Windows\system32>cd E:\MySQL\mysql-5.7.16-winx64\bin //将目录切换到mysql的bin文件所在的目录 C:\Windows\system32>mysql -ur 阅读全文
posted @ 2018-07-12 18:40 1161588342 阅读(499) 评论(0) 推荐(0) 编辑
canal HA配置
摘要:https://github.com/alibaba/canal/wiki/AdminGuide#ha%E6%A8%A1%E5%BC%8F%E9%85%8D%E7%BD%AE HA模式配置 1. 机器准备 a. 运行canal的机器: 10.20.144.22 , 10.20.144.51. b. 阅读全文
posted @ 2018-07-12 17:42 1161588342 阅读(421) 评论(0) 推荐(0) 编辑
canal 常用配置
摘要:https://github.com/alibaba/canal/wiki/AdminGuide canal.instance.filter.regex 监控哪些表的正则配置 如下: instance.xml配置文件 目前默认支持的instance.xml有以下几种: memory-instance 阅读全文
posted @ 2018-07-12 17:40 1161588342 阅读(10607) 评论(0) 推荐(1) 编辑
canal 监控数据库表 快速使用
摘要:https://github.com/alibaba/canal 快速开始 https://github.com/alibaba/canal/wiki/QuickStart 注意 1. vim conf/canal.properties 可以通过此处调节缓冲内存大小 2: vim conf/exam 阅读全文
posted @ 2018-07-12 17:29 1161588342 阅读(3578) 评论(0) 推荐(0) 编辑
HashMap 因子对性能的影响
摘要:默认容量2<<4 因子0.75 阅读全文
posted @ 2018-07-05 14:30 1161588342 阅读(213) 评论(0) 推荐(0) 编辑
JVM 调优
摘要:-Xms -Xmx 配置一样,一般情况为最大内存的80% -XX:NewSize 新生代初始大小 -XX:MaxNewSize 新生代最大大小 一般情况为整个堆1/3比较合适 -Xmn 新生代内存大小 一般配合-XX:SurvivorRatio使用, 和 -XX:NewRatio=n 设置年轻代和年 阅读全文
posted @ 2018-07-04 17:25 1161588342 阅读(112) 评论(0) 推荐(0) 编辑
JVM jstat 详解
摘要:http://www.ityouknow.com/java/2017/03/01/jvm-overview.html 本文基于JDK1.8 https://blog.csdn.net/maosijunzi/article/details/46049117 jps :查看进程PID 若为11032 j 阅读全文
posted @ 2018-07-04 13:45 1161588342 阅读(210) 评论(0) 推荐(0) 编辑
Tomcat 异常关闭排查
摘要:N次请求 tomcat conf/server.xml https://blog.csdn.net/qq_30121245/article/details/52861935 pattern分析 内存溢出 /var/log/message查看 阅读全文
posted @ 2018-07-04 12:38 1161588342 阅读(2384) 评论(0) 推荐(0) 编辑
Mysql canal 监控数据变化
摘要:https://www.jianshu.com/p/6299048fad66 阿里巴巴github地址 https://github.com/alibaba/canal/wiki/QuickStart 阅读全文
posted @ 2018-07-03 15:06 1161588342 阅读(168) 评论(0) 推荐(0) 编辑
Mysql 主- 开启binlog
摘要:https://www.cnblogs.com/martinzhang/p/3454358.html my.cnf 添加 log_bin=mysql-bin 开启日志,然后重启mysql服务器. 查看是否开启 阅读全文
posted @ 2018-07-03 12:46 1161588342 阅读(127) 评论(0) 推荐(0) 编辑
Spring MVC 异常处理 - SimpleMappingExceptionResolver
摘要:希望对一些异常统一处理,他将异常类名映射为视图名,即发生异常时使用对应的视图报告异常. 阅读全文
posted @ 2018-07-02 22:33 1161588342 阅读(114) 评论(0) 推荐(0) 编辑
Spring MVC 异常处理 - DefaultHandlerExceptionResolver
摘要:对一些特殊的异常进行处理,比如方法类型不匹配, 转换错误. 阅读全文
posted @ 2018-07-02 22:27 1161588342 阅读(634) 评论(0) 推荐(0) 编辑
Spring MVC 异常处理 - ResponseStatusExceptionResolver
摘要:作用在类和方法上面 更改返回的代码和错误消息 类上 通过throw new UserName***Exception()抛出 方法上 方法执行通过,但是返回会有错误,因为配置了@ResponseStatus 阅读全文
posted @ 2018-07-02 22:24 1161588342 阅读(275) 评论(0) 推荐(0) 编辑
Spring MVC 异常处理 - ExceptionHandler
摘要:通过HandlerExceptionResolver 处理程序异常,包括Handler映射, 数据绑定, 以及目标方法执行时的发生的异常 实现类如下 阅读全文
posted @ 2018-07-02 22:20 1161588342 阅读(120) 评论(0) 推荐(0) 编辑
Spring MVC 拦截器
摘要:xml 2种方式配置 有(不)用于path路径的 拦截器的执行顺序 阅读全文
posted @ 2018-07-01 22:56 1161588342 阅读(69) 评论(0) 推荐(0) 编辑
Spring MVC 文件上传
摘要:Spring MVC默认不支持文件上传, 配置文件上传 阅读全文
posted @ 2018-07-01 22:53 1161588342 阅读(70) 评论(0) 推荐(0) 编辑
Spring MVC 处理JSON 使用HttpMessageConveter
摘要:负责将请求信息转换为一个对象 请求报名,转为InputStream, 输出报名OutputStream 阅读全文
posted @ 2018-07-01 22:45 1161588342 阅读(136) 评论(0) 推荐(0) 编辑
Spring MVC @InitBinder 数据绑定 & 数据格式化 & 数据校验
摘要:1 数据绑定 2 数据格式化 修改绑定的字段等等操作 日期 - 接收表单日期字符串格式内容.,在实体类加入@DateTimeFormat 数值 原理: DefautFormattingConversionService 如果使用了自定义类型转换器, 同事又使用了FormattingConversio 阅读全文
posted @ 2018-07-01 19:10 1161588342 阅读(265) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示