Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
0b11fa8b7c | |
|
|
5cf64060ab | |
|
|
d1e33a4f21 |
17
pom.xml
17
pom.xml
|
|
@ -18,23 +18,6 @@
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-maven-plugin</artifactId>
|
|
||||||
<version>9.4.0.v20161208</version>
|
|
||||||
<configuration>
|
|
||||||
<stopKey>stop</stopKey>
|
|
||||||
<stopPort>5206</stopPort>
|
|
||||||
<webApp>
|
|
||||||
<contextPath>/</contextPath>
|
|
||||||
</webApp>
|
|
||||||
<scanIntervalSeconds>5</scanIntervalSeconds>
|
|
||||||
<httpConnector>
|
|
||||||
<port>4206</port>
|
|
||||||
<idleTimeout>60000</idleTimeout>
|
|
||||||
</httpConnector>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
||||||
|
|
@ -79,9 +79,9 @@ public class Config extends JFinalConfig {
|
||||||
public void afterJFinalStart() {
|
public void afterJFinalStart() {
|
||||||
// MongoCredential mongoCredential = MongoCredential.createCredential("root", "admin", "CoWR1111".toCharArray());
|
// MongoCredential mongoCredential = MongoCredential.createCredential("root", "admin", "CoWR1111".toCharArray());
|
||||||
// MongoClient mongoClient = new MongoClient(new ServerAddress("120.24.5.249", 3717), Arrays.asList(mongoCredential));
|
// MongoClient mongoClient = new MongoClient(new ServerAddress("120.24.5.249", 3717), Arrays.asList(mongoCredential));
|
||||||
MongoClientURI connectionString = new MongoClientURI("mongodb://root:CoWR1111@dds-wz9ceed1f19591041217-pub.mongodb.rds.aliyuncs.com:3717,dds-wz9ceed1f19591042677-pub.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-5320915");
|
MongoClientURI connectionString = new MongoClientURI("mongodb://root:CoWR1111@dds-wz9ceed1f19591041.mongodb.rds.aliyuncs.com:3717,dds-wz9ceed1f19591042.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-5320915");
|
||||||
MongoClient mongoClient = new MongoClient(connectionString);
|
MongoClient mongoClient = new MongoClient(connectionString);
|
||||||
mongoDatabase = mongoClient.getDatabase("dict");
|
mongoDatabase = mongoClient.getDatabase("gxhy");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue