-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminMain.java
More file actions
42 lines (38 loc) · 1.36 KB
/
AdminMain.java
File metadata and controls
42 lines (38 loc) · 1.36 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
40
41
42
import com.witdor.core.filter.CORSFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* 把今天最好的表现当作明天最新的起点..~
* いま 最高の表現 として 明日最新の始発..~
* Today the best performance as tomorrow newest starter!
* Created by IntelliJ IDEA.
*
* @author: xiaomo
* @github: https://github.com/qq83387856
* @email: [email protected]
* @QQ_NO: 83387856
* @Date: 2016/9/3 15:28
* @Description: admin启动器
* @Copyright(©) 2016 by xiaomo.
**/
@Configuration
@EnableAutoConfiguration
@ComponentScan("com.witdor")
@EntityScan("com.witdor.*.model")
@EnableTransactionManagement
@EnableJpaRepositories("com.witdor.*.dao")
public class AdminMain {
public static void main(String[] args) throws Exception {
SpringApplication.run(AdminMain.class, args);
}
@Bean
public CORSFilter corsFilter() {
return new CORSFilter();
}
}