File was renamed from src/main/java/com/ycl/jxkg/configuration/spring/security/RestUtil.java |
| | |
| | | package com.ycl.jxkg.configuration.spring.security; |
| | | package com.ycl.jxkg.config.spring.security; |
| | | |
| | | import com.ycl.jxkg.base.RestResponse; |
| | | import com.ycl.jxkg.base.Result; |
| | | import com.ycl.jxkg.base.SystemCode; |
| | | import com.ycl.jxkg.utility.JsonUtil; |
| | | import com.ycl.jxkg.utils.JsonUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | |
| | | */ |
| | | public static void response(HttpServletResponse response, int systemCode, String msg, Object content) { |
| | | try { |
| | | RestResponse res = new RestResponse<>(systemCode, msg, content); |
| | | Result res = new Result<>(systemCode, msg, content); |
| | | String resStr = JsonUtil.toJsonStr(res); |
| | | response.setContentType("application/json;charset=utf-8"); |
| | | response.getWriter().write(resStr); |