[英]How to override spring boot properties?
You have two options. 您有两个选择。
server.port=8081
in application.properties file in spring boot application. server.port=8081
。 -Dserver.port=8081
in VM arguments in eclipse as displayed in the image. -Dserver.port=8081
,在Eclipse的VM参数中仅配置-Dserver.port=8081
。 Use -Dserver.port=8081
as vm argument from run configuration of eclipse. 使用
-Dserver.port=8081
作为Eclipse运行配置中的vm参数。 It will work 会工作的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.