第一行報錯的原因很多,我這裏是顯示的maven配置錯誤。原來maven項目是war包。
卻在插件中配置了jar包插件,因此導致了錯誤。註銷即可。
<!-- <plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>interface</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration> -->
<!-- 添加classifier修飾以區別於war,保證上傳成功 -->
<!-- <classifier>interface</classifier> -->
<!-- <includes> <include>**/com/**/</include> </includes> -->
<!-- <excludes>
<exclude>**/*.properties</exclude>
<exclude>**/resources/*.xml</exclude>
<exclude>**/applicationContext.xml</exclude>
<exclude>**/spring_cache.xml</exclude>
<exclude>**/spring_session.xml</exclude> -->
<!-- 屏蔽掉頁面控制器 -->
<!-- <exclude>**/com/acexe/action/template/TemplateIndexAction.java</exclude> -->
<!-- </excludes>
</configuration>
</execution>
</executions>
</plugin> -->