maven构建web项目访问不到webapp
正常访问http://localhost:8080/web-demo1可以访问到
访问webapp 404
maven 是默认拦截静态资源
在pom.xml中添加
<build>
<resources>
<resource>
<!-- <targetPath>resource</targetPath>-->
<directory>src/main/webapp</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</build>