Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
0b11fa8b7c | |
|
|
5cf64060ab | |
|
|
d1e33a4f21 |
17
pom.xml
17
pom.xml
|
|
@ -18,23 +18,6 @@
|
|||
<target>1.8</target>
|
||||
</configuration>
|
||||
</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>
|
||||
</build>
|
||||
<dependencies>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class Config extends JFinalConfig {
|
|||
// MongoClient mongoClient = new MongoClient(new ServerAddress("120.24.5.249", 3717), Arrays.asList(mongoCredential));
|
||||
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);
|
||||
mongoDatabase = mongoClient.getDatabase("dict");
|
||||
mongoDatabase = mongoClient.getDatabase("gxhy");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue