19 lines
581 B
Java
19 lines
581 B
Java
/*
|
|
* DmitriyMX <dimon550@gmail.com>
|
|
* 2017-04-09
|
|
*/
|
|
package kinosearch.kinosearch3.webpp;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
@Configuration
|
|
@PropertySource("classpath:/application.properties")
|
|
public class SpringConfig {
|
|
@Bean
|
|
public WebApp webapp(@Value("${webapp.host}") String host, @Value("${webapp.port}") int port) {
|
|
return new WebApp(host, port);
|
|
}
|
|
} |