@Configuration public class AsyncServletConfiguration extends Object
| Constructor and Description |
|---|
AsyncServletConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.task.AsyncTaskExecutor |
asyncTaskExecutor(int corePoolSize,
int maxPoolSize,
int queueCapacity) |
org.springframework.web.servlet.DispatcherServlet |
dispatcherServlet() |
org.springframework.boot.web.servlet.ServletRegistrationBean |
dispatcherServletRegistration()
Register dispatcherServlet programmatically
|
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter |
webMvcConfigurerAdapter(org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor) |
@Bean public org.springframework.web.servlet.DispatcherServlet dispatcherServlet()
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean dispatcherServletRegistration()
@Bean
public org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor(@Value(value="${async.threadpool.coresize:16}")
int corePoolSize,
@Value(value="${async.threadpool.maxsize:64}")
int maxPoolSize,
@Value(value="${async.threadpool.capacity:1024}")
int queueCapacity)
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter webMvcConfigurerAdapter(org.springframework.core.task.AsyncTaskExecutor asyncTaskExecutor)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.