M. *_*tin 9 java spring intellij-idea spring-boot
我正在运行IntelliJ IDEA 2017.3.4(终极版).我有一个Spring Boot项目,定义了Spring属性,它将被自动连接到类中的@Value注释字段中@Component.属性在application.properties中定义.
默认情况下,IntelliJ显示变量的值而不是实际的变量表达式(使用颜色方案可以明显表明这不是实际的值).单击该值将显示实际的变量表达式.
例如:
@Value("${my.property.value}")
private String myProperty;
Run Code Online (Sandbox Code Playgroud)
如果"my.property.value"解析为"theValue",则显示如下:
@Value("theValue")
private String myProperty;
Run Code Online (Sandbox Code Playgroud)
我宁愿不这样做.是否优先禁用此功能?我没有幸运找到一个搜索IDEA偏好或在线的答案.
| 归档时间: |
|
| 查看次数: |
1327 次 |
| 最近记录: |