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,003
  • 11
  • 45
  • 61

1 Answers1

1

The spring way would be using the ResourceLoader.

@See Spring Reference - Chapter 4.4 The ResourceLoader

Ralph
  • 115,440
  • 53
  • 279
  • 370