Does myeclipse’s < script > path src still use the project name and webroot? Why?

  java, question

<script type=”text/javascript” src=”/test/WebRoot/js/jquery-2.1.4.js”></script>

Src starts with/,which means to access the root directory of your distribution package. As for when you access the project address, for examplehttp://localhost: 8080/, whether to add your project name after this is set in the configuration file of middleware (such as tomcat). myeclipse sets the root directory of your project and can right-click on the project-property, which has a deployment setting.