ViontechApplication.java
909 Bytes
package com.viontech;
import com.viontech.domain.ViontechPropertyPlaceholderConfigurer;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;
@SpringBootApplication(scanBasePackages = {"com.viontech.*"})
public class ViontechApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(ViontechApplication.class, args);
}
@Bean
public static PropertyPlaceholderConfigurer properties(){
return new ViontechPropertyPlaceholderConfigurer();
}
}