Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
f501e27b
Commit
f501e27b
authored
Mar 19, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
d65e9108
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
pom.xml
pom.xml
+1
-1
SwaggerConfig.java
...java/cn/wisenergy/chnmuseum/party/conf/SwaggerConfig.java
+3
-9
No files found.
pom.xml
View file @
f501e27b
...
...
@@ -168,7 +168,7 @@
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
30.1
-jre
</version>
<version>
29.0
-jre
</version>
</dependency>
<!-- JWT Authentication -->
<dependency>
...
...
src/main/java/cn/wisenergy/chnmuseum/party/conf/SwaggerConfig.java
View file @
f501e27b
...
...
@@ -3,7 +3,6 @@ package cn.wisenergy.chnmuseum.party.conf;
import
com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.ResponseEntity
;
import
springfox.documentation.builders.ApiInfoBuilder
;
import
springfox.documentation.builders.PathSelectors
;
import
springfox.documentation.builders.RequestHandlerSelectors
;
...
...
@@ -13,7 +12,6 @@ import springfox.documentation.spi.service.contexts.SecurityContext;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
java.time.LocalDate
;
import
java.util.List
;
import
static
com
.
google
.
common
.
collect
.
Lists
.
newArrayList
;
...
...
@@ -29,18 +27,14 @@ public class SwaggerConfig {
@Bean
public
Docket
petApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
pathMapping
(
"/"
)
.
select
()
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"cn.wisenergy.
chnmuseum.party.web.controller
"
))
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"cn.wisenergy.
datastation.web.api
"
))
.
paths
(
PathSelectors
.
any
())
.
build
()
.
apiInfo
(
apiInfo
())
.
pathMapping
(
"/"
)
.
directModelSubstitute
(
LocalDate
.
class
,
String
.
class
)
.
genericModelSubstitutes
(
ResponseEntity
.
class
)
.
useDefaultResponseMessages
(
false
)
//.securitySchemes(newArrayList(apiKey()))
//.securityContexts(newArrayList(securityContext()))
.
enableUrlTemplating
(
false
)
;
;
}
private
ApiInfo
apiInfo
()
{
...
...
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