上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 498 下一页
摘要: The racing condition would be one possible bug when we apply cache a newtwork request. For example, we implement a search box, for all the requests, w 阅读全文
posted @ 2020-12-09 15:59 Zhentiw 阅读(71) 评论(0) 推荐(0)
摘要: Caches exist to make things faster (at the expense of taking up more memory and possibly outdated results). Our live search is a great use case for im 阅读全文
posted @ 2020-12-09 15:40 Zhentiw 阅读(101) 评论(0) 推荐(0)
摘要: Create you own decreator! Add dependency: <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.5</version> 阅读全文
posted @ 2020-12-09 03:35 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: In previous post, we check how to use ifElse to branch out the logic: https://www.cnblogs.com/Answer1215/p/14093562.html let inputToBooks = pipe( wait 阅读全文
posted @ 2020-12-08 22:28 Zhentiw 阅读(125) 评论(0) 推荐(0)
摘要: You can do git log first to check which commit message you want to revert to. For example 'xxxxx123' is the commit id we want to revert to. Then do: g 阅读全文
posted @ 2020-12-08 15:19 Zhentiw 阅读(248) 评论(0) 推荐(0)
摘要: Dendron is a Visual Studio Code extension that you can download and install free of charge. To download a visual studio code extension, we press Comma 阅读全文
posted @ 2020-12-08 03:37 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要: So far, we've used filter to prevent values when a condition is met. Sometimes you want two different behaviors based on a condition which is where yo 阅读全文
posted @ 2020-12-06 18:05 Zhentiw 阅读(164) 评论(0) 推荐(0)
摘要: Besides using Profiles, we can also us Spring Expression Language. package com.frankmoley.lil.fid.config; import com.frankmoley.lil.fid.service.Greeti 阅读全文
posted @ 2020-12-04 22:23 Zhentiw 阅读(94) 评论(0) 推荐(0)
摘要: For example, inside code, we want production env & dev env print different time format. @Bean @Profile("!dev") public TimeService timeService(){ retur 阅读全文
posted @ 2020-12-04 16:01 Zhentiw 阅读(102) 评论(0) 推荐(0)
摘要: We can have some properties defined inside application.properties or application.yml file. application.properties: app.name=Frank app.greeting=Hello W 阅读全文
posted @ 2020-12-04 15:50 Zhentiw 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 498 下一页