瀏覽代碼

修改配置

aaa 4 年之前
父節點
當前提交
92a23ceee7
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/main/java/com/jtxt/demo/config/MongoConfig.java
  2. 1 0
      src/main/resources/application.properties

+ 1 - 1
src/main/java/com/jtxt/demo/config/MongoConfig.java

@@ -22,7 +22,7 @@ public class MongoConfig extends AbstractMongoClientConfiguration {
 
     @Override
     public MongoClient mongoClient() {
-        ConnectionString connectionString = new ConnectionString("mongodb://jtxt-admin:jtxt-admin@localhost:27017/?authSource=jtxt-dev");
+        ConnectionString connectionString = new ConnectionString("mongodb://jtxt-admin:jtxt-admin@120.77.221.199:27017/?authSource=jtxt-dev");
         MongoClientSettings mongoClientSettings = MongoClientSettings.builder()
                 .applyConnectionString(connectionString)
                 .build();

+ 1 - 0
src/main/resources/application.properties

@@ -1,3 +1,4 @@
+server.port=7000
 spring.data.mongodb.host=localhost
 spring.data.mongodb.database=jtxt-dev
 spring.data.mongodb.port=27017