From 32d7c6c00ae2068a3a88044eae23d57ba9610d03 Mon Sep 17 00:00:00 2001 From: huayu <674367665@qq.com> Date: Tue, 21 Jun 2022 16:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3.SpringApplicationRunListener.md | 8 ++++++++ spring/springboot/启动.md | 5 ----- 从放弃到入门系列.md | 14 ++++++++------ 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/spring/springboot/getSpringFactoriesInstances/3.SpringApplicationRunListener.md b/spring/springboot/getSpringFactoriesInstances/3.SpringApplicationRunListener.md index 5f1585d..43647e9 100644 --- a/spring/springboot/getSpringFactoriesInstances/3.SpringApplicationRunListener.md +++ b/spring/springboot/getSpringFactoriesInstances/3.SpringApplicationRunListener.md @@ -58,3 +58,11 @@ public interface SpringApplicationRunListener { } ``` +## 实现类EventPublishingRunListener + +放入线程中加载初始化,监听器ApplicationListener; + + + + + diff --git a/spring/springboot/启动.md b/spring/springboot/启动.md index 0b553b3..022d65d 100644 --- a/spring/springboot/启动.md +++ b/spring/springboot/启动.md @@ -82,8 +82,3 @@ listeners.starting() DefaultApplicationArguments (new SimpleCommandLineArgsParser()).parse(args) ``` - - -准备环境 - -设置转换器 diff --git a/从放弃到入门系列.md b/从放弃到入门系列.md index f728704..7e3d17e 100644 --- a/从放弃到入门系列.md +++ b/从放弃到入门系列.md @@ -19,9 +19,11 @@ 17. 分治 18. ~~解决方案文档~~ 19. 修改接口确保之前逻辑不变 -19. EntityGraph多看源码,注释下同级别有类似注释。 -19. 用心做好每件事,每个人每件事,都值得被认真对待。 -19. 做个有意义的主键。 -19. 制定规范,一不变应万变。 -19. 能在内存中操作,就不去数据库。 -19. 遵守规范,争取在里面添加一条,或者找出返例。 \ No newline at end of file +20. EntityGraph多看源码,注释下同级别有类似注释。 +21. 用心做好每件事,每个人每件事,都值得被认真对待。 +22. 不用uuid关联,使用有意义的主键,只增加和删除,监听数据库,删除后同步到另一个数据库。真正的删除和修改删除需要区分处理(版本号)。 +23. 制定规范,一不变应万变。 +24. 能在内存中操作,就不去数据库。 +25. 遵守规范,争取在里面添加一条,或者找出返例。 +26. 所有功能逻辑都有迹可循. +27. 拉取自己分支的意义,自己功能在这个分支开发测试都可以合并到test分支,最后通过可以让自己的功能上生产此时同一批的其他功能可能未完成,无法让test统一合并到master。 \ No newline at end of file