继承BaseController
This commit is contained in:
parent
161a29f7cc
commit
b16b8d19fa
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue