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";
|
}
|
|
}
|
}
|