summaryrefslogtreecommitdiff
path: root/pse-server/src/main/java/org/psesquared/server/ServerApplication.java
blob: a71f45116ccafe175dfc82fdbadfa6b3fff66e81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.psesquared.server;

import org.psesquared.server.config.EmailConfigProperties;
import org.psesquared.server.config.SecurityConfigProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

/**
 * The main class responsible for starting the application.
 */
@SpringBootApplication
@EnableConfigurationProperties({SecurityConfigProperties.class,
    EmailConfigProperties.class})
public class ServerApplication {

  /**
   * The main function starting the spring application.
   *
   * @param args Arguments may be given
   */
  public static void main(final String[] args) {
    SpringApplication.run(ServerApplication.class, args);
  }

}