Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 404在访问中http://localhost:9090/swagger-ui.html_Spring Boot_Swagger Ui_Springfox - Fatal编程技术网

Spring boot 404在访问中http://localhost:9090/swagger-ui.html

Spring boot 404在访问中http://localhost:9090/swagger-ui.html,spring-boot,swagger-ui,springfox,Spring Boot,Swagger Ui,Springfox,我有一个springboot应用程序,我想使用springfox为我的api生成swagger文档。点击时出现404未定义错误 请在下面找到堆栈跟踪: com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources/configuration/ui, Query String - null, HTTP Method - GET com.etc.commo

我有一个springboot应用程序,我想使用springfox为我的api生成swagger文档。点击时出现404未定义错误

请在下面找到堆栈跟踪:

com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources/configuration/ui, Query String - null, HTTP Method - GET
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources/configuration/ui, Response Status - 200
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources/configuration/security, Query String - null, HTTP Method - GET
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources/configuration/security, Response Status - 200
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources, Query String - null, HTTP Method - GET
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /swagger-resources, Response Status - 200
com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /error, Query String - null, HTTP Method - GET com.etc.common.services.interceptor.CommonServicesRequestInterceptor - Request URL - /error, Response Status - 404
请查找相同内容的屏幕截图:

您需要设置视图解析程序您需要在.property文件中设置视图解析程序