yanbolan
文章282
標籤199
類別26
springport application.yaml端口

springport application.yaml端口

51

As explained in Spring documentation, there are several ways to do that:

Either you set the port in the command line (for example 8888)

-Dserver.port=8888 or –server.port=8888

Example : java -jar -Dserver.port=8888 test.jar

Or you set the port in the application.properties

server.port=${port:4588}
or (in application.yml with yaml syntax)

server:
port: ${port:4588}


Keep in mind that if your environment variables are MYPACKAGE_KEY_PUBLIC and MYPACKAGE_KEY_PRIVATE the keyname should only be MYPACKAGE_KEY.
heroku ssh key

https://devcenter.wercker.com/administration/environment-variables/ssh-keys/using-ssh-keys/
系统变量

博主:yanbolan
文章連結:https://yuris.site/2020/10_08_5c40672e.html
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×