Permalink
Browse files

JettyとUndertowの設定をコメントアウトした状態で追加

  • Loading branch information...
matsumana committed Nov 25, 2014
1 parent e73ad8e commit 0fc0b7a983dcb6ab59c9115caf1db76d7a82a448
@@ -44,7 +44,31 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!--<exclusions>-->
<!--<exclusion>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
<!--</exclusion>-->
<!--</exclusions>-->
</dependency>
<!-- Jetty -->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-jetty</artifactId>-->
<!--</dependency>-->
<!-- Undertow -->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-undertow</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.jboss.spec.javax.el</groupId>-->
<!--<artifactId>jboss-el-api_3.0_spec</artifactId>-->
<!--<version>1.0.4.Final</version>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
@@ -75,4 +75,40 @@ public void onStartup(ServletContext servletContext) throws ServletException {
}
};
}
// /**
// * Jettyカスタマイズ
// */
// @Bean
// public EmbeddedServletContainerFactory jettyEmbeddedServletContainerFactory(
// @Value("${jetty.threadPool.minThreads:8}") int minThreads,
// @Value("${jetty.threadPool.maxThreads:200}") int maxThreads,
// @Value("${jetty.threadPool.idleTimeout:60000}") int idleTimeout) {
//
// JettyEmbeddedServletContainerFactory factory = new JettyEmbeddedServletContainerFactory();
// factory.addServerCustomizers(new JettyServerCustomizer() {
// @Override
// public void customize(Server server) {
// QueuedThreadPool threadPool = server.getBean(QueuedThreadPool.class);
// threadPool.setMaxThreads(maxThreads);
// threadPool.setMinThreads(minThreads);
// threadPool.setIdleTimeout(idleTimeout);
// }
// });
//
// return factory;
// }
// /**
// * Undertowカスタマイズ
// */
// @Bean
// public EmbeddedServletContainerFactory undertowEmbeddedServletContainerFactory(
// @Value("${undertow.builder.workerThreads:200}") int workerThreads) {
//
// UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory();
// factory.setWorkerThreads(workerThreads);
//
// return factory;
// }
}

0 comments on commit 0fc0b7a

Please sign in to comment.