forked from legah2045/UnityProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemoApp.java
More file actions
27 lines (23 loc) · 685 Bytes
/
Copy pathDemoApp.java
File metadata and controls
27 lines (23 loc) · 685 Bytes
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 com.mt.springmongo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Main Application controller.
*
* @author Mithun
*/
@Controller
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.mt.*")
public class DemoApp {
public static void main(String[] args) {
SpringApplication.run(DemoApp.class, args);
}
@RequestMapping("/")
public String index() {
return "index.html";
}
}