git-subtree-dir: datatrans git-subtree-mainline:b60fd84fb9git-subtree-split:7c9701e4e5
61 lines
1.9 KiB
Java
61 lines
1.9 KiB
Java
package com.urpsys.kccfbat;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
|
|
|
|
import com.urpsys.kccfbat.common.util.CommonUtil;
|
|
|
|
/**
|
|
* Resource 서버 기본 실행 클래스1
|
|
*
|
|
* @author 나혁제
|
|
* @since 2026.02.24
|
|
* @version 1.0.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
*
|
|
* << 개정이력(Modification information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ----------- --------- ------------------------
|
|
* 2026.02.24 나혁제 최초작성
|
|
*
|
|
* </pre>
|
|
*/
|
|
|
|
@SpringBootApplication
|
|
@EnableScheduling
|
|
@ComponentScan(basePackages = {"com.urpsys.kccfbat"})
|
|
public class ncmsToIamsDataTransApplication
|
|
{
|
|
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("ncms_server"))
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# ncms_server Env ##################");
|
|
System.out.println("################################################");
|
|
}
|
|
else
|
|
{
|
|
System.out.println("################################################");
|
|
System.out.println("############# No Define ########################");
|
|
System.out.println("################################################");
|
|
}
|
|
|
|
SpringApplication.run(ncmsToIamsDataTransApplication.class, args);
|
|
}
|
|
}
|