简体   繁体   中英

Intellij Idea doesn't see values in .yaml file, but successfully references .properties in @Value

I'm using @Value annotation in my spring boot application.
If I'm using application.properties file then Intellij Idea can go to those values if I Сtrl -Click them. But it doesn't work if I use application.yaml .

i think that you use the community edition and i am not sure but i think this only supports .properties files.

OR what i see is that your file ending is .yml, rename it to .yaml and it should work if you use the ultimate edition

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM