當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。