Java Code Examples for org.springframework.boot.builder.SpringApplicationBuilder#sources()

The following examples show how to use org.springframework.boot.builder.SpringApplicationBuilder#sources() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationWebXml.java    From okta-jhipster-microservices-oauth-example with Apache License 2.0 5 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    /**
     * set a default to use when no profile is configured.
     */
    DefaultProfileUtil.addDefaultProfile(application.application());
    return application.sources(GatewayApp.class);
}
 
Example 2
Source File: ServletInitializer.java    From springboot-learn with MIT License 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(SpringbootFreemarkerApplication.class);
}
 
Example 3
Source File: Application.java    From cloud-spring-boot-sample with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) 
{
    return application.sources(Application.class);
}
 
Example 4
Source File: BaseServiceApplication.java    From hdw-dubbo with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    logger.info("----BaseServiceApplication 启动----");
    return application.sources(BaseServiceApplication.class);

}
 
Example 5
Source File: Application.java    From spring_boot with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(Application.class);
}
 
Example 6
Source File: RealtimeLogApplication.java    From realtime-log with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	return application.sources(RealtimeLogApplication.class);
}
 
Example 7
Source File: Main.java    From JSF-on-Spring-Boot with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(new Class[] { Main.class, Initializer.class});
}
 
Example 8
Source File: CalendarApplication.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(CalendarApplication.class);
}
 
Example 9
Source File: ServletInitializer.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Override  
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {  
    return application.sources(Application.class);  
}
 
Example 10
Source File: HRBootApplication.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
logger.info("HR applications starting...");
      return application.sources(HRBootApplication.class);
  }
 
Example 11
Source File: DeveloperjobsApplication.java    From springboot-sqlite-mini-website with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(DeveloperjobsApplication.class);
}
 
Example 12
Source File: ServletInitializer.java    From tx-lcn with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(TxManagerApplication.class);
}
 
Example 13
Source File: ServletInitializer.java    From Spring-5.0-Projects with MIT License 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	return application.sources(SpringAuthApplication.class);
}
 
Example 14
Source File: GunsRestServletInitializer.java    From MeetingFilm with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(CinemaApplication.class);
}
 
Example 15
Source File: DimpleBlogServletInitializer.java    From DimpleBlog with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(DimpleBlogApplication.class);
}
 
Example 16
Source File: CalendarApplication.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(CalendarApplication.class);
}
 
Example 17
Source File: CalendarApplication.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(CalendarApplication.class);
}
 
Example 18
Source File: ServletInitializer.java    From onetwo with Apache License 2.0 4 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	return application.sources(ProjectStarter.class);
}
 
Example 19
Source File: Start.java    From balance-transfer-java with Apache License 2.0 3 votes vote down vote up
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	return application.sources(Start.class);
	
	
	
}
 
Example 20
Source File: ZkDoctorMain.java    From zkdoctor with Apache License 2.0 2 votes vote down vote up
/**
 * 使用外部tomcat容器时,需继承SpringBootServletInitializer,重写configure方法
 *
 * @param builder SpringApplicationBuilder
 * @return
 */
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    builder.sources(this.getClass());
    return super.configure(builder);
}