ht
parent
59a8241dcf
commit
d4f8d6f2f7
34
pom.xml
34
pom.xml
|
|
@ -19,40 +19,6 @@
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.mortbay.jetty</groupId>
|
|
||||||
<artifactId>jetty-maven-plugin</artifactId>
|
|
||||||
<version>8.1.8.v20121106</version>
|
|
||||||
<configuration>
|
|
||||||
<stopKey>stop</stopKey>
|
|
||||||
<stopPort>5200</stopPort>
|
|
||||||
<webAppConfig>
|
|
||||||
<contextPath>/</contextPath>
|
|
||||||
</webAppConfig>
|
|
||||||
<scanIntervalSeconds>5</scanIntervalSeconds>
|
|
||||||
<connectors>
|
|
||||||
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
|
||||||
<port>4200</port>
|
|
||||||
<maxIdleTime>60000</maxIdleTime>
|
|
||||||
</connector>
|
|
||||||
</connectors>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<version>1.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>java</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<mainClass>cn.cloudowr.dict.Main</mainClass>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ public class Config extends com.jfinal.config.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));
|
||||||
mongoDatabase = mongoClient.getDatabase("dict");
|
mongoDatabase = mongoClient.getDatabase("ht");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MongoDatabase getMongoDataBase() {
|
public static MongoDatabase getMongoDataBase() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue