首页>代码>使用aop进行多数据源切换 springMVC+spring+mybatis增删改查的使用>/dynamicDataSource/src/main/java/com/core/controller/CoreErrorController.java
package com.core.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
 
 


@Controller
public class CoreErrorController {
	private static Logger LOG = LoggerFactory.getLogger(CoreErrorController.class);

	//显示错误
	@RequestMapping("errorInfo")
	public ModelAndView errorInfo(HttpServletRequest request, HttpServletResponse response){
		System.out.println("views/errorInfo");
		ModelAndView mv=new ModelAndView();
		
		String code=request.getParameter("errorcode");
		mv.addObject("errorcode", code);
		mv.setViewName("err/errorInfo");
		return mv;
	}
	
	//显示
	@RequestMapping("err400")
	public ModelAndView err400(HttpServletRequest request, HttpServletResponse response){
		ModelAndView mv=new ModelAndView();
		System.out.println("views/err400");
		mv.setViewName("err/err400");
		return mv;
	}

 
				
}
最近下载更多
543666826  LV33 2021年11月20日
qianyexingren  LV10 2020年12月30日
jiayouyy  LV8 2020年5月24日
houliukou  LV37 2020年2月4日
shuiyizq  LV5 2019年12月27日
咲暮流年  LV4 2019年10月9日
kissnicky  LV7 2019年9月24日
ChenXingyu  LV13 2019年9月18日
13734993  LV7 2019年8月8日
wxm4252  LV12 2019年8月5日
最近浏览更多
gecongkai  LV8 2023年6月22日
shuidajiao 2023年6月18日
暂无贡献等级
weijianguo  LV7 2023年5月21日
yeyuuu  LV6 2023年5月18日
finallywang 2023年4月24日
暂无贡献等级
李亮  LV19 2023年3月6日
微信网友_6248713511227392  LV11 2022年12月5日
mikyfx  LV4 2022年11月30日
00044304  LV6 2022年8月24日
Lmfbaby  LV9 2022年5月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友