rzg
2020-10-22 d293563af43409590172f534a74c5a5cb72ecb04
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
package com.yckj;
 
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@SpringBootApplication
@ServletComponentScan
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    @RestController
    public class indexService {
        @RequestMapping("/")
        public String index() {
            // TODO: 2020/10/22  
//            http://localhost:8089/
//            http://192.168.10.151:8089/
            return "hello, init complate";
        }
 
    }
}