Specifying an http proxy with spring-boot

前端 未结 4 2182
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 00:08

How do I specify a http proxy to use when running a spring-boot fat war as a tomcat server?

I have tried the following which is not working.

java -ja         


        
4条回答
  •  粉色の甜心
    2021-01-03 00:28

    You may configure all property of REMOTE DEVTOOLS (RemoteDevToolsProperties) in application.properties.

    spring.devtools.remote.context-path=  # Context path used to handle the remote connection.
    spring.devtools.remote.proxy.host= # The host of the proxy to use to connect to the remote application.
    spring.devtools.remote.proxy.port= # The port of the proxy to use to connect to the remote application.
    spring.devtools.remote.restart.enabled=true # Whether to enable remote restart.
    spring.devtools.remote.secret= # A shared secret required to establish a connection (required to enable remote support).  
    spring.devtools.remote.secret-header-name=X-AUTH-TOKEN # HTTP header used to transfer the shared secret.
    

提交回复
热议问题