本文整理汇总了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);
}
示例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);
}
示例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/"));
}
示例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());
}
示例5: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<GreenfieldConfiguration> bootstrap) {
bootstrap.setName("green");
bootstrap.addBundle(new AssetsBundle("/static/", "/"));
}
示例6: initialize
import com.yammer.dropwizard.assets.AssetsBundle; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<XpressConfiguration> bootstrap) {
bootstrap.setName("Xpress");
bootstrap.addBundle(new AssetsBundle("/assets/", "/"));
}