我对Spring Boot很熟悉,刚刚开始学习。我使用Spring Initializer创建了一个新的Spring Boot项目,并将其导入IntelliJ。然而,我无法理解为什么应用程序.属性被忽略。以下是我的项目结构:
- 钢筋混凝土 主要的 此处为javajava代码 资源 静止的 模板 应用程序.属性 方案.sql 测验
All of the props in 应用程序.属性 are gray and say "Unused property" when hovered over. I've tried deleting the .idea folder, invalidating caches, and re-importing the project. I've tried unmarking and remarking the 资源 folder as "资源". Nothing seems to work. However, if I import the exact same project into Eclipse, then 应用程序.属性 is recognized. This makes me think the issue is specifically with IntelliJ. I've tried looking up solutions but none of them work. I don't understand how an enterprise IDE can't properly run a boilerplate Spring Boot app. If anyone could help, I'd appreciate it!
I tried running the Spring Boot app. I expected the project to recognize the props defined in 应用程序.属性. However, the props are not recognized.