maven打包排除spring-boot内嵌tomcat容器依赖jar


在pom文件中添加打包排除配置信息。

<plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>3.0.0</version>
                    <configuration> <!-- Exclude JCL and LOG4J since all logging should go through SLF4J. Note that we're excluding log4j-<version>.jar but keeping log4j-over-slf4j-<version>.jar -->
                        <packagingExcludes>
                            WEB-INF/lib/tomcat-embed-*.jar,
                            WEB-INF/lib/spring-boot-starter-tomcat-*.jar
                        </packagingExcludes>
                    </configuration>
                </plugin>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM