spring mvc base init
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package com.heibaiying.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
/**
|
||||
* @author : heibaiying
|
||||
* @description : hello spring
|
||||
*/
|
||||
|
||||
@Controller
|
||||
@RequestMapping("mvc")
|
||||
public class HelloController {
|
||||
|
||||
@RequestMapping("hello")
|
||||
private String hello() {
|
||||
return "hello";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user