Skip to content

Commit

Permalink
add disable _DalTransactionAspect config
Browse files Browse the repository at this point in the history
  • Loading branch information
qifanwang committed Sep 24, 2024
1 parent 99abb22 commit 9662716
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.ctrip.xpipe.redis.console.aop;

import com.ctrip.xpipe.redis.checker.spring.ConsoleDisableDbCondition;
import com.ctrip.xpipe.redis.checker.spring.DisableDbMode;
import com.ctrip.xpipe.redis.console.annotation.DalTransaction;
import com.ctrip.xpipe.redis.console.config.ConsoleConfig;
import com.ctrip.xpipe.redis.console.exception.ServerException;
Expand All @@ -11,6 +13,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Component;
import org.unidal.dal.jdbc.transaction.TransactionManager;
import org.unidal.lookup.ContainerLoader;
Expand All @@ -25,6 +28,8 @@
*/
@Aspect
@Component
@Conditional(ConsoleDisableDbCondition.class)
@DisableDbMode(false)
public class DalTransactionAspect {

private TransactionManager transactionManager;
Expand Down

0 comments on commit 9662716

Please sign in to comment.