funky-eyes commented on code in PR #6566: URL: https://github.com/apache/incubator-seata/pull/6566#discussion_r1607882790
########## changes/zh-cn/2.x.md: ########## @@ -138,6 +138,7 @@ - [[#6540](https://github.com/apache/incubator-seata/pull/6540)] 排除 com.google.guava:listenablefuture 依赖 - [[#6549](https://github.com/apache/incubator-seata/pull/6549)] 支持macos arm架构单测 - [[#6558](https://github.com/apache/incubator-seata/pull/6558)] y移除 mysql-connector-java 依赖 +- [[#6562](https://github.com/apache/incubator-seata/pull/6562)] 支持GlobalTransactionScanner类中exposeProxy属性的配置 Review Comment: ```suggestion - [[#6566](https://github.com/apache/incubator-seata/pull/6566)] 支持GlobalTransactionScanner类中exposeProxy属性的配置 ``` ########## changes/en-us/2.x.md: ########## @@ -140,6 +140,7 @@ Add changes here for all PR submitted to the 2.x branch. - [[#6540](https://github.com/apache/incubator-seata/pull/6540)] exclude com.google.guava:listenablefuture - [[#6549](https://github.com/apache/incubator-seata/pull/6549)] macos workflow support arm testing - [[#6558](https://github.com/apache/incubator-seata/pull/6558)] remove mysql-connector-java from pom.xml +- [[#6562](https://github.com/apache/incubator-seata/pull/6562)] Add support for configuring exposeProxy in GlobalTransactionScanner Review Comment: ```suggestion - [[#6566](https://github.com/apache/incubator-seata/pull/6566)] Add support for configuring exposeProxy in GlobalTransactionScanner ``` ########## seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/SeataProperties.java: ########## @@ -51,6 +51,12 @@ public class SeataProperties { * Whether use JDK proxy instead of CGLIB proxy */ private boolean useJdkProxy = false; + /** + * Whether to expose the proxy object through AopContext. + * Setting this to true allows AopContext.currentProxy() to be used to obtain the current proxy, + * which can be useful for invoking methods annotated with @GlobalTransactional within the same class. + */ + private boolean exposeProxy = false; Review Comment: https://github.com/apache/incubator-seata/tree/2.x/script/client/spring Please add the configuration example here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
