maven 项目 其中配置文件
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>9081</port>
<uriEncoding>UTF-8</uriEncoding>
</configuration>
</plugin>
我使用maven 中指令 tomcat7:run 启动项目,然后使用访问路径 localhost:port/project 可以访问到我的controller ,页面指向 app/home/index.html 在页面中引用资源 / 是不带有项目名的 通过F12 发现是 localhost:port/ 如何能够让在页面上引用资源过程 / 代表的是包含项目的访问路径?