记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
55a4afa3
Commit
55a4afa3
authored
Jun 07, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+MongoTransactionManager
parent
5e76c5e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
ServiceAdamApplication.java
...in/java/com/liquidnet/service/ServiceAdamApplication.java
+8
-0
ServiceKylinApplication.java
...n/java/com/liquidnet/service/ServiceKylinApplication.java
+8
-0
No files found.
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/ServiceAdamApplication.java
View file @
55a4afa3
...
...
@@ -7,7 +7,10 @@ import org.springframework.boot.CommandLineRunner;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.env.Environment
;
import
org.springframework.data.mongodb.MongoDbFactory
;
import
org.springframework.data.mongodb.MongoTransactionManager
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
...
...
@@ -44,4 +47,9 @@ public class ServiceAdamApplication implements CommandLineRunner {
e
.
printStackTrace
();
}
}
@Bean
MongoTransactionManager
transactionManager
(
MongoDbFactory
factory
){
return
new
MongoTransactionManager
(
factory
);
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/ServiceKylinApplication.java
View file @
55a4afa3
...
...
@@ -8,7 +8,10 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.env.Environment
;
import
org.springframework.data.mongodb.MongoDbFactory
;
import
org.springframework.data.mongodb.MongoTransactionManager
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
...
...
@@ -44,4 +47,9 @@ public class ServiceKylinApplication implements CommandLineRunner {
e
.
printStackTrace
();
}
}
@Bean
MongoTransactionManager
transactionManager
(
MongoDbFactory
factory
){
return
new
MongoTransactionManager
(
factory
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment