parent
540599ec94
commit
5c85eccd8e
@ -0,0 +1,15 @@
|
||||
package com.story.server;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
@Controller
|
||||
public class HomeController {
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
public String hello() {
|
||||
return "hello";
|
||||
|
||||
}
|
||||
}
|
@ -1 +1,5 @@
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/test
|
||||
username:
|
||||
password:
|
||||
|
Loading…
Reference in new issue