Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/spring bean function support #25

Merged
merged 4 commits into from
Nov 17, 2022
Merged

Feature/spring bean function support #25

merged 4 commits into from
Nov 17, 2022

Conversation

LionSiHan
Copy link

之前测试不完整,本地执行maven的doc插件和gpg都有冲突

@qqxx6661
Copy link
Owner

我过两天测试下哈,这几天比较忙,没法回归。

}


@OperationLog(bizId = "'1'", bizType = "'testSpringBeanFuncNoParam'", msg = "#_DIFF(#testUserWithParam(#param), #param)", executeBeforeFunc = true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bizType = "'testSpringBeanFuncWithParam'"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个我在发版本前来改吧

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的谢谢,后来我们换方案了监听binlog在大数据那边做的业务日志记录,还有一些改进点希望考虑,mq支持那里,原则上应该是业务中已配置mq的话则不覆盖,只需要exchange和topic就够了,需要在spring.factories里将Rabbit和Rocket的AutoConfiguration一起引入,在项目中的配置类上方加@AutoConfigAfter注解,优先加载业务配置的相关类,并且自定义bean上方加@ConditionOnMissingBean注解,这样可以以业务定义的RabbitMqTemplate等为准,我之前调试的时候就遇到了,因为我们的配置比较复杂有ssl相关配置,项目中所给出的配置项不全,一直连不上

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的谢谢,后来我们换方案了监听binlog在大数据那边做的业务日志记录,还有一些改进点希望考虑,mq支持那里,原则上应该是业务中已配置mq的话则不覆盖,只需要exchange和topic就够了,需要在spring.factories里将Rabbit和Rocket的AutoConfiguration一起引入,在项目中的配置类上方加@AutoConfigAfter注解,优先加载业务配置的相关类,并且自定义bean上方加@ConditionOnMissingBean注解,这样可以以业务定义的RabbitMqTemplate等为准,我之前调试的时候就遇到了,因为我们的配置比较复杂有ssl相关配置,项目中所给出的配置项不全,一直连不上

嗯,几个消息管道这里实现的一直很初级,现在我自己推荐别人用也会让他们去本地监听里自己处理mq。这一块和mq的版本,配置等很多东西强相关,想要覆盖全或者提升兼容性难度不小,先放到待办里面看了。

Copy link
Owner

@qqxx6661 qqxx6661 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非静态方法包装为静态方法这里,还没有消化完成。
线程包装类很实用,类似traceId和自定义逻辑可以处理。
我先merge,之后稍作修改后发布版本。

@qqxx6661 qqxx6661 merged commit 631ac1e into qqxx6661:master Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants