Add support for property file encoding in @TestPropertySource

Prior to this commit, property files configured (or inferred) via
@TestPropertySource were read using the default encoding of the JVM.

This commit introduces an `encoding` attribute in @TestPropertySource
which allows developers to specify an explicit encoding for test
property files.

Closes gh-30982
This commit is contained in:
Sam Brannen
2023-08-05 13:44:15 +03:00
parent 59b78cc513
commit faf3c7831f
6 changed files with 96 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
# This file is saved using ISO-8859-1 encoding
text=G<EFBFBD>n<EFBFBD>rales