南京地铁检修用FBS项目(springboot-mybatis框架)
rzg
2020-10-21 498770edd4aebe9bb22f0d94473132606cc483bd
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
package com.yckj;
 
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @author yyb
 * @time 2019/3/26
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    @RestController
    @RequestMapping(value = "/init", method = RequestMethod.GET)
    public class indexService {
        @RequestMapping("/index")
        public String index() {
//            http://localhost:8080/init/
            return "hello, init complate";
        }
 
    }
}