You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/08/05 14:47:31 UTC

[servicecomb-pack] 20/38: SCB-1369 Change @Autowired TransactionRepository required is false for Unit Tests

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git

commit 37b44cd6a2a5eb11519c5d452493ad9893338dd9
Author: Lei Zhang <co...@gmail.com>
AuthorDate: Fri Jul 26 19:12:17 2019 +0800

    SCB-1369 Change @Autowired TransactionRepository required is false for Unit Tests
---
 .../org/apache/servicecomb/pack/alpha/server/api/APIControllerV1.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alpha/alpha-server/src/main/java/org/apache/servicecomb/pack/alpha/server/api/APIControllerV1.java b/alpha/alpha-server/src/main/java/org/apache/servicecomb/pack/alpha/server/api/APIControllerV1.java
index 0c0481e..336b710 100644
--- a/alpha/alpha-server/src/main/java/org/apache/servicecomb/pack/alpha/server/api/APIControllerV1.java
+++ b/alpha/alpha-server/src/main/java/org/apache/servicecomb/pack/alpha/server/api/APIControllerV1.java
@@ -36,7 +36,7 @@ public class APIControllerV1 {
   @Autowired
   AlphaMetrics AlphaMetrics;
 
-  @Autowired
+  @Autowired(required = false)
   TransactionRepository transactionRepository;
 
   @GetMapping(value = "/metrics")