@ConfigurationProperties(prefix="") 没有指定 classpath 时,IDEA 提示没有找到 classpath。 原因: 1--》在没指定路劲的情况下,默认在 resource 下的 applications.properties (yml) 中查找, 如果找到则返回值,如果没有找到则返回默认值null/0/false…所以不用管它也是 可以正常运行的, 有时候无法注释数据为null 2--》加入依赖:
可以关闭 IDEA 的提示: setting 下搜索 spring,找到 springBoot 取消勾选 show notification panel controller的使用
|
|