SpringApplication

constructor(primarySources: Array<Class<out Any>>)

Create a new SpringApplication instance. The application context will load beans from the specified primary sources (see class-level documentation for details). The instance can be customized before calling run.

Parameters

primarySources

the primary bean sources

See also


constructor(resourceLoader: ResourceLoader, primarySources: Array<Class<out Any>>)

Create a new SpringApplication instance. The application context will load beans from the specified primary sources (see class-level documentation for details). The instance can be customized before calling run.

Parameters

resourceLoader

the resource loader to use

primarySources

the primary bean sources

See also