使用swagger2---2.9.2版本,为什么使用 127.0.0.1和localhostUI不同
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
http://127.0.0.1:8081/swagger-ui.html
http://localhost:8081/swagger-ui.html
URL 后面的参数不一样
明显127.0.0.1的UI应该是新版ui,localhost是旧版UI,但默认启动是localhost:8081/swagger-ui.html
这是什么问题
localhost不一定是127.0.0.1,还可能是ipv6 的[::1]。