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
Spring Boot Hikari Default Pool Size
(Spring)
java.lang.IllegalArgumentException: Not a managed type
(Spring)
No plugin found for prefix 'spring-boot' in the current project
(Spring)
MaterialToolbar vs Toolbar
(Android)
What is the use of LayoutInflater in Android?
(Android)
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
Mobile Apps
SCJP Quiz
ConcretePage.com
Utility
Age Calculator