• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Where can I find Spring doc for reading YML config files?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is from where I am learning spring. But I can't find anything related with reading properties from YML/YAML files. Can someone help me pin point it?

Also, is this the only Spring doc reference out there? Maybe I am missing something else.. Thanks!
 
Sheriff
Posts: 22716
129
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The most common configuration properties can be found at https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#application-properties. These can be used both in properties files and YAML files.
 
Saloon Keeper
Posts: 26546
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring is partitioned into "Projects" and you'll probably find more complete documentation on the individual projects by going to the main spring.io webpage and selecting the project of interest from the menu.

Having said that, YAML is a slightly different matter. Spring has augmented its original configuration file options to include YAML, so there's a YAML processor available to core Spring. You didn't actually say if your "config file" was Spring config or your own application config, but I'd expect the same parser to be available to both.
 
reply
    Bookmark Topic Watch Topic
  • New Topic