Commit 60b89af8 authored by 邢足健's avatar 邢足健

添加swagger

parent 31062397
......@@ -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>
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment