Skip to content
View alnpokrovsky's full-sized avatar

Block or report alnpokrovsky

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. extends JPA searchByExample to compa... extends JPA searchByExample to compare attribute with null. (by default null means that example does not compare this attribute)
    1
    public abstract class ExtraSpecification {
    2
       public static <T> Specification<T> attributeNull(Example<T> example, String attributeName, boolean isNull) {
    3
           return (root, query, builder) -> {
    4
               List<Predicate> predicates = new ArrayList<>();
    5
               if (isNull)
  2. Spring configuration for RestTemplat... Spring configuration for RestTemplate bean that create new RestTemplate with copy of initial user's AUTHORIZATION header
    1
    import lombok.RequiredArgsConstructor;
    2
    import org.springframework.boot.web.client.RestTemplateBuilder;
    3
    import org.springframework.context.annotation.Bean;
    4
    import org.springframework.context.annotation.Configuration;
    5
    import org.springframework.http.HttpHeaders;