Игнорировать отсутствие конфига
This commit is contained in:
@@ -21,7 +21,7 @@ import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
@Configuration
|
||||
@PropertySource({ "classpath:/application.properties", "file:application.properties" })
|
||||
@PropertySource(value = { "classpath:/application.properties", "file:application.properties" }, ignoreResourceNotFound = true)
|
||||
public class SpringConfig {
|
||||
@Bean
|
||||
public WebApp webapp(@Value("${webapp.host}") String host, @Value("${webapp.port}") int port) {
|
||||
|
||||
Reference in New Issue
Block a user