Skip to content

Commit

Permalink
Polish DevTools auto-configuration tests to avoid bean overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Jul 10, 2018
1 parent 5fcf45c commit 87b72cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ResourceProperties;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
Expand Down Expand Up @@ -281,7 +282,7 @@ public static class Config {
}

@Configuration
@Import({ ServletWebServerFactoryAutoConfiguration.class,
@ImportAutoConfiguration({ ServletWebServerFactoryAutoConfiguration.class,
LocalDevToolsAutoConfiguration.class, ThymeleafAutoConfiguration.class })
public static class ConfigWithMockLiveReload {

Expand Down

0 comments on commit 87b72cc

Please sign in to comment.