One week Learning Notes
creepcheck
这个作者很懒,什么都没留下…
展开
-
0727 0802 - redux action 500, xml to POJO, ZonedDateTime&UTC, ag-grid overlay/copy, jest synchronize
1. redux async action handle non-200It seems though the call backend get 500, the redux async will not goes into catch block automatically. For example, It can go into catch because it cannot parse Json of the error message, but not because of the backend原创 2020-07-27 13:02:47 · 241 阅读 · 0 评论 -
Jackson Annotations - @JsonProperty,etc; Other - @ApiModelProperty
我理解的serialize deserialize是,比如把POJO class <-> JSON相互转换1. Jackson AnnotationsJackson Serialization Annotations: @JsonAnyGetter, @JsonGetter, @JsonPropertyOrder, @JsonRawValue, @JsonValue, @JsonRootName, @JsonSerialize,Jackson Deserialization Annota原创 2020-07-20 09:25:29 · 470 阅读 · 0 评论 -
0720 - useEffect infinite loop, redux post, ag-grid checkbox, java8 stream example
1. run-p: command not found应该是我忘了npm install…2. How to Fix the Infinite Loop Inside “useEffect” (React Hooks)By providing [userId] as a second argument, we are just telling “useEffect()” to run only if the certain value (userId) has changed between the原创 2020-07-19 15:43:34 · 186 阅读 · 0 评论 -
Spring: Connect 2 Backends, Jersey, Jackson, @ResponseBody, @Produces, Json (de)serialize
1. @ResponseBody, @Produces不太清楚Spring中,两个backend互相call,返回的值会被如何打包并通过何种协议(应该是http)进行传输。先总结一下: 1. @Produces, @Consumes可以和@ResponseBody一起使用,我的理解是在打包成http的response和request的时候,还能指定media type。2. @Produces和@Consumes并不负责serialize或者deserialize POJO -> JSON /原创 2020-07-19 15:01:44 · 228 阅读 · 0 评论 -
0713 - application-test.yml, ===, join json, @Qualifier, Serializable, @Responsebody, @JsonInclude..
https://stackoverflow.com/questions/21450060/how-to-join-two-javascript-objects-without-using-jquery可以整理到以前相关笔记,并且整理一下那个笔记的标题https://www.ag-grid.com/javascript-grid-resizing/https://stackoverflow.com/questions/42501291/ag-grid-sizecolumnstofit-for-colum原创 2020-07-13 08:58:00 · 145 阅读 · 0 评论 -
0706 - ReflectionTestUtils, JUnit test Kafka, EqualsVerifier, Eqauls and Hashcode, Gradle run JUnit
https://stackoverflow.com/questions/2457239/injecting-mockito-mocks-into-a-spring-beanThis solved my problem, I can’t inject MyDAO alone then mock it, will have some NullPointerException because it actually goes into its method e.g. myDao.method1(anty(),原创 2020-07-12 15:51:06 · 375 阅读 · 0 评论 -
0629-@Resource, JUnit-Response, objectMapper, Jest fetch/tooltip undefined, mimic ConsumerRecords...
1. How to stop a Callable submitted to ExecutorService?using the shutdown will bring down the entire executorService… This executor service might also be processing few more threads…https://stackoverflow.com/questions/36375204/how-to-terminate-callable-p原创 2020-07-04 11:18:00 · 225 阅读 · 0 评论 -
0622 - Kafka assign all partitions, dateTime, forEach, !==, [variable], onChange w/o event, ag-grid
1. 一个Kafka message会不会被分成几部分存在不同的partitions上?大概问的是,一个kafka message会不会被分成几部分存在不同的partitions上,不会。consumer获得的最小粒度应该就是以一个kafka message为单位,也就是每个offset上存的都是个完整的kafka message。2. a single consumer in a group with no other consumers will be assigned all partitions原创 2020-06-22 13:33:35 · 218 阅读 · 0 评论 -
0615零散问题整理
1. test root reducers借鉴了标题超链接的方法:(就不放自己的代码了,与这个例子类似)Original:let rootReducer = combineReducers({ counter, todo })Test:let store = createStore(rootReducer)// check that initial state of the root reducer matches// what child reducers return given a原创 2020-06-15 11:42:58 · 280 阅读 · 0 评论 -
0608零散问题整理
1. redux storecreateStoreCreates a Redux store that holds the complete state tree of your app. There should only be a single store in your app.The only way to change its state is by dispatching actions.You may also subscribe to the changes to its state原创 2020-06-10 12:51:43 · 135 阅读 · 0 评论