Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sqlrest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
comm
sqlrest
Commits
1280bde0
Commit
1280bde0
authored
Sep 27, 2024
by
inrgihc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正issue:IATX4D
parent
0e60c2a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sqlrest-core/src/main/java/com/gitee/sqlrest/core/servlet/ApiServletService.java
+2
-0
No files found.
sqlrest-core/src/main/java/com/gitee/sqlrest/core/servlet/ApiServletService.java
View file @
1280bde0
...
...
@@ -8,6 +8,7 @@ import com.gitee.sqlrest.common.exception.ResponseErrorCode;
import
com.gitee.sqlrest.core.exec.ApiExecuteService
;
import
com.gitee.sqlrest.persistence.dao.ApiAssignmentDao
;
import
com.gitee.sqlrest.persistence.entity.ApiAssignmentEntity
;
import
com.google.common.base.Charsets
;
import
java.io.IOException
;
import
javax.annotation.Resource
;
import
javax.servlet.ServletException
;
...
...
@@ -29,6 +30,7 @@ public class ApiServletService {
public
void
process
(
HttpMethodEnum
method
,
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
ServletException
,
IOException
{
response
.
setContentType
(
MediaType
.
APPLICATION_JSON_VALUE
);
response
.
setCharacterEncoding
(
Charsets
.
UTF_8
.
name
());
String
path
=
request
.
getRequestURI
().
substring
(
Constants
.
API_PATH_PREFIX
.
length
()
+
2
);
ApiAssignmentEntity
apiConfigEntity
=
apiAssignmentDao
.
getByUk
(
method
,
path
);
if
(
null
==
apiConfigEntity
||
!
apiConfigEntity
.
getStatus
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment