filmov
tv
How to run SpringBoot Application on Jetty or Undertow Server | Exclude Tomcat from SpringBoot
Показать описание
#Run #SpringBootApp #Jeety #UnderTow #Server
Description section don't allow lessThan and GreaterThan sign..So used brackets :::::
{dependency}
{artifactId}spring-boot-starter-web{/artifactId}
{exclusions}
{exclusion}
{artifactId}spring-boot-starter-tomcat{/artifactId}
{/exclusion}
{/exclusions}
{/dependency}
{dependency}
{artifactId}spring-boot-starter-jetty{/artifactId}
{/dependency}
In gradle, able change can be achieved by this:
configurations {
}
dependencies {
}
Configure Jetty Options
####Jetty specific properties########
Also, you may configure these options programatically using JettyEmbeddedServletContainerFactory bean.
@Bean
public JettyEmbeddedServletContainerFactory jettyEmbeddedServletContainerFactory() {
JettyEmbeddedServletContainerFactory jettyContainer =
new JettyEmbeddedServletContainerFactory();
return jettyContainer;
}
Description section don't allow lessThan and GreaterThan sign..So used brackets :::::
{dependency}
{artifactId}spring-boot-starter-web{/artifactId}
{exclusions}
{exclusion}
{artifactId}spring-boot-starter-tomcat{/artifactId}
{/exclusion}
{/exclusions}
{/dependency}
{dependency}
{artifactId}spring-boot-starter-jetty{/artifactId}
{/dependency}
In gradle, able change can be achieved by this:
configurations {
}
dependencies {
}
Configure Jetty Options
####Jetty specific properties########
Also, you may configure these options programatically using JettyEmbeddedServletContainerFactory bean.
@Bean
public JettyEmbeddedServletContainerFactory jettyEmbeddedServletContainerFactory() {
JettyEmbeddedServletContainerFactory jettyContainer =
new JettyEmbeddedServletContainerFactory();
return jettyContainer;
}