90 lines
3.3 KiB
Java
90 lines
3.3 KiB
Java
package com.urpsys.basefront;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
import com.urpsys.basefront.common.util.CommonUtil;
|
|
|
|
/**
|
|
* urITMS 프런트서버 기본 실행 클래스
|
|
*
|
|
* @author 나혁제
|
|
* @since 2025.01.03
|
|
* @version 1.0.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
*
|
|
* << 개정이력(Modification information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ----------- --------- ------------------------
|
|
* 2025.01.03 나혁제 최초작성
|
|
*
|
|
* </pre>
|
|
*/
|
|
|
|
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
|
|
@ComponentScan(basePackages = {"com.urpsys.basefront", "com.urpsys.itmsfront"})
|
|
public class urpBaseJspApplication
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
String activeProfile = (CommonUtil.nvl(System.getProperty("spring.profiles.active")));
|
|
|
|
if(activeProfile.equals("local"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# local Env ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
else if(activeProfile.equals("vmware"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# vmware Env #######################");
|
|
System.out.println("################################################");
|
|
}
|
|
else if(activeProfile.equals("infra_server"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# infra_server Env #################");
|
|
System.out.println("################################################");
|
|
}
|
|
else if(activeProfile.equals("kic_dev"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kic_dev Env ######################");
|
|
System.out.println("################################################");
|
|
}
|
|
else if(activeProfile.equals("kic_rel"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kic_rel Env ######################");
|
|
System.out.println("################################################");
|
|
}
|
|
else if(activeProfile.equals("keiti_prod"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# keiti_prod Env ###################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2025.09.12 나혁제 킨텍스 추가
|
|
else if(activeProfile.equals("kintex_prod"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kintex_prod Env ##################");
|
|
System.out.println("################################################");
|
|
}
|
|
else
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# No Define ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
|
|
SpringApplication.run(urpBaseJspApplication.class, args);
|
|
}
|
|
}
|