@Configuration @Import(value=ArchiveServerApplicationConfiguration.class) public class ArchiveServerApplication extends Object
Configuration for the main SpringApplication
and central point of
entry.
The main(String[])
method is called when the application is started
and takes care of creating a SpringApplication
for the main server
and child application for the various web contexts.
In order to keep things simple, each server port is delegated to a separate application that runs an embedded servlet container. This way, the standard methods provided by Spring Boot can be used to initialize the embedded servlet container.
Instances of this class are safe for concurrent read access but are not safe for concurrent write access. Typically, this should not be a problem because an instance of this class is initialized once at application startup and then only used for read access.
In order to keep this class comprehensible, most of the actual configuration
is delegated to ArchiveServerApplicationConfiguration
, which is
imported by this class. This class mainly takes care of preparing the
environment and starting the application context.
Constructor and Description |
---|
ArchiveServerApplication() |
public static void main(String[] args)
args
- command-line arguments.Copyright © 2011–2017 aquenos GmbH. All rights reserved.