Skip to content

Instantly share code, notes, and snippets.

@marsyang1
Last active May 29, 2016 14:09
Show Gist options
  • Select an option

  • Save marsyang1/700a94bf60e8b3d67600d7bb7ccb5f31 to your computer and use it in GitHub Desktop.

Select an option

Save marsyang1/700a94bf60e8b3d67600d7bb7ccb5f31 to your computer and use it in GitHub Desktop.
#http://stackoverflow.com/questions/15337409/updating-property-value-in-properties-file-without-deleting-other-values
FileInputStream in = new FileInputStream("First.properties");
Properties props = new Properties();
props.load(in);
in.close();
FileOutputStream out = new FileOutputStream("First.properties");
props.setProperty("country", "america");
props.store(out, null);
out.close();
#https://mariuszprzydatek.com/2013/07/29/spring-localized-exception-handling-in-rest-api/
#http://www.concretepage.com/spring-4/spring-4-mvc-internationalization-i18n-and-localization-l10n-annotation-example#configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment