Maven WebApp META-INF context.xml

Maven WebApp META-INF context.xml,第1张

Maven WebApp META-INF context.xml

将您的meta-INF文件夹放在src / main / resources中。

把它放在你的pom.xml上。

<build><plugins>    <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration>     <archive>         <manifest>  <addClasspath>true</addClasspath>  <classpathPrefix>lib/</classpathPrefix>         </manifest>     </archive>     <webResources>         <resource>  <!-- this is relative to the pom.xml directory -->  <directory>${project.basedir}/src/main/resources  </directory>         </resource>     </webResources>     <warName>mywar</warName> </configuration>        </plugin></plugins></build>

网络资源标签很重要…希望能有所帮助



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5586114.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-14
下一篇2022-12-14

发表评论

登录后才能评论

评论列表(0条)

    保存