Skip to content

Commit

Permalink
fix: Spring Boot crash when local.server.port is not defined (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
jak78 authored Feb 27, 2025
1 parent aa91fe4 commit 051e42b
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Predicate;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.*;
import java.util.function.Predicate;

import static com.decathlon.tzatziki.utils.Comparison.COMPARING_WITH;
Expand All @@ -48,9 +39,9 @@ public class SpringSteps {

@Autowired(required = false)
private ThreadPoolTaskExecutor taskExecutor;
@Value("${local.server.port:}")
private int localServerPort;


@Value("${local.server.port:#{null}}")
private Integer localServerPort;

public static boolean copyNamingStrategyFromSpringMapper = true;
public static boolean clearThreadPoolExecutor = false;
Expand Down

0 comments on commit 051e42b

Please sign in to comment.