Created
April 15, 2020 10:11
-
-
Save Raouf25/ccad7b4bccc11b464577fb086e57126f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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