- disable vertx file cache

This commit is contained in:
dartpopikyardo
2016-08-30 22:37:55 +03:00
parent 2467099c3e
commit 1e13d482a8

View File

@@ -14,6 +14,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
@@ -32,6 +33,12 @@ public class BankingWebConfiguration extends WebMvcConfigurerAdapter {
return new HttpMessageConverters(additional);
}
@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
System.setProperty("vertx.disableFileCPResolving", "true");
return new PropertySourcesPlaceholderConfigurer();
}
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("forward:/index.html");