| 类 | 说明 |
|---|---|
| EnableSupervisor.EnableComponentScan | |
| EnableSupervisor.EnableHttpProperties | |
| EnableSupervisor.EnableRetryProperties | |
| EnableSupervisor.EnableScanLockerConfiguration | |
| EnableSupervisor.EnableSupervisorAdapter | |
| EnableSupervisor.EnableSupervisorConfiguration | |
| SupervisorLifecycle |
Supervisor lifecycle
https://www.cnblogs.com/deityjian/p/11296846.html
InitializingBean#afterPropertiesSet -> SmartLifecycle#start -> SmartLifecycle#stop -> DisposableBean#destroy
|
| SupervisorProperties |
Supervisor configuration properties.
|
| 注释类型 | 说明 |
|---|---|
| EnableSupervisor |
Enable supervisor role
必须注解到具有@Component的类上且该类能被spring扫描到
`@Order、Order接口、@AutoConfigureBefore、@AutoConfigureAfter、@AutoConfigureOrder的顺序:
1)用户自定义的类之间的顺序是按照文件的目录结构从上到下排序且无法干预,在这里这些方式都是无效的;
2)自动装配的类之间可以使用这五种方式去改变加载的顺序(用户自定义的类 排在 EnableAutoConfiguration自动配置加载的类 的前面);
|
Copyright © 2024. All rights reserved.