add
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
package com.qiaoba.common.base.order;
|
||||
|
||||
/**
|
||||
* 过滤器执行顺序
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023/7/6 9:22
|
||||
*/
|
||||
public interface FilterOrder {
|
||||
|
||||
/**
|
||||
* 动态数据源过滤器-执行顺序(最高)
|
||||
*/
|
||||
int DYNAMIC_DATASOURCE_FILTER_ORDER = -10000;
|
||||
|
||||
/**
|
||||
* 在线用户过滤器
|
||||
*/
|
||||
int ONLINE_USER_FILTER_ORDER = -9999;
|
||||
|
||||
}
|
@ -2,6 +2,7 @@ package com.qiaoba.common.web.utils;
|
||||
|
||||
import cn.hutool.http.ContentType;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.qiaoba.common.base.constants.BaseConstant;
|
||||
import com.qiaoba.common.base.result.AjaxResult;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@ -20,7 +21,7 @@ public class ResponseUtil {
|
||||
public static void response(HttpServletResponse response, String msg) throws IOException {
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
response.setContentType(ContentType.JSON.getValue());
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
response.setCharacterEncoding(BaseConstant.UTF8);
|
||||
PrintWriter writer = response.getWriter();
|
||||
writer.write(msg);
|
||||
writer.close();
|
||||
|
Reference in New Issue
Block a user