add
This commit is contained in:
@ -59,6 +59,11 @@ public class BaseConstant {
|
||||
*/
|
||||
public static final String RESOURCE_PREFIX = "/resource";
|
||||
|
||||
/**
|
||||
* 资源映射路径 正则
|
||||
*/
|
||||
public static final String RESOURCE_PATTERN = RESOURCE_PREFIX + "/**";
|
||||
|
||||
/**
|
||||
* 是
|
||||
*/
|
||||
|
@ -12,10 +12,10 @@
|
||||
<artifactId>qiaoba-common-redis</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- redis -->
|
||||
<!-- lock4j -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>lock4j-redis-template-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.qiaoba</groupId>
|
||||
|
@ -1,5 +1,7 @@
|
||||
package com.qiaoba.common.web.utils;
|
||||
|
||||
import cn.hutool.http.ContentType;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.qiaoba.common.base.result.AjaxResult;
|
||||
|
||||
@ -18,7 +20,7 @@ public class ResponseUtil {
|
||||
|
||||
public static void response(HttpServletResponse response, String msg) throws IOException {
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
response.setContentType("text/plain; charset=UTF-8");
|
||||
response.setContentType(ContentType.JSON.getValue());
|
||||
PrintWriter writer = response.getWriter();
|
||||
writer.write(msg);
|
||||
writer.close();
|
||||
|
Reference in New Issue
Block a user