继承BaseController

This commit is contained in:
shuzheng 2016-11-24 17:02:39 +08:00
parent 161a29f7cc
commit b16b8d19fa
3 changed files with 3 additions and 11 deletions

View File

@ -22,7 +22,7 @@ import javax.servlet.http.HttpServletRequest;
*/
@Controller
@RequestMapping("/cache")
public class CacheController {
public class CacheController extends BaseController {
private static Logger _log = LoggerFactory.getLogger(CacheController.class);

View File

@ -27,7 +27,7 @@ import java.util.Map;
*/
@Controller
@RequestMapping("/hello")
public class HelloController {
public class HelloController extends BaseController {
private static Logger _log = LoggerFactory.getLogger(HelloController.class);

View File

@ -1,17 +1,9 @@
package com.zheng.cms.controller;
import com.zheng.common.util.EhCacheUtil;
import com.zheng.common.util.PropertiesFileUtil;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
/**
* 后台controller
@ -20,7 +12,7 @@ import javax.servlet.http.HttpServletRequest;
*/
@Controller
@RequestMapping("/manage")
public class ManageController {
public class ManageController extends BaseController {
private static Logger _log = LoggerFactory.getLogger(ManageController.class);