spring - 为什么 Intellij 会向我显示有关我的弹簧配置文件的警告?
问题描述
我已经开始尝试使用 Spring 配置文件,从那时起,我偶尔会在一些文件顶部收到警告(我认为这是一个警告?),我注意到这些文件不受 Spring 管理
我已经用谷歌搜索了,但我没有找到任何信息,我看到了什么“什么”,为什么我在某些文件中看到它而不是在其他文件中,以及如何处理它。
如果有帮助,这是我的 application-properties.yml:
spring:
datasource:
password: root
username: root
url: jdbc:mysql://localhost:3306/chatt?serverTimezone=UTC
jpa:
hibernate.ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
profiles:
active:
- dev
解决方案
这不是警告,而是通过顶部编辑器面板在活动配置文件之间切换的功能,它记录在 IntelliJ IDEA 帮助中:
推荐阅读
- python - Python Pillow 多色文字
- kubernetes - 如何在 docker 命令中切换用户(su)
- java - 使用 Java 的 BreakIterator 解决边缘案例
- mysql - 在每个组合上使用递归预填充 Sql 数据
- javascript - 直接查看到 Print Preview Firefox
- node.js - 从模块向 ExpressJS 应用程序添加路由
- android - Flutter Doctor --android-licenses:线程“主”java.lang.NoClassDefFoundError 中的异常
- c# - 更新数组项(使用 C# Mongo 驱动程序)。可能吗?
- kubernetes - 如何将 Active Directory/AWS IAM 集成到 EKS Kubernetes 仪表板访问
- amazon-web-services - AWS EMR 因验证错误而终止 - 安全组错误