묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[핵집] 2025 빅데이터 분석기사(필기)_과목 1~2
강의 통합본 요청드립니다
안녕하세요수업자료 통합본 요청 드리고자 합니다. starktype@gmail.com
-
미해결실습으로 배우는 AWS(Amazon Web Services) 클라우드 컴퓨팅 입문
헤더부분
http://ec2-43-202-57-27.ap-northeast-2.compute.amazonaws.com/요청 메서드:GET상태 코드:403 Forbidden원격 주소:43.202.57.27:80리퍼러 정책:strict-origin-when-cross-originccept-Ranges:bytesConnection:Keep-AliveContent-Length:45Content-Type:text/html; charset=UTF-8Date:Mon, 15 Jan 2024 13:38:24 GMTEtag:"2d-432a5e4a73a80"Keep-Alive:timeout=5, max=100Last-Modified:Mon, 11 Jun 2007 18:53:14 GMTServer:Apache/2.4.58 (Amazon Linux)text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7Accept-Encoding:gzip, deflateAccept-Language:ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7Cache-Control:max-age=0Connection:keep-aliveHost:ec2-43-202-57-27.ap-northeast-2.compute.amazonaws.comUpgrade-Insecure-Requests:1User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Whale/3.24.223.18 Safari/537.36
-
해결됨[신규 개정판] 이것이 진짜 크롤링이다 - 기본편
약간 변태(?)같지만 해당 코드를 깔끔하게 함수로 리팩토링해보았습니다
import openpyxl import requests from bs4 import BeautifulSoup # stock_data파일을 불러와서 B2, B3, B4에 현재가를 저장해보자. fpath = ( r"C:\Users\UserName\OneDrive\바탕 화면\웹 스크래핑 연습\new_project\02_파이썬엑셀다루기\stock_data.xlsx" ) wb = openpyxl.load_workbook(fpath) ws = wb.active # 현재 활성화된 엑셀시트를 선택한다 # ws = wb["주식크롤링"] def stock_crawl(codes): row_start = 2 for code in codes: url = f"https://finance.naver.com/item/sise.naver?code={codes[code]}" response = requests.get(url) html = response.text soup = BeautifulSoup(html, "html.parser") price = soup.select_one("#_nowVal").text # str -> int price = int(price.replace(",", "")) # 크롤링한 현재가를 엑셀에 저장(3번 반복) ws[f"B{row_start}"] = price row_start += 1 # 엑셀 저장하기 wb.save(fpath) stock_crawl({"엔씨소프트": "036570", "삼성전자": "005930", "네이버": "035420"})크롤링 재밌네요 ㅎㅎ
-
미해결코드로 배우는 React 19 with 스프링부트 API서버
챕터 3 임의로 URL에 size 값을 변경한 후 다른 페이지로 이동하면 size가 기본값 10으로 돌아갑니다.
안녕하세요 강사님 강의 수강중인 학생입니다. 일단 코드는 강의 내용이나 올려주신 부분하고 다른 점은 없는 것 같은데 원래 이렇게 되는 것인가요? page=1&size=1을 주면 글 하나씩 페이지가 생기는데 그 상태에서 페이지 번호 버튼을 눌러서 다른 페이지로 이동하면 size 파라미터 값이 기본값 10으로 돌아가네요 localhost:3000/todo/list?page=1&size=1인 상태에서 페이지 번호 2번 버튼을 눌러서 이동하면localhost:3000/todo/list?page=2&size=1이렇게 되어야 하는 것 아닌가요?localhost:3000/todo/list?page=2&size=10이렇게 되어버립니다. 코드를 계속 살펴보고 동작 방식을 생각해보니 클라이언트 쪽 코드상에서 page와 size값이 변하는 것을 받아변수에 저장하는 부분은 페이지 번호 버튼을 눌렀을때 useCustomMove의 size 변수와 sizeNum 변수인데 버튼을 통한 변화없이 임의로 URL에서 size를 바꾸고 페이지 번호 버튼을 누르면 저장된 size값은 10 그대로이기 때문에 그렇게 되는 것이 아닐까라는 추측을 해봅니다. size는 변동을 딱히 고려하지 않는 파라미터일 수도 있는데 여러가지로 궁금해져서 이런저런 시도를 해보다보니 의문이 생겼었네요. 실제로 웹개발을 할때 페이지를 나누는 경우 한 페이지의 size값은 변동이 없는 파라미터인가요? 기준을 정하기 위함인가요?
-
미해결실습으로 배우는 AWS(Amazon Web Services) 클라우드 컴퓨팅 입문
설치는 잘되어잇는데
테스트페이지가 나오지 않고 이상한 하지도 않은 IT works가 나옵니다
-
미해결실습으로 배우는 AWS(Amazon Web Services) 클라우드 컴퓨팅 입문
아파치테스트페이지가 안떠요
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
해결됨PM을 위한 데이터 리터러시(프로덕트 데이터 분석)
수강 목표
저는 프로덕트 디자이너입니다. 데이터를 잘 다루기로 유명한 회사에서 최근 면접을 봤고 합격했습니다. 면접 중 데이터에 대한 질문에서 대답을 명료히 하지 못했고 개선이 필요하다 생각해 해당 강의를 수강하게 되었습니다. 저는 해당 강의를 수강하고 아래 3가지를 꼭 얻고 싶습니다. 데이터를 실무에서 활용하는 방법데이터로 동료들과 협업하는 방법데이터 애널리스트와 협업하는 방법강의 수강과 복습, 연습을 꾸준히 해보려고 합니다. 적어도 입사 전까지 세션 4까지 완강하고 들어가고 싶어요! 입사 후에도 꾸준히 강의 노트를 보며 실무에 활용해보려 합니다. 완강한 후 저는 PM 만큼이나 데이터를 잘 보고 활용하는 프로덕트 디자이너가 되고 싶습니다. 잘 부탁드려요!
-
해결됨스프링 핵심 원리 - 기본편
필드 주입을 사용하면 안되는 이유와 @Autowired의 관계
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]강의에서 의존관계 자동 주입의 방법 중 필드 주입의 방법은 스프링에 의존적인 방식이기 때문에 안티 패턴이므로 사용하지 말라고 하셨습니다. 제가 의문인 부분은 세가지입니다.강의 자료에 참고: 순수한 자바 테스트 코드에는 당연히 @Autowired가 동작하지 않는다. @SpringBootTest 처럼 스프링 컨테이너를 테스트에 통합한 경우에만 가능하다. 라고 적혀있는데, 이 말은 @Autowired 애너테이션을 사용한 의존성 주입 방법 자체가 스프링 의존적인건가요? 그게 아니라면 필드 주입이라는 방법 자체가 스프링 의존적인건가요? 만약 그렇다면 필드 주입 방법만 스프링 의존적인 이유가 따로 있을까요? 다른 방식들과 내부 동작 등에서 어떤 차이가 있는지 이해가 잘 가지 않아서요.만약 @Autowired 방법 자체가 스프링 의존적인 방식인거라면, 의존관계 자동 주입의 네 가지 방법 모두 스프링 의존적인 방식이므로 안티패턴이 되는것이 아닌가요? 왜 꼭 순수 자바 환경에서 테스트를 해야하나요? 스프링부트테스트는 스프링부트 환경에서 테스트할 수 있는걸로 알고있는데, 여기서 모든 테스트를 하면 되는 것 아닌가요??
-
미해결스프링 시큐리티
depracated된것들이 너무 많습니다 ㅠㅠ
신입 개발자로서 현업을 하며 security에 대해 실력을 키우고자 하여 강의를 듣고 있습니다. 그런데 기술중에 deprecated 된 기술들이 너무 많아 따라가는데 시간이 너무 많이 소요되는거 같습니다... 이것을 해결하기 위해 최신화 된 Git 레포지 주소나 해결 방안 같은것을 자막식으로 달아주실수 있을까요..?아니면 버전을 다운그레이드해서 들어야하나요,,,?ㅜㅜ
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
회원 목록 조회가 안됩니다 ㅠㅠ
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. 회원가입에서 spring1 , spring2 등록하고 회원 목록에 들어가면 #이름 만 뜹니다 ㅠㅠConsole 창에도 member = spring1 으로 잘 뜨는데 왜 안될까요?? 회원 목록에서 소스 보기하면 저 가운데가 코드가 안뜨는데 이거 때문일까요? 코드는 강의자료 그대로 복붙했습니다!딱히 에러가 뜨는건 아니라 뭐가 잘못된지 모르겠네요 ㅠㅠ 구글 드라이브 첨부해드려요!https://drive.google.com/file/d/1s2D6rLue9yPAHlZbNnCFVKsv2aKGZtEX/view?usp=sharing 오류 해결했습니다^^;;; 주석처리된 부분이 있었네요 ...ㅠㅠㅎㅎㅎㅎㅎ
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
LabelEncoder를 실행하면 'ValueError: y should be a 1d array, got an array of shape (1818, 10) instead.라는 error가 발생합니다.
안녕하세요? 아래와 같이 LabelEncoder를 실행하면 'ValueError: y should be a 1d array, got an array of shape (1818, 10) instead.라는 error가 발생합니다. '왜 그럴까요? df2라는 데이터프레임에서 object인 column만 선택해서 똑같이 했습니다. 어떻게 해야 하는지 알려주시면 대단히 감사하겠습니다. from sklearn.preprocessing import LabelEncodercols=['Gender', 'family_history_with_overweight', 'FAVC', 'CAEC', 'SMOKE', 'SCC', 'CALC', 'MTRANS', 'NObeyesdad', 'transportation'] le=LabelEncoder()for col in [cols]: df2[col]=le.fit_transform(df2[col])
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
동일한 인스턴스명의 인스턴스를 만들 수 있는 이유
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) class MemoryMemberRepositoryTest { MemoryMemberRepository repository = new MemoryMemberRepository(); @Test public void save() { //given Member member = new Member(); member.setName("spring"); //when repository.save(member); //then Member result = repository.findById(member.getId()).get(); assertThat(result).isEqualTo(member); } @Test public void findByName() { //given Member member1 = new Member(); member1.setName("spring1"); repository.save(member1); Member member2 = new Member(); member2.setName("spring2"); repository.save(member2); //when Member result = repository.findByName("spring1").get(); //then assertThat(result).isEqualTo(member1); } @Test public void findAll() { //given Member member1 = new Member(); member1.setName("spring1"); repository.save(member1); Member member2 = new Member(); member2.setName("spring2"); repository.save(member2); //when List<Member> result = repository.findAll(); //then assertThat(result.size()).isEqualTo(2); } }안녕하세요 지난 번에 동일한 질문을 올렸었는데 제가 설명을 명확하게 하지 않은 것 같아서 다시 올리게 되었습니다. "회원 서비스 테스트" 강의 중 내용입니다.제가 헷갈리는 것은, 중복된 인스턴스명으로 인스턴스를 만드는데 왜 예외가 발생하지 않는가? 입니다.예를 들어 아래 코드를 작성하면 Variable 'member1' is already defined in the scope라는 에러가 납니다. public void hello() { Member member1 = new Member(); Member member1 = new Member(); // Variable 'member1' is already defined in the scope }다시 원래 코드로 되돌아와서, findAll()이 실행 후 member1 = "spring1", member2 = "spring2" 라는 인스턴스가 만들어집니다. 이후 findByName()을 실행할 때 밑에서 두번째 코드처럼 같은 이름인 member1으로 인스턴스를 만드는데 왜 에러가 발생하지 않는건가요?(findAll()에서 member1 생성 -> findByName()에서 member1 생성이 가능한 이유?)Member member1 = new Member(); // findAll() 에서 member1 생성 member1.setName("spring1"); // name 할당 ---------- Member member1 = new Member(); // 인스턴스명이 같은데도 불구하고 findAll() 에서 member1 생성
-
미해결실습으로 배우는 AWS(Amazon Web Services) 클라우드 컴퓨팅 입문
톰캣파일이 안뜨고
it works 라고 그냥 나오는데 ec2 만들어주고 그뒤로 톰캣화면이 안나오고 그냥 it works 라고 나오네요
-
미해결
Jasper AI Alternatives: A Glimpse into the Future of Writing in 2024
Overview of Jasper AIJasper AI stands out as an innovative AI-driven writing tool crafted to aid users in diverse writing tasks. It is crucial to acknowledge that Jasper AI operates within a framework that encompasses fewer resources compared to some other sophisticated AI writing platforms.This limitation mainly centers around the extent of its resources. While Jasper AI offers valuable assistance in content generation and writing tasks, its functionalities might be more focused or streamlined compared to other platforms that feature a broader range of tools and features for comprehensive writing support.Alternatives to Jasper AIJasper AI isn't the only player in the field of advanced essay-writing tools. Several websites have emerged as compelling alternatives, offering a rich variety of features. Platforms such as Perfectessaywriter.ai, Myperfectpaper.net, and Myessaywriter.ai have garnered acclaim for their innovative approaches to assisting writers and students with their essay writing tasks.Exploring these alternatives highlights a substantial transformation in how we approach writing. These platforms have redefined the writing process, establishing new benchmarks for academic and professional content creation. Let's delve into the best alternatives to Jasper AI and discover how they contribute to this evolving landscape. PerfectEssayWriter AIAs a top AI essay writing tool, Perfectessaywriter.ai emerges to meet a variety of essay writing requirements. Its feature-rich toolkit and intuitive user interface make it a vital resource for anyone looking for help writing a sophisticated essay.Perfectessaywriter.ai Tools: Paraphrasing Tool: Ensuring content originality, this paraphrasing tool rephrases sentences while maintaining the essence of the original text, reducing plagiarism risks.AI Essay Writer Tool: Similar to other platforms, this tool generates well-structured essays based on user inputs, utilizing advanced AI algorithms for high-quality content creation.Grammar Tool: This free grammar checker tool ensures grammatical accuracy and language precision, this tool rectifies errors and suggests improvements for enhanced readability.Citation Machine: This citation machine assists in generating accurate citations and bibliographies in various formats, ensuring adherence to citation guidelines.Comparison with Jasper AIPerfectessaywriter.ai sets itself apart from general-purpose AI solutions such as JAsper AI by providing a range of tools designed only for essay writing. Its collection of tools offers focused support, expediting the writing process and improving the caliber of essays. Myperfectpaper.net AI Essay WriterWith a targeted and efficient approach, Myperfectpaper.net joins the market of AI-driven essay writing tools, providing the essay generator tool for essays and putting a focus on ease of use and efficacy in supporting essay writing endeavors. Myperfectpaper.net Tools AI Essay Writer: Central to the platform, this tool harnesses AI to generate well-structured essays based on user prompts, aligning with the platform's commitment to facilitating the writing process.AI Essay Outliner: Assisting in organizing thoughts and structuring essays effectively, this tool aids in creating outlines for well-organized and logically flowing essays.MyEssayWriter AIMyEssayWriter.ai is an efficient and affordable essay writer tool designed to support students in their academic writing endeavors. This platform that offers an extensive selection of AI essay writing tools tailored to specific phases of the essay writing process. It is a pioneer in AI-powered essay writing assistance thanks to its feature-rich design and user-centered approach. Myessaywriter.ai Tools:Paraphrasing Tool: Focused on maintaining content originality, this online paraphrasing tool aids in rephrasing while preserving the original essence.Plagiarism Detection Tool: Ensuring academic integrity, this plagiarism detection tool scans content to identify and prevent plagiarism instances.Thesis-Statement Generator: Simplifying the creation of a strong thesis statements generator this tool tailors concise and impactful statements to the provided topic.Paragraph Generator: Structuring content effectively, this tool produces well-structured paragraphs for enhanced essay coherence.Essay Topic Generator: Stimulating creativity and overcoming writer's block, this tool generates diverse essay topics as starting points for writing.Comparison with Jasper AIThe toolkit offered by Myessaywriter.ai is superior to JAsper AI and other general-purpose AI tools for essay writing. Its specialist tools provide focused and all-encompassing support for each step of the essay-writing process. This specific methodology guarantees that clients have committed and comprehensive support for writing essays for academic or professional purpose. Frequently Asked Questions (FAQs):1. How does Perfectessaywriter.ai's paraphrasing tool work?Perfectessaywriter.ai's paraphrasing tool ensures content originality by rephrasing sentences while preserving the essence of the original text. This minimizes the risk of plagiarism and enhances the overall uniqueness of the content.2. What makes Myperfectpaper.net's AI Essay Outliner unique?Myperfectpaper.net's AI Essay Outliner is designed to assist in organizing thoughts and structuring essays effectively. It aids in creating outlines for well-organized and logically flowing essays, contributing to the overall coherence of the writing.3. What specific features does MyEssayWriter.ai offer for academic writing?MyEssayWriter.ai provides a range of specialized AI essay writing tools, including a Paraphrasing Tool, Plagiarism Detection Tool, Thesis-Statement Generator, Paragraph Generator, and Essay Topic Generator. These tools are tailored to specific phases of the essay writing process, offering comprehensive support.4. How does Myessaywriter.ai's Plagiarism Detection Tool ensure academic integrity?Myessaywriter.ai's Plagiarism Detection Tool scans content to identify and prevent instances of plagiarism, ensuring that academic integrity is maintained throughout the writing process. Other Useful ResourcesNavigating Beyond Jasper: Best Alternatives for January 2024Top AI Writing Tools as Alternatives to Jasper in January 2024Your Guide to the Best Alternatives to Jasper AI and Copy AI in Essay Writing - January 2024
-
미해결스프링 시큐리티 OAuth2
boot 3.0 이상 버전에서 apply()
apply() 에서 CustomSecurityConfigurer 를 넣어주는게 deprecated 가 됐는데 구글링을 해도 정보가 많지 않습니다. 어떻게 설정해야 하나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
연관관계 주인과 변경감지 그리고 cascade
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예[질문 내용]강의 14분 26초에서 Order의 cancel() 메서드 내부에 OrderStatus 변경은 변경 감지로 변경되는것을 이해하고 있습니다. 그리고 for loop 내부에서 public void cancel() { if (delivery.getStatus() == COMPLETE) { throw new IllegalStateException("이미 배송완료된 상품은 취소가 불가능합니다"); } this.setStatus(CANCEL); for (OrderItem orderItem : orderItems) { orderItem.cancel(); } }orderItem.cancel() 메서드가 호출되고 있습니다. orderItem.cancel()에서는 item 엔티티를 변경하고 있는데 // 비즈니스 로직 public void cancel() { getItem().addStock(count); }궁금한 점은 item 엔티티가 변경이 가능한것은 orderItem이 FK를 갖고 있는 연관관계의 주인이기 때문인가요? 만약 item이 아닌 orderItem의 필드가 변경된다면 변경 감지가 가능할까요? orderItem이 order의 FK를 가지고 있고 반대로 Order는 orderItem의 FK갖지 않기 때문에 읽기만 가능한걸로 알고 있습니다. 질문이 좀 복잡해졌네요. 정리하자면 Q1. order.cancel() 메서드 내부에서 orderItem.cance() 메서드를 호출합니다. 만약 orderItem.cancel()이 orderItem의 필드롤 수정한다면 DB에 반영이 될까요? 지금까지 배운내용이라면 연관관계의 주인이 OrderItem이기 때문에 읽기만 가능하다고 배웠습니다. Q2. 질문 1 상황에서 order 필드의 OrderItems에 cascade all이 붙어있다면 order에서 OrderItem을 수정이 가능할까요? Q3. 만약 질문 1에서 읽기만 가능한게 맞다면 Order.cancel()이 orderItem.cancel()을 호출하고 차례로 item 엔티티를 수정하는 경우order -> orderItem은 읽기만 가능하지만 orderItem -> item은 수정이 가능한 연관관계의 주인이기때문에 타고타고 넘어가서 수정이 가능한걸까요?
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
VS 터미널 가상환경에서 openai 0.28.1 설치 시 오류
어제 googletrans와 openai 패키지 버전 문제로 질문을 드렸었는데, openai 0.28.1을 설치하라고 답을 받아서 설치를 해봤습니다만, 아래와 같이 설치 시 에러가 나서 더 이상 진행하지 않고 질문을 남깁니다.패키지들의 버전 호환 문제 때문에 실습하는데 어려움이 정말 많네요.. 다른 분들은 어떻게들 하고 있는지.. (ch07_env) D:\inflearn_chatGPT\ch07>pip install openai==0.28.1....설치 메시지...building 'multidict._multidict' extensionerror: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for multidictFailed to build multidictERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects위와 같은 에러를 뱉고 openai는 제대로 설치되지 않습니다. (ch07_env) D:\inflearn_chatGPT\ch07>pip show openaiWARNING: Package(s) not found: openai
-
미해결스프링 핵심 원리 - 기본편
섹션 7 옵션처리 부분 contextLoads() 오류
전체 test를 run하는 과정에서 java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@6a48a7f3 testClass = hello.core.CoreApplicationTests, locations = [], classes = [hello.core.CoreApplication], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@791cbf87, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2b52c0d6, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7de0c6ae, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@cf65451, org.springframework.boot.test.context.SpringBootTestAnnotation@f29fb3dd], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:180) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:141) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:97) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260) at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:163) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.Optional.orElseGet(Optional.java:364) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberServiceImpl' defined in file [/Users/asungkim/Desktop/My folder/My coding/core/out/production/classes/hello/core/member/MemberServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'hello.core.member.MemberRepository' available: expected single matching bean but found 2: memoryMemberRepository,memberRepository at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:802) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:241) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1354) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1191) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:561) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:960) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:464) at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$3(SpringBootContextLoader.java:137) at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58) at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46) at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1458) at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:552) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:137) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:108) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:225) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:152) ... 17 moreCaused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'hello.core.member.MemberRepository' available: expected single matching bean but found 2: memoryMemberRepository,memberRepository at org.springframework.beans.factory.config.DependencyDescriptor.resolveNotUnique(DependencyDescriptor.java:218) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1420) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:911) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ... 41 more이런 오류가 뜹니다 어떻게해결하나요
-
미해결면접과 취업을 부르는 '퍼블리셔 개인 포트폴리오 홈페이지' 제작
iframe 질문입니다.
안녕하세요 현재 목업 단계에 있는데 iframe에 다른 파일에서 만든 html의 주소를 삽입해야 하는데 http 주소가 아니다 보니 실행이 잘 안됩니다.. 어떻게 해야 될까요? 그리고 포트폴리오 오프라인 강의 계획이 또 있으신지 궁금합니다.
-
미해결스타트업 성장과 함께하는 AWS 클라우드 아키텍쳐 올인원
데이터베이스 VPC 옮기기 질문
데이터베이스를 새로운 VP를 옮기기 위해서 rds에 새로운 데이터베이스를 생성전에 subnet group을 만드는 것은 이해되었습니다. 근데 데이터베이스 서버는 한개만 만드는 것으로 아는데 아래와 같이 가용영역을 2개 설정하고, 서브넷도 가용영역내 2개의 subnet들을 설정하면 데이터베이스 서버가 2개가 만들어 지는 것 아닌가요? 결과로는 둘 중 b가용영역에 서버가 만들어 졌는데 왜 그렇게 된 것인지 궁금합니다.앞선 질문 다음 과정으로 snapshot으로 데이터베이스를 복구할 때 새로운 데이터베이스를 만드는데 이때 서브넷 그룹만 지정하고 가용영역은 따로 지정하지 않는 이유가 있나요? 여기서 가용영역을 지정하는 것이 해당 가용영역에 데이터베이스 서버를 만들겠다는 것인지 궁금합니다. 강의의 경우에는 설정하지 않았는데 어떤 기준으로 b 가용영역에 서버가 생성되었는지 모르겠습니다.좋은 강의 감사드립니다. 많이 배우고 있습니다.