package com.devjob.application;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import com.devjob.common.exception.GlobalExceptionHandler;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * EP08: 시즌1 모놀리스에서 지원(Application) 도메인을 분리한 서비스.
 * Application.userId / Application.jobId는 Long 참조이며, 실제 회원/공고 정보가
 * 필요하면 RestClient로 devjob-user / devjob-job을 호출한다 (EP21에서 @HttpExchange으로 교체).
 */
@SpringBootApplication
@Import(GlobalExceptionHandler.class)
@EnableJpaAuditing
public class ApplicationServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApplicationServiceApplication.class, args);
    }
}
