当前位置: 首页>>代码示例>>Java>>正文


Java EmbeddedMongoBuilder类代码示例

本文整理汇总了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();
}
 
开发者ID:BakkerTom,项目名称:happy-news,代码行数:8,代码来源:TestConfig.java

示例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();
}
 
开发者ID:BakkerTom,项目名称:happy-news,代码行数:12,代码来源:TwitterCrawlerTest.java

示例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();
}
 
开发者ID:thefinerthingsclub,项目名称:finerleague,代码行数:16,代码来源:MongoLocalConfig.java

示例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();
}
 
开发者ID:thefinerthingsclub,项目名称:finerleague,代码行数:10,代码来源:MongoTestConfig.java

示例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();
}
 
开发者ID:brunoquadrotti,项目名称:menuber,代码行数:10,代码来源:MongoConfiguration.java

示例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();
}
 
开发者ID:EMN-FILA2-2015,项目名称:telosys-tools-saas-back,代码行数:10,代码来源:MongoConfiguration.java

示例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();
}
 
开发者ID:jiwhiz,项目名称:JiwhizBlogWeb,代码行数:9,代码来源:JiwhizBlogRepositoryTestApplication.java

示例8: mongo

import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public Mongo mongo() throws IOException {
	return new EmbeddedMongoBuilder().build();
}
 
开发者ID:oncoblocks,项目名称:centromere,代码行数:5,代码来源:TestMongoConfig.java

示例9: mongo

import cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public Mongo mongo() throws IOException {
    return new EmbeddedMongoBuilder().build();
}
 
开发者ID:woemler,项目名称:spring-blog,代码行数:5,代码来源:EmbeddedDataSourceConfig.java

示例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();
}
 
开发者ID:hantsy,项目名称:spring4-sandbox,代码行数:5,代码来源:MongoConfig.java


注:本文中的cz.jirutka.spring.embedmongo.EmbeddedMongoBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。