使用log4j实现http请求日志入mongodb
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.didispace.web;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author 程序猿DD
|
||||
* @version 1.0.0
|
||||
* @date 16/5/19 下午1:27.
|
||||
* @blog http://blog.didispace.com
|
||||
*/
|
||||
@RestController
|
||||
public class HelloController {
|
||||
|
||||
@RequestMapping(value = "/hello", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public String hello(@RequestParam String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user