“Spring Boot Q&A”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
=== 在 IntelliJ IDEA 中点击 Spring Boot 项目 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类 ===
+
=== 在 IntelliJ IDEA 中点击 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类 ===
 +
 
 +
=== 在 IntelliJ IDEA 中编写 YAML|.yml|.properties 时配置参数不提示 ===
 +
https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html
 
pom.xml 中增加:<syntaxhighlight lang="xml">
 
pom.xml 中增加:<syntaxhighlight lang="xml">
 
         <dependency>
 
         <dependency>

2023年2月12日 (日) 05:37的最新版本

在 IntelliJ IDEA 中点击 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类

在 IntelliJ IDEA 中编写 YAML|.yml|.properties 时配置参数不提示

https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html

pom.xml 中增加:

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>