2

I am asking a very naive and newbie question.

Can anybody please tell me the correct way to load a file present under the src/conf or src/resources directory into my Java class using Spring.

Vivek
  • 2,091
  • 11
  • 46
  • 61

1 Answers1

1

The spring way would be using the ResourceLoader.

@See Spring Reference - Chapter 4.4 The ResourceLoader

Ralph
  • 118,862
  • 56
  • 287
  • 383