11 2018 档案
摘要:Spring管理的bean不能是new出来的,否则管理不了 如果使用Autowired管理不了,可能在其中某个节点的对象是new出来的,比如,有三个类A、B、C,其中A调用B,B调用C、A使用了注解@Service,B是new的,C使用了注解@Service,那么B使用@Autowired调用C时,
阅读全文
摘要:admin: 微服务日志情况1、zipkin slueth 追踪微服务链hystrix tubine 微服务的整体压力情况static final static final List list = new List<String>; // list是引用传递,static final List li
阅读全文
摘要:用多态代替if:https://blog.csdn.net/benpaobagzb/article/details/50803586 多态可以用继承、接口来实现 枚举也可以用来实现多态,举例: builder模式
阅读全文
摘要:@Test(Excepted=BuinessException.class);Mockito.verify(this.testService.times(3)).insertDataBase(Mockito.any());assertThat(dialogJob.getNewList()).isNo
阅读全文