ConcretePage.com
HOME
ALL TUTORIALS
JAVA 8
SPRING BOOT
ANGULAR
ANDROID
Q&A
|
Sign In
Ask Question
Exclude tomcat embed from spring-boot-starter-web in Gradle
Build Tools
Priya
Asked on April 01, 2015
I am using Gradle. How to exclude tomcat embed from spring-boot-starter-web. My dependencies are
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web:1.2.2.RELEASE'
compile 'jstl:jstl:1.2'
}
Arvind
Replied on April 01, 2015
To exclude tomcat embed from runtime use
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web:1.2.2.RELEASE'
compile 'jstl:jstl:1.2'
}
configurations {
runtime.exclude module: 'spring-boot-starter-tomcat'
}
and if you want to exclude from compile time, you can change it as
configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
}
Write Answer
Login | Sign Up
Related Post
Set Maven PATH in macOS
Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath
[FIXED] [ERROR] Source option 5 is no longer supported. Use 7 or later
Unable to run webservice-registry [Eureka server], after converting spring-boot-microservices project from gradle to maven
Latest Forum Post
ERROR Error: NG05105: Unexpected synthetic property @transitionMessages found
(Angular)
Angular Router Extra Options
(Angular)
Router.navigate vs Router.navigateByUrl
(Angular)
Router.navigate vs window.location.href
(Angular)
How to uninstall App in Mac
(MS Windows)
About Us
We are a group of software developers.
We enjoy learning and sharing technologies.
To improve the site's content,
your valuable suggestions
are most welcome.
Thanks
Email :
concretepage@gmail.com
Utility
Age Calculator