美团技术+csdn开发
1.java8解决nullpointException问题代码
通过案例感受Optional处理null的套路:
将可能为null,或者说允许为null的数据存储进Optional容器中
通过Optional的map、filter、flatMap方法对数据进行处理,获取需要的对象属性,用法和Stream相同
如果数据为空了,可以返回一个自定义对象,或者抛出异常都可以,随你所愿
https://www.51cto.com/article/744347.html
2.解决代码中switch case分支太多,这就导致客户端和不同的解析器紧密耦合(结合枚举的使用)
服务定位模式Service Locator Pattern,我们只要扩展添加新的解析器就行,再也不用修改客户端了,满足开闭原则。
https://www.51cto.com/article/744315.html
3.SpringBoot整合xxl-Job分布式定时任务
https://www.51cto.com/article/743939.html
4.ThreadLocal的正确用法
https://www.51cto.com/article/743940.html
5.Spring Boot 异步线程间数据传递及线程池的使用
https://www.51cto.com/article/743928.html
Java线程池实现原理及其在美团业务中的实践
https://tech.meituan.com/2020/04/02/java-pooling-pratice-in-meituan.html
6.Spring Boot独立运行的jar包是如何工作的及classloader中类加载顺序
https://www.51cto.com/article/743784.html
7.90%的Java开发人员在代码上都会犯的五个错误
https://www.51cto.com/article/743433.html
8.异常处理实践 - 抛异常+错误码
https://www.51cto.com/article/743313.html
9.Java中Map集合的三种遍历方式
https://blog.csdn.net/m0_71485750/article/details/127436919?
10.Java8函数式接口编程demo
https://www.51cto.com/article/743069.html
11.Spring Boot整合策略模式概念 解决过多if-else、switch-case (结合传参的使用)
https://www.51cto.com/article/742924.html
12.美团技术团队博客
https://tech.meituan.com/about
13.美团案例-整合上述[11]和[2]的设计模式应用案例及其他几种设计模式的应用案例
https://tech.meituan.com/2022/03/10/interesting-talk-about-design-patterns.html
https://tech.meituan.com/2020/03/19/design-pattern-practice-in-marketing.html
14.Zookeeper怎么实现分布式锁
https://www.51cto.com/article/744629.html
15.不可不说的Java“锁”事及代码
https://tech.meituan.com/2018/11/15/java-lock.html