-2

This is my project folder structure

I want to save the file path into database by using spring mvc

Roger Garcia
  • 327
  • 2
  • 12
SOURAV SANTRA
  • 151
  • 1
  • 1
  • 5
  • Welcome to StackOverflow! Please include the code in the post here, because links can quickly/easily get outdated if the URL changes. This leaves your post without any sort of backing to what you're talking about – cdomination Jul 19 '16 at 11:30

1 Answers1

0

You can use ServletContext.getRealPath(). See first answer to this question.

Community
  • 1
  • 1
Arthur
  • 1,478
  • 3
  • 22
  • 40