Spring Boot 中 application.properties 檔案中的以下兩個陳述句有什么區別。
server.port =8080 和 server.port = ${PORT:8080}
請幫忙解釋
uj5u.com熱心網友回復:
server.port = ${PORT:8080}將檢查環境變數PORT并取其值,如果不存在則默認為8080.server.port =8080將一直是8080
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/530907.html
上一篇:如何在候診室自動創建用戶組?
