![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
每日一记
文章平均质量分 79
Enter_灵猴
踏踏实实
展开
-
拦截器
今天刚学习,请给与指导首先定义一个类实现Filter接口 javax.servlet.Filter;需要实现的方法 init()初始话方法 destory()销毁 doFilter(req,resp,chain) 定义拦截首先了解运行方式,运行周期在web项目加载到服务器时初始化开始,开始调用doFilter()拦截,返回,最后浏览器关闭,destory...原创 2018-09-27 22:54:19 · 156 阅读 · 0 评论 -
发布Springboot两种方式
第一种 打war包 外部tomcat运行,springboot项目需要在外部Tomcat 9 下运行因为Springboot项目是靠main程序启动,所以在外部tomcat启动时,要去掉内置的tomcat在pom.xml 移除tomcat<dependency> <groupId>org.springframework.boot</groupId&...原创 2018-12-06 21:56:31 · 208 阅读 · 0 评论 -
jQuery jsonp跨域请求
转载,因为是博客园的不能分享,现在留下地址 ,相信认真看的朋友可以学到很多https://www.cnblogs.com/chiangchou/p/jsonp.html#4121410转载 2018-12-03 21:51:04 · 107 阅读 · 0 评论 -
Zookeeper 集群配置
安装Zookeeper 单机安装 可以安装在linux下,也可以安装在Windows中,但是官网上声明:在windows中Zookeeper不保证稳定性 1:关闭Linux防火墙 2:下载并且安装jdk,1.6以上的版本 /etc/profile 3:下载Zookeeper安装包 4:解压安装包 5:进入Zookeeper/conf zoo_sam...原创 2018-12-06 10:48:55 · 159 阅读 · 0 评论 -
Zookeeper简单使用
连接CountDownLatch cdl = new CountDownLatch(1); 初始化线程为1countDownLatch 闭锁(线程递减锁) countDown() await() 对线程进行计数,当计数归0会放开阻塞重新计数ZooKeeper zk = new ZooKeeper("IP:2181" ,会话超时时间(毫秒),new Watcher(){//监控...原创 2018-12-06 10:25:56 · 138 阅读 · 0 评论 -
Avro简单|实用
Avro 就是一款适合大数据的序列化框架 概述:是序列化和RPC的框架,开始是Apache Hadoop的子件之一,Avro不只可以用于Hadoop而是可以用于多个场景下的序列化,所以单独形成一个新的组件 www.apache.org ->Projects 序列化:将对象转化为二进制形式用于传输或者是存储 反序列化: 衡量点: 序列化之后的数据量是否...原创 2018-12-07 22:13:00 · 122 阅读 · 0 评论 -
SpringCloud-config配置中心
config服务端启动类要加@EnableConfigServerbootstrap.propertiesspring.application.name=config-serverserver.port=f服务端启动端口号spring.cloud.config.server.git.uri=https://github.com/登陆账号/仓库名spring.cloud.conf...原创 2018-12-04 22:33:44 · 116 阅读 · 0 评论 -
springboot项目pom
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> <r原创 2018-11-23 19:33:37 · 316 阅读 · 0 评论 -
ObjectMapper
看着眼熟,却一直不理解,今日抓住时深究一下,了我疑惑 <!--jackson支持 --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</ar...原创 2018-12-15 20:12:18 · 444 阅读 · 0 评论