Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
queueForTicket_bl
Project
Project
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
mengmeng
queueForTicket_bl
Commits
fe051a75
Commit
fe051a75
authored
Apr 19, 2024
by
lings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger,druid
parent
34f9538a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
DisableSwaggerUiController.java
...n/java/io/hmit/controller/DisableSwaggerUiController.java
+29
-0
No files found.
hmit-api/src/main/java/io/hmit/controller/DisableSwaggerUiController.java
0 → 100644
View file @
fe051a75
package
io
.
hmit
.
controller
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
@RestController
public
class
DisableSwaggerUiController
{
@RequestMapping
(
value
=
"swagger-ui.html"
,
method
=
RequestMethod
.
GET
)
public
void
getSwagger
(
HttpServletResponse
httpResponse
)
throws
IOException
{
httpResponse
.
setStatus
(
HttpStatus
.
NOT_FOUND
.
value
());
}
@RequestMapping
(
value
=
"doc.html"
,
method
=
RequestMethod
.
GET
)
public
void
getDoc
(
HttpServletResponse
httpResponse
)
throws
IOException
{
httpResponse
.
setStatus
(
HttpStatus
.
NOT_FOUND
.
value
());
}
@RequestMapping
(
value
=
"api-docs"
,
method
=
RequestMethod
.
GET
)
public
void
getDoc2
(
HttpServletResponse
httpResponse
)
throws
IOException
{
httpResponse
.
setStatus
(
HttpStatus
.
NOT_FOUND
.
value
());
}
}
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