-
Notifications
You must be signed in to change notification settings - Fork 3
/
TimeTrackingServer.java
29 lines (26 loc) · 1.25 KB
/
TimeTrackingServer.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
27
28
29
package ua.timetracker.timetrackingserver;
import org.neo4j.springframework.data.config.EnableNeo4jAuditing;
import org.neo4j.springframework.data.repository.config.EnableReactiveNeo4jRepositories;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import reactor.tools.agent.ReactorDebugAgent;
@EnableNeo4jAuditing
@EnableReactiveNeo4jRepositories("ua.timetracker.shared.persistence.repository.reactive")
@EnableTransactionManagement
@EnableConfigurationProperties
@SpringBootApplication(
scanBasePackages = {
"ua.timetracker.shared.config",
"ua.timetracker.timetrackingserver.config",
"ua.timetracker.timetrackingserver.controller",
"ua.timetracker.timetrackingserver.service"
}
)
public class TimeTrackingServer {
public static void main(String[] args) {
ReactorDebugAgent.init(); // Requires JDK, Should be not costly as is bytecode generated, otherwise no stacktraces in logs
SpringApplication.run(TimeTrackingServer.class, args);
}
}