Springfox Swagger Generates Port 80 Requests for HTTPS URLs

I am having a problem using springfox-swagger2 v2.2.0 related to port 80 filling out a request for an HTTP url.

In any case, disable port generation or set port to 443 programmatically based on Spring Profile?

Generated CURL:

curl -X GET --header "Accept: application / json" " https://test.com:80/api/users/search "

+4
source share
2 answers

. , Swagger Spring Framework, 80 json (v2/api-docs) (Check Swagger2Controller.class). Spring 4.1.4.Release. 4.3.2. .

0

, spring @Akshay (, Swagger2Controller.class), application-dev.yml( ).

springfox.documentation.swagger.v2.host: hostName: 443

0

Source: https://habr.com/ru/post/1611546/


All Articles