Skip to content

Instantly share code, notes, and snippets.

@Raouf25
Created April 15, 2020 10:11
Show Gist options
  • Save Raouf25/ccad7b4bccc11b464577fb086e57126f to your computer and use it in GitHub Desktop.
Save Raouf25/ccad7b4bccc11b464577fb086e57126f to your computer and use it in GitHub Desktop.
package com.mak.springbootefficientsearchapi.configuration;
import net.kaczmarzyk.spring.data.jpa.web.SpecificationArgumentResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.util.List;
@Configuration
@EnableTransactionManagement
public class JpaConfiguration implements WebMvcConfigurer {
@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
argumentResolvers.add(new SpecificationArgumentResolver());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment