https://github.com/itzlyg/sci_ycox_data
https://github.com/itzlyg/sci_ycox_data
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/itzlyg/sci_ycox_data
- Owner: itzlyg
- Created: 2019-06-23T13:45:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T21:58:47.000Z (over 1 year ago)
- Last Synced: 2025-05-09T01:50:06.473Z (12 days ago)
- Language: Java
- Size: 67.4 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##### zookeeper
- 端口:8801
- 啓動zk##### kafka
- 端口:8802
- 啓動kafka,註冊到zk上##### kafka-Producer
- 端口:8803
- kafka生產者,生成隨機數據往kafka上輸入數據##### flink
- 端口:8804
- main方法啓動,讀取kafka裏面的數據解析### Spring Boot
#### 启动流程
```
/**
* Run the Spring application, creating and refreshing a new
* {@link ApplicationContext}.
* @param args the application arguments (usually passed from a Java main method)
* @return a running {@link ApplicationContext}
*/
public ConfigurableApplicationContext run(String... args) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
ConfigurableApplicationContext context = null;
Collection exceptionReporters = new ArrayList<>();
configureHeadlessProperty();
SpringApplicationRunListeners listeners = getRunListeners(args);
listeners.starting();
try {
ApplicationArguments applicationArguments = new DefaultApplicationArguments(
args);
ConfigurableEnvironment environment = prepareEnvironment(listeners,
applicationArguments);
configureIgnoreBeanInfo(environment);
Banner printedBanner = printBanner(environment);
context = createApplicationContext();
exceptionReporters = getSpringFactoriesInstances(
SpringBootExceptionReporter.class,
new Class[] { ConfigurableApplicationContext.class }, context);
prepareContext(context, environment, listeners, applicationArguments,
printedBanner);
refreshContext(context);
afterRefresh(context, applicationArguments);
stopWatch.stop();
if (this.logStartupInfo) {
new StartupInfoLogger(this.mainApplicationClass)
.logStarted(getApplicationLog(), stopWatch);
}
listeners.started(context);
callRunners(context, applicationArguments);
}
catch (Throwable ex) {
handleRunFailure(context, ex, exceptionReporters, listeners);
throw new IllegalStateException(ex);
}try {
listeners.running(context);
}
catch (Throwable ex) {
handleRunFailure(context, ex, exceptionReporters, null);
throw new IllegalStateException(ex);
}
return context;
}```