继承BaseController
This commit is contained in:
parent
161a29f7cc
commit
b16b8d19fa
|
@ -22,7 +22,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/cache")
|
@RequestMapping("/cache")
|
||||||
public class CacheController {
|
public class CacheController extends BaseController {
|
||||||
|
|
||||||
private static Logger _log = LoggerFactory.getLogger(CacheController.class);
|
private static Logger _log = LoggerFactory.getLogger(CacheController.class);
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/hello")
|
@RequestMapping("/hello")
|
||||||
public class HelloController {
|
public class HelloController extends BaseController {
|
||||||
|
|
||||||
private static Logger _log = LoggerFactory.getLogger(HelloController.class);
|
private static Logger _log = LoggerFactory.getLogger(HelloController.class);
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
package com.zheng.cms.controller;
|
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.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 后台controller
|
* 后台controller
|
||||||
|
@ -20,7 +12,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/manage")
|
@RequestMapping("/manage")
|
||||||
public class ManageController {
|
public class ManageController extends BaseController {
|
||||||
|
|
||||||
private static Logger _log = LoggerFactory.getLogger(ManageController.class);
|
private static Logger _log = LoggerFactory.getLogger(ManageController.class);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue