Read files under the resources path through ClassPathResource
Then write it into another file, as shown in the figure:
Check crt-openrc after writing, it is not written, and no error is reported, the file is empty:
In fact, the ClassPathResource class reads the built file path, here it is:
I am running with the test class here, so under test-classes