I have created a spring-boot project in /home/MYUSERNAME folder in the spring boot project there are html and jsp files in webapps/jsps/ folder. So, how do I link them to www/html folder?

Is it a good way to do it ?

  • This is not an ubuntu question, I would ask on stackoverflow – j-money Sep 20 at 23:34
  • Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here – Prodip Sep 22 at 1:40

Did you try with a symbolic link?

usage: ln [-Ffhinsv] source_file [target_file]
       ln [-Ffhinsv] source_file ... target_dir
       link source_file target_file


ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html

If destination folder already exists, you have to delete it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.