currently two projects, An and BMagee A, are running on another linux machine on the local and local area network, and the swagger is fine. Project B, running on the linux machine on the LAN, swagger is fine, but running on the local IDEA, the swagger page opens as follows:
An and B use 2.9.2, both of which are springboot projects with the same configuration
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.myproj.modules"))
//.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build();
}
@Value("${custom.version}")
private String version;
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Api")
.description("")
.termsOfServiceUrl("http://xxx.xxx.xx")
.version(version)
.build();
}
}
http://localhost:8773/webjars http://localhost:8773/webjars/springfox-swagger-ui/springfox.js 404