Spring
Spring Spring은 Java 기반의 현대적인 엔터프라이즈 애플리케이션 개발을 위한 포괄적인 프레임워크. Spring은 웹 프레임워크가 아닌 일반 프레임워크. 그 이유는: 범위의 차이 웹 프레임워크: 웹 애플리케이션 개발에 특화 (예: Django, Flask) Spring: 웹 외에도 다양한 종류의 애플리케이션 개발 가능 기능의 포괄성 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 // Spring으로 웹이 아닌 일반 애플리케이션도 개발 가능 @SpringBootApplication public class BatchProcessingApplication { @Scheduled(fixedRate = 1000) public void processData() { // 배치 처리 로직 } } // 데스크톱 애플리케이션도 가능 @SpringBootApplication public class DesktopApplication extends Application { @Override public void start(Stage stage) { // JavaFX UI 로직 } } 모듈성 Spring은 필요한 기능만 선택적으로 사용할 수 있다: 1 2 3 4 5 6 7 8 9 10 // 웹 기능 없이 핵심 기능만 사용 @Configuration @ComponentScan public class CoreApplication { public static void main(String[] args) { ApplicationContext context = new AnnotationConfigApplicationContext(CoreApplication.class); // 비즈니스 로직 실행 } } 특징: ...