Can I read a section of yaml without spring ?

I have a yaml file with say 3 properties sections A,B,C . I wanted to know if I can load a section only like B in in variable map of properties() . Parse will do for whole yaml, and not sure on spring . Manual map feels troublesome
5 Replies
JavaBot
JavaBot3d ago
This post has been reserved for your question.
Hey @CJ__47! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st3d ago
Just use a library like snakeyaml?
CJ__47
CJ__47OP3d ago
Yeh ,either that but wanted to reduce third party dependency or create new yaml for parse . But, just wanted to check , more methods in java or spring
dan1st
dan1st3d ago
What do you mean with creating a new yaml for parse? If you want to parse YAML files, you should really consider using a dependency and this doesn't need to be Spring
JavaBot
JavaBot3d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?