-
Notifications
You must be signed in to change notification settings - Fork 0
/
SweBotApplication.java
26 lines (22 loc) · 1.17 KB
/
SweBotApplication.java
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
package se.mow_e;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
@SuppressWarnings("SpringBootApplicationSetup")
@OpenAPIDefinition(info = @Info(title = "SweBot", version = "Sigma"), servers = {@Server(url = "/", description = "Default Server URL")})
@SecurityScheme(name = "auth", scheme = "bearer", bearerFormat = "jwt", type = SecuritySchemeType.HTTP, in = SecuritySchemeIn.HEADER)
@EnableScheduling
@SpringBootApplication
@ComponentScan("se.mow_e")// <---- DO NOT TOUCH, Band-aid/Feature for Tests
public class SweBotApplication {
public static void main(String[] args) {
SpringApplication.run(SweBotApplication.class, args);
}
}