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


Java SpringApplicationBuilder.sources方法代码示例

本文整理汇总了Java中org.springframework.boot.builder.SpringApplicationBuilder.sources方法的典型用法代码示例。如果您正苦于以下问题:Java SpringApplicationBuilder.sources方法的具体用法?Java SpringApplicationBuilder.sources怎么用?Java SpringApplicationBuilder.sources使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.boot.builder.SpringApplicationBuilder的用法示例。


在下文中一共展示了SpringApplicationBuilder.sources方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    /**
     * set a default to use when no profile is configured.
     */
    DefaultProfileUtil.addDefaultProfile(application.application());
    return application.sources(StoreApp.class);
}
 
开发者ID:IBM,项目名称:Microservices-with-JHipster-and-Spring-Boot,代码行数:9,代码来源:ApplicationWebXml.java

示例2: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Application.class);
}
 
开发者ID:awaters1,项目名称:spring-security-firebase,代码行数:5,代码来源:Application.java

示例3: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    /**
     * set a default to use when no profile is configured.
     */
    DefaultProfileUtil.addDefaultProfile(application.application());
    return application.sources(SentryApp.class);
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:9,代码来源:ApplicationWebXml.java

示例4: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

    /**
     * set a default to use when no profile is configured.
     */
    DefaultProfileUtil.addDefaultProfile(application.application());
    return application.sources(JHipsterRegistry.class);
}
 
开发者ID:IBM,项目名称:Microservices-with-JHipster-and-Spring-Boot,代码行数:10,代码来源:ApplicationWebXml.java

示例5: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    /**
     * set a default to use when no profile is configured.
     */
    DefaultProfileUtil.addDefaultProfile(application.application());
    return application.sources(SpringIoApp.class);
}
 
开发者ID:deepu105,项目名称:spring-io,代码行数:9,代码来源:ApplicationWebXml.java

示例6: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
protected SpringApplicationBuilder configure ( SpringApplicationBuilder application ) {
    return application.sources( Application.class );
}
 
开发者ID:yujunhao8831,项目名称:spring-boot-mybatisplus-multiple-datasource,代码行数:4,代码来源:Application.java

示例7: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(RenrenApplication.class);
}
 
开发者ID:davichi11,项目名称:my-spring-boot-project,代码行数:5,代码来源:RenrenApplication.java

示例8: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(CalendarApplication.class);
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:5,代码来源:CalendarApplication.java

示例9: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Swagger2SpringBoot.class);
}
 
开发者ID:supersede-project,项目名称:replan_optimizer_v2,代码行数:5,代码来源:Swagger2SpringBoot.java

示例10: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Start.class);
}
 
开发者ID:stand1123,项目名称:sun-members,代码行数:5,代码来源:Start.java

示例11: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
	return builder.sources(DemoApplication.class);
}
 
开发者ID:axellageraldinc,项目名称:lj-line-bot,代码行数:5,代码来源:DemoApplication.java

示例12: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(HRClientBootApplication.class);
}
 
开发者ID:PacktPublishing,项目名称:Spring-5.0-Cookbook,代码行数:5,代码来源:HRClientBootApplication.java

示例13: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  return application.sources(ConfigServiceApplication.class);
}
 
开发者ID:dewey-its,项目名称:apollo-custom,代码行数:5,代码来源:ServletInitializer.java

示例14: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(CalendarClientApplication.class);
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:5,代码来源:CalendarClientApplication.java

示例15: configure

import org.springframework.boot.builder.SpringApplicationBuilder; //导入方法依赖的package包/类
@Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
logger.info("HR applications starting...");
      return application.sources(HRBootApplication.class);
  }
 
开发者ID:PacktPublishing,项目名称:Spring-5.0-Cookbook,代码行数:6,代码来源:HRBootApplication.java


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