Skip to content

Commit

Permalink
Create a hello world controller
Browse files Browse the repository at this point in the history
  • Loading branch information
popchu committed Aug 30, 2019
1 parent 6ed31ef commit 635b5e9
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.rogergit.demo.springboottest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* TestController
*
* @author noah
*/
@RestController
@RequestMapping("test")
public class TestController {

@GetMapping(value = "hello")
public String helloWorld() {
return "Hello, World";
}
}

0 comments on commit 635b5e9

Please sign in to comment.