“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 配置类 === | ||
| + | pom.xml 中增加:<syntaxhighlight lang="xml"> | ||
| + | <dependency> | ||
| + | <groupId>org.springframework.boot</groupId> | ||
| + | <artifactId>spring-boot-configuration-processor</artifactId> | ||
| + | <optional>true</optional> | ||
| + | </dependency> | ||
| + | </syntaxhighlight> | ||
2023年2月12日 (日) 05:34的版本
在 IntelliJ IDEA 中点击 Spring Boot 项目 YAML|.yml|.properties 中的配置参数项无法跳转到 XXXProperties.java 配置类
pom.xml 中增加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>