本文整理汇总了Java中cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder类的典型用法代码示例。如果您正苦于以下问题:Java EmbeddedMongoBuilder类的具体用法?Java EmbeddedMongoBuilder怎么用?Java EmbeddedMongoBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EmbeddedMongoBuilder类属于cz.jirutka.spring.embedmongo包,在下文中一共展示了EmbeddedMongoBuilder类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Override
@Bean(destroyMethod = "close")
public Mongo mongo() throws Exception {
return new EmbeddedMongoBuilder()
.version("3.4.2")
.build();
}
示例2: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
/**
* @return A new in memory MongoDB.
*/
@Bean(destroyMethod = "close")
public static Mongo mongo() throws IOException {
return new EmbeddedMongoBuilder()
.version("2.4.5")
.bindIp("127.0.0.1")
.port(12345)
.build();
}
示例3: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
/**
* Get mongeez runner mongeez runner.
*
* @return the mongeez runner
*/
@Override
@Bean
public Mongo mongo() throws Exception {
super.getLogger().info("MongeezRunner Running");
return new EmbeddedMongoBuilder()
.version(this.getDabaseVersion())
.bindIp(super.getDabaseURI())
.port(super.getDabasePort())
.build();
}
示例4: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Override
@Bean
public Mongo mongo() throws Exception {
return new EmbeddedMongoBuilder()
.version(DB_VERSION)
.bindIp(DB_URI)
.port(DB_PORT)
.build();
}
示例5: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean
public Mongo mongo() throws IOException {
System.setProperty("DB.TRACE","true");
return new EmbeddedMongoBuilder()
.version("2.6.0")
.bindIp("127.0.0.1")
.port(allocateRandomPort())
.build();
}
示例6: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean
public Mongo mongo() throws IOException {
System.setProperty("DB.TRACE","true");
return new EmbeddedMongoBuilder()
.version("2.13.1")
.bindIp("127.0.0.1")
.port(allocateRandomPort())
.build();
}
示例7: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod="close")
public Mongo mongo() throws IOException {
return new EmbeddedMongoBuilder()
.version("2.4.5")
.bindIp("127.0.0.1")
.port(12345)
.build();
}
示例8: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public Mongo mongo() throws IOException {
return new EmbeddedMongoBuilder().build();
}
示例9: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public Mongo mongo() throws IOException {
return new EmbeddedMongoBuilder().build();
}
示例10: mongo
import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public Mongo mongo() throws IOException {
return new EmbeddedMongoBuilder().version("2.6.1").bindIp("127.0.0.1").port(12345).build();
}