135 lines
5.3 KiB
Java
135 lines
5.3 KiB
Java
package com.urpsys.basebatch;
|
|
|
|
import com.urpsys.basebatch.common.util.CommonUtil;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
/**
|
|
* Batch 서버 기본 실행 클래스
|
|
*
|
|
* @author 나혁제
|
|
* @since 2025.04.02
|
|
* @version 1.0.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
*
|
|
* << 개정이력(Modification information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ----------- --------- ------------------------
|
|
* 2024.01.08 나혁제 최초작성
|
|
*
|
|
* </pre>
|
|
*/
|
|
|
|
@SpringBootApplication
|
|
@ComponentScan(basePackages = {"com.urpsys"})
|
|
public class urpBaseBatchApplication
|
|
{
|
|
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("infra_server"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# infra_server Env #################");
|
|
System.out.println("################################################");
|
|
}
|
|
// KIC(한국투장공사) 개발
|
|
else if(activeProfile.equals("kic_dev"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kic_dev Env ######################");
|
|
System.out.println("################################################");
|
|
}
|
|
// KIC(한국투장공사) 운영
|
|
else if(activeProfile.equals("kic_rel"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kic_rel Env ######################");
|
|
System.out.println("################################################");
|
|
}
|
|
// KEITI(한국환경산업기술원)
|
|
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("################################################");
|
|
}
|
|
// 2026.01.28 나혁제 노원구청 추가
|
|
else if(activeProfile.equals("nowon"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# nowon Env ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.02.26 나혁제 양평군청 추가
|
|
else if(activeProfile.equals("yp21"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# yp21 Env #########################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.03.19 나혁제 노인인력개발원 추가
|
|
else if(activeProfile.equals("kordi"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kordi Env ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.04.21 나혁제 헌법재판소 추가
|
|
else if(activeProfile.equals("ccourt"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# ccourt Env #######################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.04.27 나혁제 문화원연합회 추가
|
|
else if(activeProfile.equals("kccf"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# kccf Env #########################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.04.28 나혁제 국립생물자원관 추가
|
|
else if(activeProfile.equals("nibr"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# nibr Env #########################");
|
|
System.out.println("################################################");
|
|
}
|
|
// 2026.04.28 나혁제 성신여대 추가
|
|
else if(activeProfile.equals("sungshin"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# sungshin Env #####################");
|
|
System.out.println("################################################");
|
|
}
|
|
else
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# No Define ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
|
|
SpringApplication.run(urpBaseBatchApplication.class, args);
|
|
}
|
|
}
|