“Spring Boot Q&A”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第1行: | 第1行: | ||
=== 在 IntelliJ IDEA 中点击 Spring Boot 项目 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类 === | === 在 IntelliJ IDEA 中点击 Spring Boot 项目 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类 === | ||
+ | |||
+ | === 在 IntelliJ IDEA 中编写 Spring Boot 项目时配置参数项不出现提示 === | ||
https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html | 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 中点击 Spring Boot 项目 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类
在 IntelliJ IDEA 中编写 Spring Boot 项目时配置参数项不出现提示
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>