摘要: 1. compose compose(middlewares) // middleware应该是回调, 所有用async-await. middlewares = [async (ctx, next)=>{ log1, await next(), log2 }, async (ctx, next) 阅读全文
posted @ 2020-07-23 23:23 connie313 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 组件传值: ContextType (class component) useContext (functional component) Consumer Props 注意:Object每次值都不一样, 影响性能, 不要传入对象, 但可以传成state.value, 多个context value 阅读全文
posted @ 2020-06-25 19:12 connie313 阅读(93) 评论(0) 推荐(0) 编辑
摘要: SPA里, 1) Router 改变router,不跳转页面方法: hash, url: http://....../#/ Histroy Api: replaceState/popState 2) vuex in view store.state... in Store: State/commit 阅读全文
posted @ 2020-06-02 07:34 connie313 阅读(120) 评论(0) 推荐(0) 编辑
摘要: vue data属性的双向绑定 json是存在对象索引的。 就是说data = {'attr1': 1}; vm={'data': data}; //1) data.attr1=2; => vm.data will be {attr1: 2}.//2) vm.data.attr1 = 2, data 阅读全文
posted @ 2020-05-18 08:15 connie313 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 表单重复提交 xss- 安全防控 Request 只能在转发有效 Context 上下文有效 保存在服务器中 会话管理 Cookie, 服务器与客户端资源保存, 在客户端。 Session。 保存在服务器端, 存放在内存, 客户端与服务端通信使用session id. 应用场景? 登录,购物车 移动 阅读全文
posted @ 2020-05-11 22:43 connie313 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 转发: 转发不暴露真是地址 可以拿到上下文 req.getAttribute, 用的同一个request, forward, tomcat内部跳转 转发和重定向 重定向,会最终返回给客服端302, 然后再到真正的servlet中, 一些request作用于 也会丢失。转发作用域的值全部失效。 重定向 阅读全文
posted @ 2020-05-11 22:31 connie313 阅读(79) 评论(0) 推荐(0) 编辑
摘要: in java 1.8, hashmap may have thread unsafe problem while in 1.7 hashmap may have dead loop. Hashmap involves in link to tree node and trr node to lis 阅读全文
posted @ 2020-05-11 22:03 connie313 阅读(79) 评论(0) 推荐(0) 编辑
摘要: all https://blog.csdn.net/sndayYU/article/details/90757829 zookeeper install https://blog.csdn.net/sndayYU/article/details/90718238 kafka install http 阅读全文
posted @ 2020-05-02 17:43 connie313 阅读(387) 评论(0) 推荐(0) 编辑
摘要: flink consumer can realize kafka avro with overwriting kafkaDeseriler, and executor multithread and genretic extends Properties extends Anootate base6 阅读全文
posted @ 2020-04-02 22:27 connie313 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public class AvroDeserializationSchema<T> implements DeserializationSchema<T> { private static final long serialVersionUID = 1L; private final Class<T 阅读全文
posted @ 2020-03-31 22:20 connie313 阅读(333) 评论(0) 推荐(0) 编辑