Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyea committed Apr 27, 2018
0 parents commit 16b39b5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.springboot.springbootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class SpringbootdemoApplication {

@RequestMapping("/")
String index() {
return "Hello SpringBoot";
}

public static void main(String[] args) {
SpringApplication.run(SpringbootdemoApplication.class, args);
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.springboot.springbootdemo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringbootdemoApplicationTests {

@Test
public void contextLoads() {
}

}

0 comments on commit 16b39b5

Please sign in to comment.