本文整理汇总了Java中com.yammer.dropwizard.assets.AssetsBundle类的典型用法代码示例。如果您正苦于以下问题:Java AssetsBundle类的具体用法?Java AssetsBundle怎么用?Java AssetsBundle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AssetsBundle类属于com.yammer.dropwizard.assets包,在下文中一共展示了AssetsBundle类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(final Bootstrap<Config> bootstrap) {
bootstrap.setName("DropwizardDemo server");
// serve all files in src/main/resources/webroot on /
bootstrap.addBundle(new AssetsBundle("/webroot/", "/"));
// ViewBundle for BookViews templating
bootstrap.addBundle(new ViewBundle());
bootstrap.addBundle(hibernate);
}
开发者ID:mley,项目名称:dwdemo,代码行数:13,代码来源:DropwizardDemo.java
示例2: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<TeamsServiceConfiguration> bootstrap) {
bootstrap.setName("dropwizard-jedis-example");
bootstrap.addBundle(new AssetsBundle("/assets/", "/"));
bootstrap.addBundle(new ViewBundle());
bootstrap.addBundle(jedisBundle);
}
开发者ID:anastasop,项目名称:dropwizard-jedis,代码行数:8,代码来源:TeamsService.java
示例3: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<MyAppConfiguration> bootstrap) {
bootstrap.setName("my-app-service");
bootstrap.getObjectMapperFactory().setSerializationInclusion(JsonInclude.Include.NON_NULL);
//serve some HTML resources
bootstrap.addBundle(new AssetsBundle("/assets/", "/myapp/"));
}
开发者ID:jacek99,项目名称:dropwizard-spring-di-security-onejar-example,代码行数:9,代码来源:MyAppService.java
示例4: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<FoxtrotServerConfiguration> bootstrap) {
bootstrap.setName("foxtrot");
bootstrap.addBundle(new AssetsBundle("/console/", "/"));
bootstrap.addCommand(new InitializerCommand());
}
开发者ID:Flipkart,项目名称:foxtrot,代码行数:7,代码来源:FoxtrotServer.java
示例5: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<GreenfieldConfiguration> bootstrap) {
bootstrap.setName("green");
bootstrap.addBundle(new AssetsBundle("/static/", "/"));
}
开发者ID:dev9com,项目名称:greenfield,代码行数:6,代码来源:GreenfieldService.java
示例6: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<XpressConfiguration> bootstrap) {
bootstrap.setName("Xpress");
bootstrap.addBundle(new AssetsBundle("/assets/", "/"));
}
开发者ID:mihai-chezan,项目名称:xpress,代码行数:6,代码来源:XpressService.java
注:本文中的com.yammer.dropwizard.assets.AssetsBundle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论