master
lzx 4 years ago
parent 540599ec94
commit 5c85eccd8e

@ -8,6 +8,7 @@
<version>2.5.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.story</groupId>
<artifactId>server</artifactId>
<version>0.0.1-SNAPSHOT</version>

@ -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…
Cancel
Save