spring-boot

Which is better option? @Async with or without ThreadPoolExecutor?

What is the use of defining manual thread executor inside the @Async annotation in spring? When we don't define executor, the @Async is working better. Use case: I have created a manual thread pool with max pool size is 50. If we pass 200 requests it process only up to 50 requests. But if we don't...

repository:auditing-attributes cannot be resolved to a(n) attribute group component

Getting the Spring Data library, specifically Spring Repositories, into a Java legacy application(Java 1.6). The legacy application is using an Ant build as well and I am getting the following error when the Spring ApplicationContext is being loaded. org.springframework.beans.factory.xml...

Spring Security OAuth2: '#oauth2.xxx' expressions not evaluted with multiple RequestMatchers mapped to the same FilterChain

In a multi modules app I've defined 5 RequestMatchers mapped to the same FilterChain, like below: @Configuration public class Module1SecurityFilterChain extends ResourceServerConfigurerAdapter { @Override public void configure( HttpSecurity http ) throws Exception { http.sessionManagement()...

Download a file from spring boot rest services from angular 5

I have spring boot service which provides csv file as response. How do we call this service from angular 5 typescript. download of a file should happen depends on some input parameters so I will have post call with user clicks the export button. below is the rest code in controller. @Controller...