3

I've used the @PropertySource and @Value annotations for reading external file properties and it works great. But if I want to write the same @Value annotated properties out to an external file, can that be done? I've done some searching but can't seem to find a way of doing it. Is there native support for this?

njk2015
  • 543
  • 9
  • 20

1 Answers1

5

You should have a look at the DefaultPropertiesPersister. An example is provided here.

Hannoun Yassir
  • 20,583
  • 23
  • 77
  • 112