목록개발용 (2)
개발 무지렁이

[application.yml] spring: profiles: active: dev include: - base-addi security: oauth2: client: registration: kakao: clientId: scope: profile_nickname, profile_image, account_email client-name: Kakao authorization-grant-type: authorization_code redirect-uri: http://localhost:8010/login/oauth2/code/kakao client-authentication-method: POST provider: kakao: authorization-uri: https://kauth.kakao.com..

[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..