application.properties中的注释

问题描述 投票:0回答:1

我在Spring世界里是个新手。我在使用 应用程序.属性 来设置不同的端口值。我如何在application.properties文件中注释一些代码?

java spring eclipse spring-jdbc application.properties
1个回答
3
投票

您可以在注释行开始时使用 #


2
投票

使用 # 在起始行,需要注释的属性。


2
投票

来源于: https:/en.wikipedia.orgwiki.properties。

开始一条线 #! 将该行标记为注释。

# This is a comment 
! The exclamation mark can also mark text as comments.
© www.soinside.com 2019 - 2024. All rights reserved.