lombok优雅使用技巧
@AllArgsConstructor 替代@Autowired构造注入,多个bean 注入时更加清晰L@Slf4j@Configuration@AllArgsConstructorpublic class RouterFunctionConfiguration { private final HystrixFallbackHandler hystrixFallbackHandler; private final ImageCodeHandler imageCodeHandler;.
原创
2021-08-15 14:03:20 ·
170 阅读 ·
0 评论