단순 코드 기록/Spring Boot 4

SB_JavaConfig와 Component-Scan

Component-Scan: @Controller / @Service / @Repository / @Component JavaConfig: @Configuration + @Bean("아이디") - Component-Scan + Autowired 사용하면 JavaConfig 역할 대체 가능 package com.example.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Repository; import com.example.dao.DBOracleDAO; import co..

SB_로그 환경 설정

src/main/resources/logback.xml [%d{yy-MM-dd HH:mm:ss}] [%5p] [%c{1}.%M-%3L] %m %n ${DEV_HOME}/logFile.log /log/logFile.%d{yyyy-MM-dd}.log 30 %-4relative [%thread] %-5level %logger{35} - %msg%n src/main/resources/application.properties ###프로젝트 환경 설정 문서 #서버 포트 번호 server.port=8090 ###로그에 대한 환경 설정 spring.output.ansi.enabled=always ##현재 프로젝트에 log폴더 생성 또는 내부 파일로 생성 #logging.file.name=c:\\temp\\logging..