使用log4j实现http请求日志入mongodb

This commit is contained in:
程序猿DD
2016-05-25 14:02:43 +08:00
parent 8ac97ac2f4
commit b46a27d8e6
8 changed files with 319 additions and 0 deletions
@@ -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;
}
}