@fastcar/core 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +379 -0
- package/annotation.d.ts +157 -0
- package/db.d.ts +272 -0
- package/index.d.ts +262 -0
- package/package.json +53 -0
- package/src/FastCarApplication.ts +761 -0
- package/src/annotation/Application.ts +46 -0
- package/src/annotation/ExceptionMonitor.ts +15 -0
- package/src/annotation/bind/AddRequireModule.ts +18 -0
- package/src/annotation/bind/AliasInjection.ts +24 -0
- package/src/annotation/bind/Autowired.ts +11 -0
- package/src/annotation/bind/CallDependency.ts +24 -0
- package/src/annotation/data/DBType.ts +9 -0
- package/src/annotation/data/DS.ts +58 -0
- package/src/annotation/data/DSIndex.ts +7 -0
- package/src/annotation/data/Entity.ts +8 -0
- package/src/annotation/data/Field.ts +15 -0
- package/src/annotation/data/PrimaryKey.ts +7 -0
- package/src/annotation/data/SqlSession.ts +7 -0
- package/src/annotation/data/Table.ts +37 -0
- package/src/annotation/data/Transactional.ts +60 -0
- package/src/annotation/env/ApplicationSetting.ts +24 -0
- package/src/annotation/env/BaseFilePath.ts +12 -0
- package/src/annotation/env/BasePath.ts +12 -0
- package/src/annotation/env/ENV.ts +8 -0
- package/src/annotation/env/ResourcePath.ts +7 -0
- package/src/annotation/lifeCycle/AddLifeCycleItem.ts +25 -0
- package/src/annotation/lifeCycle/ApplicationDestory.ts +13 -0
- package/src/annotation/lifeCycle/ApplicationInit.ts +13 -0
- package/src/annotation/lifeCycle/ApplicationRunner.ts +5 -0
- package/src/annotation/lifeCycle/ApplicationStart.ts +23 -0
- package/src/annotation/lifeCycle/ApplicationStop.ts +18 -0
- package/src/annotation/property/Deprecate.ts +17 -0
- package/src/annotation/property/NotImplemented.ts +5 -0
- package/src/annotation/property/Override.ts +4 -0
- package/src/annotation/property/Readonly.ts +12 -0
- package/src/annotation/scan/ComponentInjection.ts +22 -0
- package/src/annotation/scan/ComponentScan.ts +7 -0
- package/src/annotation/scan/ComponentScanExclusion.ts +26 -0
- package/src/annotation/scan/Hotter.ts +6 -0
- package/src/annotation/stereotype/BeanName.ts +9 -0
- package/src/annotation/stereotype/Component.ts +6 -0
- package/src/annotation/stereotype/Configure.ts +12 -0
- package/src/annotation/stereotype/Controller.ts +7 -0
- package/src/annotation/stereotype/Injection.ts +10 -0
- package/src/annotation/stereotype/Log.ts +17 -0
- package/src/annotation/stereotype/Repository.ts +7 -0
- package/src/annotation/stereotype/Service.ts +7 -0
- package/src/annotation/valid/AddChildValid.ts +61 -0
- package/src/annotation/valid/DefaultVal.ts +8 -0
- package/src/annotation/valid/NotNull.ts +7 -0
- package/src/annotation/valid/Rule.ts +104 -0
- package/src/annotation/valid/Size.ts +13 -0
- package/src/annotation/valid/Type.ts +8 -0
- package/src/annotation/valid/ValidCustom.ts +21 -0
- package/src/annotation/valid/ValidForm.ts +146 -0
- package/src/annotation.ts +103 -0
- package/src/config/ApplicationConfig.ts +5 -0
- package/src/config/SysConfig.ts +28 -0
- package/src/constant/AppStatusEnum.ts +5 -0
- package/src/constant/BootPriority.ts +7 -0
- package/src/constant/CommonConstant.ts +14 -0
- package/src/constant/ComponentKind.ts +7 -0
- package/src/constant/DataTypes.ts +15 -0
- package/src/constant/FastCarMetaData.ts +25 -0
- package/src/constant/LifeCycleModule.ts +5 -0
- package/src/db.ts +182 -0
- package/src/index.ts +11 -0
- package/src/interface/ApplicationHook.ts +9 -0
- package/src/interface/ApplicationRunnerService.ts +3 -0
- package/src/interface/DataSourceManager.ts +14 -0
- package/src/interface/Logger.ts +9 -0
- package/src/model/BaseMapper.ts +115 -0
- package/src/model/DataMap.ts +103 -0
- package/src/model/FormRuleModel.ts +23 -0
- package/src/model/ValidError.ts +1 -0
- package/src/model/WinstonLogger.ts +119 -0
- package/src/type/ComponentDesc.ts +5 -0
- package/src/type/DesignMeta.ts +11 -0
- package/src/type/FileHotterDesc.ts +4 -0
- package/src/type/MapperType.ts +8 -0
- package/src/type/ProcessType.ts +12 -0
- package/src/type/SqlError.ts +3 -0
- package/src/type/WinstonLoggerType.ts +18 -0
- package/src/utils/ClassLoader.ts +72 -0
- package/src/utils/ClassUtils.ts +38 -0
- package/src/utils/CryptoUtil.ts +106 -0
- package/src/utils/DataFormat.ts +97 -0
- package/src/utils/DateUtil.ts +85 -0
- package/src/utils/FileUtil.ts +172 -0
- package/src/utils/FormatStr.ts +13 -0
- package/src/utils/Mix.ts +69 -0
- package/src/utils/ReflectUtil.ts +22 -0
- package/src/utils/TypeUtil.ts +56 -0
- package/src/utils/ValidationUtil.ts +138 -0
- package/src/utils.ts +13 -0
- package/target/FastCarApplication.js +661 -0
- package/target/annotation/AddRequireModule.js +21 -0
- package/target/annotation/Application.js +45 -0
- package/target/annotation/Autowired.js +15 -0
- package/target/annotation/Calldependency.js +18 -0
- package/target/annotation/ExceptionMonitor.js +16 -0
- package/target/annotation/bind/AddRequireModule.js +21 -0
- package/target/annotation/bind/AliasInjection.js +23 -0
- package/target/annotation/bind/Autowired.js +13 -0
- package/target/annotation/bind/CallDependency.js +23 -0
- package/target/annotation/data/DBType.js +11 -0
- package/target/annotation/data/DS.js +54 -0
- package/target/annotation/data/DSIndex.js +9 -0
- package/target/annotation/data/Entity.js +10 -0
- package/target/annotation/data/Field.js +18 -0
- package/target/annotation/data/PrimaryKey.js +9 -0
- package/target/annotation/data/SqlSession.js +9 -0
- package/target/annotation/data/Table.js +34 -0
- package/target/annotation/data/Transactional.js +52 -0
- package/target/annotation/env/ApplicationSetting.js +25 -0
- package/target/annotation/env/BaseFilePath.js +14 -0
- package/target/annotation/env/BasePath.js +14 -0
- package/target/annotation/env/ENV.js +10 -0
- package/target/annotation/env/ResourcePath.js +9 -0
- package/target/annotation/lifeCycle/AddLifeCycleItem.js +18 -0
- package/target/annotation/lifeCycle/ApplicationDestory.js +15 -0
- package/target/annotation/lifeCycle/ApplicationInit.js +15 -0
- package/target/annotation/lifeCycle/ApplicationRunner.js +7 -0
- package/target/annotation/lifeCycle/ApplicationStart.js +24 -0
- package/target/annotation/lifeCycle/ApplicationStop.js +20 -0
- package/target/annotation/property/Deprecate.js +19 -0
- package/target/annotation/property/NotImplemented.js +8 -0
- package/target/annotation/property/Override.js +7 -0
- package/target/annotation/property/Readonly.js +16 -0
- package/target/annotation/scan/ComponentInjection.js +21 -0
- package/target/annotation/scan/ComponentScan.js +9 -0
- package/target/annotation/scan/ComponentScanExclusion.js +25 -0
- package/target/annotation/scan/Hotter.js +8 -0
- package/target/annotation/stereotype/BeanName.js +11 -0
- package/target/annotation/stereotype/Component.js +8 -0
- package/target/annotation/stereotype/Configure.js +14 -0
- package/target/annotation/stereotype/Controller.js +9 -0
- package/target/annotation/stereotype/Injection.js +12 -0
- package/target/annotation/stereotype/Log.js +16 -0
- package/target/annotation/stereotype/Repository.js +9 -0
- package/target/annotation/stereotype/Service.js +9 -0
- package/target/annotation/valid/AddChildValid.js +56 -0
- package/target/annotation/valid/DefaultVal.js +10 -0
- package/target/annotation/valid/NotNull.js +8 -0
- package/target/annotation/valid/Rule.js +100 -0
- package/target/annotation/valid/Size.js +10 -0
- package/target/annotation/valid/Type.js +10 -0
- package/target/annotation/valid/ValidCustom.js +17 -0
- package/target/annotation/valid/ValidForm.js +131 -0
- package/target/annotation.js +101 -0
- package/target/config/ApplicationConfig.js +2 -0
- package/target/config/SysConfig.js +19 -0
- package/target/constant/AppStatusEnum.js +9 -0
- package/target/constant/BootPriority.js +11 -0
- package/target/constant/CommonConstant.js +16 -0
- package/target/constant/ComponentKind.js +11 -0
- package/target/constant/DataTypes.js +19 -0
- package/target/constant/FastCarMetaData.js +29 -0
- package/target/constant/LifeCycleModule.js +9 -0
- package/target/db.js +46 -0
- package/target/index.js +21 -0
- package/target/interface/ApplicationHook.js +2 -0
- package/target/interface/ApplicationRunnerService.js +2 -0
- package/target/interface/DataSourceManager.js +2 -0
- package/target/interface/Logger.js +5 -0
- package/target/model/BaseMapper.js +98 -0
- package/target/model/DataMap.js +87 -0
- package/target/model/FormRuleModel.js +2 -0
- package/target/model/ValidError.js +5 -0
- package/target/model/WinstonLogger.js +95 -0
- package/target/type/ComponentDesc.js +2 -0
- package/target/type/DesignMeta.js +15 -0
- package/target/type/FileHotterDesc.js +2 -0
- package/target/type/MapperType.js +2 -0
- package/target/type/ProcessType.js +2 -0
- package/target/type/SqlError.js +5 -0
- package/target/type/WinstonLoggerType.js +9 -0
- package/target/utils/ClassUtils.js +35 -0
- package/target/utils/CryptoUtil.js +84 -0
- package/target/utils/DataFormat.js +84 -0
- package/target/utils/DateUtil.js +71 -0
- package/target/utils/FileUtil.js +153 -0
- package/target/utils/FormatStr.js +14 -0
- package/target/utils/Mix.js +62 -0
- package/target/utils/ReflectUtil.js +22 -0
- package/target/utils/TypeUtil.js +47 -0
- package/target/utils/ValidationUtil.js +118 -0
- package/target/utils/classLoader.js +65 -0
- package/target/utils.js +23 -0
- package/test/example/logs/app.log +0 -0
- package/test/example/logs/logger.log +12 -0
- package/test/example/logs/logger1.log +12 -0
- package/test/example/logs/logger2.log +12 -0
- package/test/example/logs/logger3.log +12 -0
- package/test/example/logs/logger4.log +12 -0
- package/test/example/logs/logger5.log +6 -0
- package/test/example/logs/sys.log +7 -0
- package/test/example/logs/sys1.log +14 -0
- package/test/example/logs/sys10.log +12 -0
- package/test/example/logs/sys11.log +5 -0
- package/test/example/logs/sys13.log +5 -0
- package/test/example/logs/sys2.log +3 -0
- package/test/example/logs/sys4.log +15 -0
- package/test/example/logs/sys5.log +9 -0
- package/test/example/logs/sys6.log +10 -0
- package/test/example/logs/sys7.log +15 -0
- package/test/example/logs/sys8.log +11 -0
- package/test/example/logs/sys9.log +10 -0
- package/test/example/resource/application-test.yml +0 -0
- package/test/example/resource/application.yml +7 -0
- package/test/example/resource/evnconfig-test.yml +1 -0
- package/test/example/resource/hello.yml +1 -0
- package/test/example/simple/app.ts +99 -0
- package/test/example/simple/component/StartRunner.ts +10 -0
- package/test/example/simple/component/StopRunner.ts +14 -0
- package/test/example/simple/config/EnvConfig.ts +6 -0
- package/test/example/simple/config/HelloConfig.ts +8 -0
- package/test/example/simple/controller/AliasController.ts +6 -0
- package/test/example/simple/controller/HelloController.ts +39 -0
- package/test/example/simple/controller/NotFoundController.ts +20 -0
- package/test/example/simple/service/CallService.ts +11 -0
- package/test/example/simple/service/HelloService.ts +10 -0
- package/test/example/simple/service/LogService.ts +19 -0
- package/test/logs/logger.log +0 -0
- package/test/logs/sys.log +227 -0
- package/test/multi/app.ts +15 -0
- package/test/multi/service/aService.ts +16 -0
- package/test/multi/service/bService.ts +18 -0
- package/test/multi/service/cService.ts +21 -0
- package/test/unit/dataMap-test.ts +48 -0
- package/test/unit/decorators-test.ts +38 -0
- package/test/unit/ds-test.ts +33 -0
- package/test/unit/logs/sys.log +24 -0
- package/test/unit/reflectMetadata-test.ts +15 -0
- package/test/unit/valid-test.ts +65 -0
- package/test/unit/winston-test.ts +15 -0
- package/utils.d.ts +166 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"timestamp":"2022-09-09 11:20:22.479","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
2
|
+
{"timestamp":"2022-09-09 11:20:22.480","level":"WARN","label":"logger","message":"自定义警告"}
|
|
3
|
+
{"timestamp":"2022-09-09 11:20:22.481","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
4
|
+
{"timestamp":"2022-09-09 11:31:43.148","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
5
|
+
{"timestamp":"2022-09-09 11:31:43.149","level":"WARN","label":"logger","message":"自定义警告"}
|
|
6
|
+
{"timestamp":"2022-09-09 11:31:43.150","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
7
|
+
{"timestamp":"2022-09-09 17:28:55.362","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
8
|
+
{"timestamp":"2022-09-09 17:28:55.363","level":"WARN","label":"logger","message":"自定义警告"}
|
|
9
|
+
{"timestamp":"2022-09-09 17:28:55.365","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
10
|
+
{"timestamp":"2022-09-13 09:53:50.01","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
11
|
+
{"timestamp":"2022-09-13 09:53:50.02","level":"WARN","label":"logger","message":"自定义警告"}
|
|
12
|
+
{"timestamp":"2022-09-13 09:53:50.03","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"timestamp":"2022-09-13 09:54:11.527","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
2
|
+
{"timestamp":"2022-09-13 09:54:11.528","level":"WARN","label":"logger","message":"自定义警告"}
|
|
3
|
+
{"timestamp":"2022-09-13 09:54:11.529","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
4
|
+
{"timestamp":"2022-09-13 09:54:28.779","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
5
|
+
{"timestamp":"2022-09-13 09:54:28.780","level":"WARN","label":"logger","message":"自定义警告"}
|
|
6
|
+
{"timestamp":"2022-09-13 09:54:28.781","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
7
|
+
{"timestamp":"2022-09-13 10:04:35.544","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
8
|
+
{"timestamp":"2022-09-13 10:04:35.545","level":"WARN","label":"logger","message":"自定义警告"}
|
|
9
|
+
{"timestamp":"2022-09-13 10:04:35.545","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
10
|
+
{"timestamp":"2022-09-16 10:02:54.863","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
11
|
+
{"timestamp":"2022-09-16 10:02:54.864","level":"WARN","label":"logger","message":"自定义警告"}
|
|
12
|
+
{"timestamp":"2022-09-16 10:02:54.865","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"timestamp":"2022-09-16 10:03:14.816","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
2
|
+
{"timestamp":"2022-09-16 10:03:14.817","level":"WARN","label":"logger","message":"自定义警告"}
|
|
3
|
+
{"timestamp":"2022-09-16 10:03:14.818","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
4
|
+
{"timestamp":"2022-09-16 10:07:58.560","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
5
|
+
{"timestamp":"2022-09-16 10:07:58.561","level":"WARN","label":"logger","message":"自定义警告"}
|
|
6
|
+
{"timestamp":"2022-09-16 10:07:58.562","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
7
|
+
{"timestamp":"2022-09-16 10:08:35.374","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
8
|
+
{"timestamp":"2022-09-16 10:08:35.375","level":"WARN","label":"logger","message":"自定义警告"}
|
|
9
|
+
{"timestamp":"2022-09-16 10:08:35.376","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
10
|
+
{"timestamp":"2022-09-16 10:12:28.386","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
11
|
+
{"timestamp":"2022-09-16 10:12:28.387","level":"WARN","label":"logger","message":"自定义警告"}
|
|
12
|
+
{"timestamp":"2022-09-16 10:12:28.388","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"timestamp":"2022-09-16 10:12:35.326","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
2
|
+
{"timestamp":"2022-09-16 10:12:35.327","level":"WARN","label":"logger","message":"自定义警告"}
|
|
3
|
+
{"timestamp":"2022-09-16 10:12:35.328","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
4
|
+
{"timestamp":"2022-09-16 10:35:28.78","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
5
|
+
{"timestamp":"2022-09-16 10:35:28.79","level":"WARN","label":"logger","message":"自定义警告"}
|
|
6
|
+
{"timestamp":"2022-09-16 10:35:28.80","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
7
|
+
{"timestamp":"2022-09-22 14:02:49.406","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
8
|
+
{"timestamp":"2022-09-22 14:02:49.407","level":"WARN","label":"logger","message":"自定义警告"}
|
|
9
|
+
{"timestamp":"2022-09-22 14:02:49.408","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
10
|
+
{"timestamp":"2022-09-22 14:03:17.226","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
11
|
+
{"timestamp":"2022-09-22 14:03:17.227","level":"WARN","label":"logger","message":"自定义警告"}
|
|
12
|
+
{"timestamp":"2022-09-22 14:03:17.228","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{"timestamp":"2022-09-22 14:03:39.607","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
2
|
+
{"timestamp":"2022-09-22 14:03:39.608","level":"WARN","label":"logger","message":"自定义警告"}
|
|
3
|
+
{"timestamp":"2022-09-22 14:03:39.609","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
4
|
+
{"timestamp":"2022-09-22 14:05:29.436","level":"INFO","label":"logger","message":"自定义的日志输出"}
|
|
5
|
+
{"timestamp":"2022-09-22 14:05:29.437","level":"WARN","label":"logger","message":"自定义警告"}
|
|
6
|
+
{"timestamp":"2022-09-22 14:05:29.438","level":"ERROR","label":"logger","message":"自定义报错"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{"timestamp":"2022-09-22 14:03:17.119","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
2
|
+
{"timestamp":"2022-09-22 14:03:17.212","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
3
|
+
{"timestamp":"2022-09-22 14:03:17.214","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
4
|
+
{"timestamp":"2022-09-22 14:03:17.217","level":"INFO","label":"sys","message":"start server app is run"}
|
|
5
|
+
{"timestamp":"2022-09-22 14:03:17.217","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
6
|
+
{"timestamp":"2022-09-22 14:03:17.236","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:93:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
7
|
+
{"timestamp":"2022-09-22 14:03:17.244","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:99:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{"timestamp":"2022-09-22 14:03:39.499","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
2
|
+
{"timestamp":"2022-09-22 14:03:39.584","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
3
|
+
{"timestamp":"2022-09-22 14:03:39.586","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
4
|
+
{"timestamp":"2022-09-22 14:03:39.588","level":"INFO","label":"sys","message":"start server app is run"}
|
|
5
|
+
{"timestamp":"2022-09-22 14:03:39.588","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
6
|
+
{"timestamp":"2022-09-22 14:03:41.624","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
7
|
+
{"timestamp":"2022-09-22 14:03:41.626","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
8
|
+
{"timestamp":"2022-09-22 14:03:46.642","level":"INFO","label":"sys","message":"application stop"}
|
|
9
|
+
{"timestamp":"2022-09-22 14:05:29.335","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
10
|
+
{"timestamp":"2022-09-22 14:05:29.424","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
11
|
+
{"timestamp":"2022-09-22 14:05:29.426","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
12
|
+
{"timestamp":"2022-09-22 14:05:29.428","level":"INFO","label":"sys","message":"start server app is run"}
|
|
13
|
+
{"timestamp":"2022-09-22 14:05:29.428","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
14
|
+
{"timestamp":"2022-09-22 14:05:41.112","level":"INFO","label":"sys","message":"sysConfig hot update----D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\resource\\application.yml"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"timestamp":"2022-09-09 17:28:57.392","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-09 17:28:57.393","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-09 17:29:02.396","level":"INFO","label":"sys","message":"application stop"}
|
|
4
|
+
{"timestamp":"2022-09-16 10:12:35.208","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
5
|
+
{"timestamp":"2022-09-16 10:12:35.311","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
6
|
+
{"timestamp":"2022-09-16 10:12:35.313","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
7
|
+
{"timestamp":"2022-09-16 10:12:35.315","level":"INFO","label":"sys","message":"start server app is run"}
|
|
8
|
+
{"timestamp":"2022-09-16 10:12:35.316","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
9
|
+
{"timestamp":"2022-09-16 10:12:53.876","level":"INFO","label":"sys","message":"sysConfig hot update----D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\resource\\application.yml"}
|
|
10
|
+
{"timestamp":"2022-09-16 10:12:53.895","level":"INFO","label":"sys","message":"sysConfig hot update----D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\resource\\application.yml"}
|
|
11
|
+
{"timestamp":"2022-09-16 10:13:24.226","level":"INFO","label":"sys","message":"sysConfig hot update----D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\resource\\application.yml"}
|
|
12
|
+
{"timestamp":"2022-09-16 10:13:36.169","level":"INFO","label":"sys","message":"sysConfig hot update----D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\resource\\application.yml"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{"timestamp":"2022-09-13 09:54:13.551","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-13 09:54:13.552","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-13 09:54:18.555","level":"INFO","label":"sys","message":"application stop"}
|
|
4
|
+
{"timestamp":"2022-09-16 10:15:27.08","level":"INFO","label":"sys","message":"hot update---D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\service\\HelloService.ts"}
|
|
5
|
+
{"timestamp":"2022-09-16 10:15:27.12","level":"INFO","label":"sys","message":"hot update---D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\service\\HelloService.ts"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{"timestamp":"2022-09-22 14:02:49.434","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:92:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
2
|
+
{"timestamp":"2022-09-22 14:02:49.440","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:98:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
3
|
+
{"timestamp":"2022-09-22 14:02:51.439","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
4
|
+
{"timestamp":"2022-09-22 14:02:51.439","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
5
|
+
{"timestamp":"2022-09-22 14:02:56.450","level":"INFO","label":"sys","message":"application stop"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"timestamp":"2022-09-22 14:03:19.246","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-22 14:03:19.247","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-22 14:03:24.263","level":"INFO","label":"sys","message":"application stop"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{"timestamp":"2022-09-02 14:15:07.567","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
2
|
+
{"timestamp":"2022-09-02 14:15:07.985","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
3
|
+
{"timestamp":"2022-09-02 14:15:07.988","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
4
|
+
{"timestamp":"2022-09-02 14:15:07.990","level":"INFO","label":"sys","message":"start server app is run"}
|
|
5
|
+
{"timestamp":"2022-09-02 14:15:07.991","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
6
|
+
{"timestamp":"2022-09-02 14:15:08.09","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
7
|
+
{"timestamp":"2022-09-02 14:15:08.10","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
8
|
+
{"timestamp":"2022-09-02 14:15:13.18","level":"INFO","label":"sys","message":"application stop"}
|
|
9
|
+
{"timestamp":"2022-09-02 14:15:50.613","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
10
|
+
{"timestamp":"2022-09-02 14:15:51.17","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
11
|
+
{"timestamp":"2022-09-02 14:15:51.19","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
12
|
+
{"timestamp":"2022-09-02 14:15:51.21","level":"INFO","label":"sys","message":"start server app is run"}
|
|
13
|
+
{"timestamp":"2022-09-02 14:15:51.22","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
14
|
+
{"timestamp":"2022-09-02 14:15:51.32","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
15
|
+
{"timestamp":"2022-09-02 14:15:51.33","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{"timestamp":"2022-09-02 14:14:56.968","level":"INFO","label":"sys","message":"application stop"}
|
|
2
|
+
{"timestamp":"2022-09-02 14:15:56.37","level":"INFO","label":"sys","message":"application stop"}
|
|
3
|
+
{"timestamp":"2022-09-02 14:16:46.532","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
4
|
+
{"timestamp":"2022-09-02 14:16:46.979","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
5
|
+
{"timestamp":"2022-09-02 14:16:46.981","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
6
|
+
{"timestamp":"2022-09-02 14:16:46.983","level":"INFO","label":"sys","message":"start server app is run"}
|
|
7
|
+
{"timestamp":"2022-09-02 14:16:46.983","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
8
|
+
{"timestamp":"2022-09-02 14:16:46.993","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:88:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
9
|
+
{"timestamp":"2022-09-02 14:16:47.01","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:94:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{"timestamp":"2022-09-02 14:16:47.18","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-02 14:16:47.19","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-02 14:16:52.24","level":"INFO","label":"sys","message":"application stop"}
|
|
4
|
+
{"timestamp":"2022-09-02 14:17:35.511","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
5
|
+
{"timestamp":"2022-09-02 14:17:35.602","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
6
|
+
{"timestamp":"2022-09-02 14:17:35.604","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
7
|
+
{"timestamp":"2022-09-02 14:17:35.606","level":"INFO","label":"sys","message":"start server app is run"}
|
|
8
|
+
{"timestamp":"2022-09-02 14:17:35.607","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
9
|
+
{"timestamp":"2022-09-02 14:17:35.630","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:88:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
10
|
+
{"timestamp":"2022-09-02 14:17:35.638","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:94:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{"timestamp":"2022-09-09 11:20:22.334","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
2
|
+
{"timestamp":"2022-09-09 11:20:22.464","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
3
|
+
{"timestamp":"2022-09-09 11:20:22.466","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
4
|
+
{"timestamp":"2022-09-09 11:20:22.469","level":"INFO","label":"sys","message":"start server app is run"}
|
|
5
|
+
{"timestamp":"2022-09-09 11:20:22.470","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
6
|
+
{"timestamp":"2022-09-09 11:20:24.495","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
7
|
+
{"timestamp":"2022-09-09 11:20:24.496","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
8
|
+
{"timestamp":"2022-09-09 11:20:29.505","level":"INFO","label":"sys","message":"application stop"}
|
|
9
|
+
{"timestamp":"2022-09-09 11:31:43.06","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
10
|
+
{"timestamp":"2022-09-09 11:31:43.133","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
11
|
+
{"timestamp":"2022-09-09 11:31:43.135","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
12
|
+
{"timestamp":"2022-09-09 11:31:43.138","level":"INFO","label":"sys","message":"start server app is run"}
|
|
13
|
+
{"timestamp":"2022-09-09 11:31:43.139","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
14
|
+
{"timestamp":"2022-09-09 11:31:45.168","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
15
|
+
{"timestamp":"2022-09-09 11:31:45.169","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{"timestamp":"2022-09-02 14:17:37.629","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-02 14:17:37.630","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-02 14:17:42.638","level":"INFO","label":"sys","message":"application stop"}
|
|
4
|
+
{"timestamp":"2022-09-09 11:31:50.173","level":"INFO","label":"sys","message":"application stop"}
|
|
5
|
+
{"timestamp":"2022-09-09 17:28:55.254","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
6
|
+
{"timestamp":"2022-09-09 17:28:55.348","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
7
|
+
{"timestamp":"2022-09-09 17:28:55.350","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
8
|
+
{"timestamp":"2022-09-09 17:28:55.353","level":"INFO","label":"sys","message":"start server app is run"}
|
|
9
|
+
{"timestamp":"2022-09-09 17:28:55.353","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
10
|
+
{"timestamp":"2022-09-09 17:28:55.378","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:91:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
11
|
+
{"timestamp":"2022-09-09 17:28:55.386","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:97:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{"timestamp":"2022-09-13 09:53:52.25","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
|
|
2
|
+
{"timestamp":"2022-09-13 09:53:52.26","level":"INFO","label":"sys","message":"Call the method before the application stops"}
|
|
3
|
+
{"timestamp":"2022-09-13 09:53:57.36","level":"INFO","label":"sys","message":"application stop"}
|
|
4
|
+
{"timestamp":"2022-09-13 09:54:11.426","level":"INFO","label":"sys","message":"Start scanning component"}
|
|
5
|
+
{"timestamp":"2022-09-13 09:54:11.514","level":"INFO","label":"sys","message":"Complete component scan"}
|
|
6
|
+
{"timestamp":"2022-09-13 09:54:11.516","level":"INFO","label":"sys","message":"Call application initialization method"}
|
|
7
|
+
{"timestamp":"2022-09-13 09:54:11.518","level":"INFO","label":"sys","message":"start server app is run"}
|
|
8
|
+
{"timestamp":"2022-09-13 09:54:11.518","level":"INFO","label":"sys","message":"version 1.0.0"}
|
|
9
|
+
{"timestamp":"2022-09-13 09:54:11.539","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [notFound] ","stack":"Error: Unsatisfied dependency expressed through [notFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\AliasInjection.ts:16:27)\n at NotFoundController.getNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:14:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:88:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
10
|
+
{"timestamp":"2022-09-13 09:54:11.547","level":"ERROR","label":"sys","message":"Unsatisfied dependency expressed through [autoNotFound] ","stack":"Error: Unsatisfied dependency expressed through [autoNotFound] \n at NotFoundController.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at NotFoundController.getAutoNotFound (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\controller\\NotFoundController.ts:18:15)\n at Context.<anonymous> (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\example\\simple\\app.ts:94:13)\n at callFn (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:366:21)\n at Test.Runnable.run (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runnable.js:354:5)\n at Runner.runTest (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:678:10)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:801:12\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:593:14)\n at D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:603:7\n at next (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:486:14)\n at Immediate._onImmediate (D:\\code\\fast-car\\fast-car\\node_modules\\mocha\\lib\\runner.js:571:5)\n at processImmediate (node:internal/timers:466:21)\n at process.topLevelDomainCallback (node:domain:152:15)\n at process.callbackTrampoline (node:internal/async_hooks:128:24)"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
text: "this is test config"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hello: "world"
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import Application from "../../../src/annotation/Application";
|
|
3
|
+
import ENV from "../../../src/annotation/env/ENV";
|
|
4
|
+
import HelloController from "./controller/HelloController";
|
|
5
|
+
import FastCarApplication from "../../../src/FastCarApplication";
|
|
6
|
+
import AliasController from "./controller/AliasController";
|
|
7
|
+
import BaseFilePath from "../../../src/annotation/env/BaseFilePath";
|
|
8
|
+
import BasePath from "../../../src/annotation/env/BasePath";
|
|
9
|
+
import ApplicationHook from "../../../src/interface/ApplicationHook";
|
|
10
|
+
import Log from "../../../src/annotation/stereotype/Log";
|
|
11
|
+
import Logger from "../../../src/interface/Logger";
|
|
12
|
+
import ApplicationSetting from "../../../src/annotation/env/ApplicationSetting";
|
|
13
|
+
|
|
14
|
+
@Application
|
|
15
|
+
@ENV("test") //设置环境变量
|
|
16
|
+
@BasePath(__dirname) //直接运行ts文件时可不用
|
|
17
|
+
@BaseFilePath(__filename)
|
|
18
|
+
@ApplicationSetting({
|
|
19
|
+
customHello: "customHello",
|
|
20
|
+
})
|
|
21
|
+
class APP implements ApplicationHook {
|
|
22
|
+
app!: FastCarApplication;
|
|
23
|
+
|
|
24
|
+
@Log("app")
|
|
25
|
+
logger!: Logger;
|
|
26
|
+
|
|
27
|
+
beforeStartServer(): void {
|
|
28
|
+
this.logger.debug("beforeStartServer-----");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
startServer(): void {
|
|
32
|
+
this.logger.debug("startServer------");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
beforeStopServer(): void {
|
|
36
|
+
this.logger.debug("beforeStopServer-----");
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
stopServer(): void {
|
|
40
|
+
this.logger.debug("stopServer-----");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let appInsatcne = new APP();
|
|
45
|
+
|
|
46
|
+
//引用记得放在app扫描后进行
|
|
47
|
+
import EnvConfig from "./config/EnvConfig";
|
|
48
|
+
import CallService from "./service/CallService";
|
|
49
|
+
import NotFoundController from "./controller/NotFoundController";
|
|
50
|
+
|
|
51
|
+
describe("程序应用测试", () => {
|
|
52
|
+
it("获取配置", () => {
|
|
53
|
+
//调用相关方法
|
|
54
|
+
let helloController: HelloController = appInsatcne.app.getComponentByTarget(HelloController);
|
|
55
|
+
helloController.callHello();
|
|
56
|
+
helloController.print();
|
|
57
|
+
console.log("获取到的配置--", helloController.getConfig());
|
|
58
|
+
});
|
|
59
|
+
it("测试别名", () => {
|
|
60
|
+
let controller1: AliasController = appInsatcne.app.getComponentByName("controller1");
|
|
61
|
+
console.log("controller1类型和AliasController相符", controller1 instanceof AliasController);
|
|
62
|
+
});
|
|
63
|
+
it("获取完善的加载信息", () => {
|
|
64
|
+
let appInfo = appInsatcne.app.getComponentDetailByName(FastCarApplication.name);
|
|
65
|
+
console.log("app 加载信息", appInfo);
|
|
66
|
+
let hellControllerInfo = appInsatcne.app.getComponentDetailByTarget(HelloController);
|
|
67
|
+
console.log("hellControllerInfo 加载信息", hellControllerInfo);
|
|
68
|
+
});
|
|
69
|
+
it("调用进程使用相关信息", () => {
|
|
70
|
+
setTimeout(() => {
|
|
71
|
+
console.log(appInsatcne.app.getMemoryUsage());
|
|
72
|
+
}, 2000);
|
|
73
|
+
});
|
|
74
|
+
it("根据环境动态设置变量", () => {
|
|
75
|
+
let evnConfig: EnvConfig = appInsatcne.app.getComponentByTarget(EnvConfig);
|
|
76
|
+
console.log(evnConfig.text);
|
|
77
|
+
});
|
|
78
|
+
it("测试调用时加载时机才会注入方法", () => {
|
|
79
|
+
let callServerice = new CallService();
|
|
80
|
+
callServerice.sayHello();
|
|
81
|
+
});
|
|
82
|
+
it("程序内配置", () => {
|
|
83
|
+
console.log("配置", appInsatcne.app.getSetting("customHello"));
|
|
84
|
+
});
|
|
85
|
+
it("查找一个不存在的注入", () => {
|
|
86
|
+
let notFound: NotFoundController = appInsatcne.app.getComponentByTarget(NotFoundController);
|
|
87
|
+
try {
|
|
88
|
+
notFound.getNotFound();
|
|
89
|
+
} catch (e) {
|
|
90
|
+
appInsatcne.app.getLogger().error(e);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
try {
|
|
94
|
+
notFound.getAutoNotFound();
|
|
95
|
+
} catch (e) {
|
|
96
|
+
appInsatcne.app.getLogger().error(e);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ApplicationStart from "../../../../src/annotation/lifeCycle/ApplicationStart";
|
|
2
|
+
import ApplicationRunnerService from "../../../../src/interface/ApplicationRunnerService";
|
|
3
|
+
|
|
4
|
+
//启动示例
|
|
5
|
+
@ApplicationStart()
|
|
6
|
+
export default class StartRunner implements ApplicationRunnerService {
|
|
7
|
+
run() {
|
|
8
|
+
console.info("服务启动后调用的方法");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ApplicationStop from "../../../../src/annotation/lifeCycle/ApplicationStop";
|
|
2
|
+
import ApplicationRunnerService from "../../../../src/interface/ApplicationRunnerService";
|
|
3
|
+
|
|
4
|
+
@ApplicationStop()
|
|
5
|
+
export default class StopRunner implements ApplicationRunnerService {
|
|
6
|
+
async run() {
|
|
7
|
+
return new Promise(resolve => {
|
|
8
|
+
setTimeout(() => {
|
|
9
|
+
console.info("服务停止前调用的方法");
|
|
10
|
+
resolve("OK");
|
|
11
|
+
}, 5000);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Autowired from "../../../../src/annotation/bind/Autowired";
|
|
2
|
+
import Controller from "../../../../src/annotation/stereotype/Controller";
|
|
3
|
+
import HelloConfig from "../config/HelloConfig";
|
|
4
|
+
import HelloService from "../service/HelloService";
|
|
5
|
+
import LogService from "../service/LogService";
|
|
6
|
+
import FastCarApplication from "../../../../src/FastCarApplication";
|
|
7
|
+
|
|
8
|
+
@Controller
|
|
9
|
+
class HelloController {
|
|
10
|
+
@Autowired
|
|
11
|
+
private hello!: HelloService;
|
|
12
|
+
|
|
13
|
+
@Autowired
|
|
14
|
+
private logService!: LogService;
|
|
15
|
+
|
|
16
|
+
@Autowired
|
|
17
|
+
private helloConfig!: HelloConfig;
|
|
18
|
+
|
|
19
|
+
@Autowired
|
|
20
|
+
private app!: FastCarApplication;
|
|
21
|
+
|
|
22
|
+
callHello() {
|
|
23
|
+
this.hello.say();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
print() {
|
|
27
|
+
this.logService.info();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
getConfig() {
|
|
31
|
+
return this.helloConfig.hello;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
getApp() {
|
|
35
|
+
return this.app;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default HelloController;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Controller from "../../../../src/annotation/stereotype/Controller";
|
|
2
|
+
import AliasInjection from "../../../../src/annotation/bind/AliasInjection";
|
|
3
|
+
import Autowired from "../../../../src/annotation/bind/Autowired";
|
|
4
|
+
|
|
5
|
+
@Controller
|
|
6
|
+
export default class NotFoundController {
|
|
7
|
+
@AliasInjection("notFound")
|
|
8
|
+
private notFound!: never;
|
|
9
|
+
|
|
10
|
+
@Autowired
|
|
11
|
+
private autoNotFound!: never;
|
|
12
|
+
|
|
13
|
+
getNotFound() {
|
|
14
|
+
return this.notFound;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
getAutoNotFound() {
|
|
18
|
+
return this.autoNotFound;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import HelloService from "./HelloService";
|
|
2
|
+
import CallDependency from "../../../../src/annotation/bind/CallDependency";
|
|
3
|
+
|
|
4
|
+
export default class CallService {
|
|
5
|
+
@CallDependency
|
|
6
|
+
private hello!: HelloService;
|
|
7
|
+
|
|
8
|
+
sayHello() {
|
|
9
|
+
return this.hello.say();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Service from "../../../../src/annotation/stereotype/Service";
|
|
2
|
+
import Logger from "../../../../src/interface/Logger";
|
|
3
|
+
import Log from "../../../../src/annotation/stereotype/Log";
|
|
4
|
+
|
|
5
|
+
//日志测试实例
|
|
6
|
+
@Service
|
|
7
|
+
class LogService {
|
|
8
|
+
@Log()
|
|
9
|
+
private logger!: Logger;
|
|
10
|
+
|
|
11
|
+
info() {
|
|
12
|
+
this.logger.info("自定义的日志输出");
|
|
13
|
+
this.logger.debug("自定义调试");
|
|
14
|
+
this.logger.warn("自定义警告");
|
|
15
|
+
this.logger.error("自定义报错");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default LogService;
|
|
File without changes
|