修改swagger-ui的界面

1.依赖

		<!-- swagger -->
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger2</artifactId>
			<version>2.9.2</version>
		</dependency>
	  <!--<dependency>-->
	  <!--<groupId>io.springfox</groupId>-->
	  <!--<artifactId>springfox-swagger-ui</artifactId>-->
	  <!--<version>2.9.2</version>-->
	  <!--</dependency>-->
	  <dependency>
		  <groupId>com.github.xiaoymin</groupId>
		  <artifactId>swagger-bootstrap-ui</artifactId>
		  <version>1.9.3</version>
	  </dependency>

2.访问 地址/swagger-ui.html  改为  doc.html

猜你喜欢

转载自blog.csdn.net/qq_39564710/article/details/115179987
今日推荐