Package com.anton.martynenko.jswrapper
Class JsWrapperServiceApplication
- java.lang.Object
-
- com.anton.martynenko.jswrapper.JsWrapperServiceApplication
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@SpringBootApplication(exclude=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class) @EnableAsync public class JsWrapperServiceApplication extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Main class used to configure, run spring boot application, and prepare beans.- Since:
- 1.0
- Author:
- Martynenko Anton
-
-
Constructor Summary
Constructors Constructor Description JsWrapperServiceApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Application entry point.com.fasterxml.jackson.databind.ObjectMapper
objectMapper()
Prepare basic Jackson mapper to be injected as bean.java.util.List<JsExecution>
storage()
Runtime thread-safe executions object storage.org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
taskExecutor()
Prepare Spring Boot embedded task executor to be injected as bean.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
storage
@Bean public java.util.List<JsExecution> storage()
Runtime thread-safe executions object storage.- Returns:
- synchronizedList
-
objectMapper
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
Prepare basic Jackson mapper to be injected as bean.- Returns:
- Jackson's
ObjectMapper
-
taskExecutor
@Bean public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutor()
Prepare Spring Boot embedded task executor to be injected as bean.- Returns:
ThreadPoolTaskExecutor
entity
-
main
public static void main(java.lang.String[] args)
Application entry point.- Parameters:
args
- arguments
-
-