Java example to create .properties file from a given XML file. This code can be used to read properties key-values from XML file, to be used in the application code.
The converted output properties file is as follows:
application.properties
#Converted from applicationProperties.xml#Mon Jul 23 18:15:00 IST 2018spring.batch.job.enabled=falseinput.dir=c\:/temp/inputspring.main.banner-mode=off
Drop me your questions in the comment section.
Happy Learning !!
Comments
Subscribe
1 Comment
Most Voted
NewestOldest
Inline Feedbacks
View all comments
Lokesh Gupta
A fun-loving family man, passionate about computers and problem-solving, with over 15 years of experience in Java and related technologies.
An avid Sci-Fi movie enthusiast and a fan of Christopher Nolan and Quentin Tarantino.
Comments