Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZhangKuan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
张宽
ZhangKuan
Commits
60b89af8
Commit
60b89af8
authored
Jun 20, 2018
by
邢足健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加swagger
parent
31062397
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
pom.xml
pom.xml
+16
-0
SwaggerConfig.java
.../java/com/haomostudio/SeekTruthBackend/SwaggerConfig.java
+11
-0
No files found.
pom.xml
View file @
60b89af8
...
...
@@ -210,6 +210,22 @@
<version>
${jackson.version}
</version>
</dependency>
<!--swagger 配置依賴 開始-->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
${springfox.version}
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
${springfox.version}
</version>
</dependency>
<!--swagger 配置依賴 結束-->
<!-- aop -->
<dependency>
<groupId>
org.aspectj
</groupId>
...
...
web/src/main/java/com/haomostudio/SeekTruthBackend/SwaggerConfig.java
0 → 100644
View file @
60b89af8
package
com
.
haomostudio
.
SeekTruthBackend
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.stereotype.Controller
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@Controller
@Configuration
@EnableSwagger2
public
class
SwaggerConfig
{
}
\ No newline at end of file
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