
获得徽章 0
- dubbo group : 同一个接口有不同的实现,可以通过group进行区分
dubbo.apache.org
dubbo warmup :
dubbo接口有负载均衡,warmup参数会影响接口权重:当服务运行时长小于服务预热时间时,对服务进行降权,避免让服务在启动之初就处于高负载状态。展开评论点赞 - 1. Aware 接口: 改接口有很多的实现类,实现了改接口的类拥有操作的Bean的能力
2. 手动获取一个bean
1.blog.csdn.net : ApplicationContextAware
2.mp.weixin.qq.com : BeanFactoryAware
Demo:
@Service
public class SpringUtils implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
SpringUtils.applicationContext = applicationContext;
}
public static <T> T getBean(String name) {
return (T) SpringUtils.applicationContext.getBean(name);
}
}展开评论点赞 - 1. SimpleDateFormat
1.1 日期转字符串 非线程安全(不同线程共用一个内部类,该内部类会影响对字符串的解析)
1.2 DateTimeFormatter
2. spel : Spring表达式,能在运行时构建复杂表达式、存取对象图属性、对象方法调用等cloud.tencent.com
展开评论点赞