0

I am assigning a absolute path for a variable in my spring boot application but it is not getting picked up as I am getting a null pointer exception

private static final String TESTCASE_DIR = "/resources/static/bpmtestconfig/config/testcase/";
Michael Petch
  • 46,082
  • 8
  • 107
  • 198
Suman Toomula
  • 11
  • 1
  • 3

1 Answers1

0

configure in spring xml file as

<resources mapping="/resources/**" location="/resources/" />

it may work for you

Sangram Badi
  • 4,054
  • 9
  • 45
  • 78
  • Sam, I am not using any spring xml as spring boot automatically resolves the things and by default it will take "/" separator – Suman Toomula Oct 06 '16 at 14:08
  • check this link http://stackoverflow.com/questions/21123437/how-do-i-use-spring-boot-to-serve-static-content-located-in-dropbox-folder – Sangram Badi Oct 06 '16 at 14:13