-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiUserApplication.java
More file actions
39 lines (35 loc) · 1.24 KB
/
ApiUserApplication.java
File metadata and controls
39 lines (35 loc) · 1.24 KB
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
30
31
32
33
34
35
36
37
38
39
package com.example.apiuser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EnableJpaAuditing
@SpringBootApplication(scanBasePackages = {
"com.example.apiuser",
"com.nowait.auth"
})
@EntityScan(basePackages = {
"com.example.menu.entity", // domain-menu
"com.example.domainstore.entity", // domain-store
"com.example.domaintoken.entity",
"com.nowaiting.user.entity",
"com.nowait.domainbookmark.entity",
"com.nowait.domainreservation.entity",
"com.nowait.domainorder.entity",
"com.nowait.domainorder.entity"
})
@EnableJpaRepositories(basePackages = {
"com.example.menu.repository",
"com.nowaiting.user.repository",
"com.example.domainstore.repository",
"com.example.domaintoken.repository",
"com.nowait.domainbookmark.repository",
"com.nowait.domainorder.repository",
"com.nowait.domainreservation.repository"
})
public class ApiUserApplication {
public static void main(String[] args) {
SpringApplication.run(ApiUserApplication.class, args);
}
}