Notice
Recent Posts
Recent Comments
Link
목록DevInitData (1)
개발 무지렁이

[DevInitData.java] @Configuration @Profile("dev") // 이 클래스에 정의된 Bean 들은 dev 모드에서만 활성화된다. public class DevInitData { // CommandLineRunner: 앱 실행 직후 초기데이터 세팅 및 초기화에 사용된다. @Bean CommandLineRunner init(MemberService memberService, ArticleService articleService, PasswordEncoder passwordEncoder) { return args -> { String password = passwordEncoder.encode("1234"); Member member1 = memberService.join("us..
Backend/스프링부트
2023. 1. 12. 16:05