안녕하세요. 7강까지 수강한 학생입니다. Test코드를 실행시 왜 이런 오류가 발생하는지 궁금합니다. 에러 메시지는 아래와 같습니다 Coreapplication: 15:37:49.791 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [hello.core.CoreApplicationTests]: CoreApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 15:37:49.833 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration hello.core.CoreApplication for test class hello.core.CoreApplicationTests . ____ _ /\\ / ___'_ __ ( _)_ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.3.1) 2024-07-16T15:37:50.184+09:00 INFO 21812 --- [core] [ main] hello.core.CoreApplicationTests : Starting CoreApplicationTests using Java 17.0.11 with PID 21812 (started by seongmin in C:\core\core) 2024-07-16T15:37:50.185+09:00 INFO 21812 --- [core] [ main] hello.core.CoreApplicationTests : No active profile set, falling back to 1 default profile: "default" 2024-07-16T15:37:50.557+09:00 WARN 21812 --- [core] [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberServiceImpl' defined in file [C:\core\core\out\production\classes\hello\core\member\MemberServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'hello.core.member.MemberRepositoy' available: expected single matching bean but found 2: memoryMemberRespositoy,memberRepository 2024-07-16T15:37:50.563+09:00 INFO 21812 --- [core] [ main] .s.b.a.l.ConditionEvaluationReportLogger : Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-07-16T15:37:50.594+09:00 ERROR 21812 --- [core] [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of constructor in hello.core.member.MemberServiceImpl required a single bean, but 2 were found: - memoryMemberRespositoy: defined in file [C:\core\core\out\production\classes\hello\core\member\MemoryMemberRespositoy.class] - memberRepository: defined by method 'memberRepository' in class path resource [hello/core/AppConfig.class] This may be due to missing parameter name information Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed Ensure that your compiler is configured to use the '-parameters' flag. You may need to update both your build tool settings as well as your IDE. (See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention) contextLoad: java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@6fd12c5 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@64f857e7, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3d6300e8, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7927bd9f, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@3d3f761a, org.springframework.boot.test.context.SpringBootTestAnnotation@c6ebefee], 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:142 ) at org.springframework.test.context.support .DependencyInjectionTestExecutionListener.prepareTestInstance( DependencyInjectionTestExecutionListener.java:98 ) 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 )
freeboard_frontend 이미지 업로드 부분 진행중인데 upload 버튼 클릭해서 이미지를 선택하면 Cannot destructure property 'url' of 'undefined' as it is undefined. 이라는 안내창이 뜨면서 정상적으로 실행이 되지 않습니다.. 원인을 알 수 있을까요? 다른 분 문의 글을 보고 혹시 apollo셋팅 문제인가 싶어 yarn add apollo-upload-client 와 yarn add -D @types/apollo-upload-client 를 추가로 설치 해봤는데도 문제 해결이 안됩니다..
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. vscode에서 volar라는 확장 프로그램이 검색 되지 않는데 어떻게 해야하나요 reset.css, style.css 같은 전역적으로 사용하는 css 들은 어떻게 연결 시켜주는 게 좋을까요? devtools에서 컴포넌트가 안나오는데 어떻게 확인해야 할까요?? run시키면 http://localhost:5173/__devtools__/ 가 실행되고 그쪽에서만 확인이 가능합니다. 강의를 듣고 사이트를 전반적으로 구축을 해야하는데 구조나 전체적으로 레퍼런스 삼을 수 있는 사이트가 있을까요 ㅠ? vue 공홈에 있는 사이트들은 devtools로 접근이 안되더라구요.. 미리 답변 감사합니다 ㅠㅠ
예전에 토큰 기반 인증 구현하면서 Access Token과 Refresh Token 문제점에 대해 고민해본 적이 있었습니다. 만약 Refresh Token을 탈취 당한다면 해커가 Access Token을 재발급 받을 수 있으므로 Access Token만을 사용했을 때와 똑같은 문제가 발생할 거라고 생각합니다. 그래서 당시에 프론트 측 개발자에게 물어봤을 때에는 Refresh Token에 Http Only 옵션이나 Secure 옵션을 해주면 된다고 이런 식으로 들었던 것 같은데, 그럼 애시당초 Access Token만을 사용하고 거기에 그런 옵션들을 해주면 번거롭게 Refresh Token을 사용할 필요도 없을 것 같다는 생각이 들었습니다. 강의를 수강하면서 Refresh Token의 효용성에 대해 의문이 다시 생기게 되었는데, 실무에서는 어떻게 Refresh Token 탈취 문제를 해결하고 있는지 궁금합니다.
안녕하세요, 비교연산자와 반복문+조건문 문제풀이에서 15:33 부분 질문이 있습니다.보면 b%2==0은 짝수일 때 sum=sum+b이고 홀수일 때는 sum=sum-b로 이해하면 될까요?그리고 해당 계산식이 끝나고 a++로 되있는데 제가 알기로는 a++이면 나중에 증가로 알고있는데 a는 나중에 1증가인가요 아니면조건식이 끝나고 b에 2증가하는 것처럼 바로 1증가시키면 되는건가요?
안녕하세요 강사님 이제 필요한 jdbc jar들을 넣고 connect를 재기동시켰을 때 csv_spooldir 관련 에러가 나오는데 아마 input directory에 csv파일이 없다고 하는것같은데 이미 처리되어 finish로 가있는데 이것을 그냥 무시하면 될까요? org.apache.kafka.connect.errors.ConnectException: Failed to start connector: csv_spooldir_source Caused by: java.lang.IllegalStateException: Could not find any input file(s) to infer schema from.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. http://boj.kr/64fef1f0d3504d18ae0a5b33d0b81a25 안녕하세요! 온라인 C++ 컴파일러에서 돌려본 결과 다른 문자열에서는 정상적으로 출력되지만 "A rope may form )( a trail in a maze." 해당 문자열에서만 아무것도 출력이 되지 않습니다. 제 생각으론 스택에 ) ( 두개가 남아 스택 사이즈가 0이 아니기에 no를 출력해야 하지만 그렇지 않아 질문드립니다...
프로세스 휴식, 보류상태와 문맥 강의 4:15초 즈음의 설명에서 ready_queue에 있던 프로세스들이 sleep되거나 suspend된다고 하셨는데, 그게 가능한가요?? ready -> 실행 -> sleep 혹은 ready -> 실행 -> suspend를 줄여서 설명하신건가 싶다가도 suspend를 설명하실 때 큐 중간에 있던 프로세스를 색칠하신 표현이 마음에 걸리네요 ready_queue에 들어있던 ready상태의 프로세스가 단번에 suspend되거나 sleep되는 것이 가능할까요?
compose.yml과 프로젝트 소스를 Git Push Github Actions 에서 도커 이미지 생성 생성한 이미지 도커 허브에 전달 Github Actions 에서 EC2로 compose.yml 전송 Github Actions 에서 SSH로 EC2에 접속해서 docker compose down docker compose pull docker compose up 제가 생각하기에는 이 순서로 진행해야 할 것 같은데 혹시 잘못된게 있을까요?
heroku create drf-quiz-test 하니까 Creating ⬢ drf-quiz-test... ! ! To create an app, verify your account by adding payment information. ! Verify now at https://heroku.com/verif y Learn more at ! https://devcenter.heroku.com/articles/account-verificatio n 이런식으로 에러 뜨길래 왜인가 하고 찾아보니까 유료 결제를 안 해서 그런 것 같더라구요.. adding payment 를 하라는 에러인 듯 한데, adding payment가 결제 하는거더라구요. 이 부분은 결제하고 강의 따라서 계속 진행하면 되는 건가요? 처음이라 잘 모르겠어서 질문합니다
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
강사님께서 제공하신 버전으로도 진행을 해보았고, 새롭게 업데이트 된 버전으로 해보았으나 되지 않아 질문 남기게 되었습니다. API Key에 안드로이드 앱으로 설정을 완료도 해놓았고, 기타 부가적인 설정들도 pub.dev 의 readme을 읽어보니 기존 버전과 같아서 동일하게 진행했지만, 사진 처럼 정상적으로 화면이 로드되지 않고 있습니다. 사진 상단의 텍스트는 frame을 찾지 못했다고 하길래 제가 추가해본 위젯입니다!
영상 2:36초처럼 일반 pc에서 따라하고싶은데 에러가 나옵니다. 일반 pc cmd창에서 "git clone 도메인주소 https://github.com/joneconsulting/vagrant.git " 입력하게 되면 지정된 경로를찾을수 없다고 나옵니다. 해결방법을 알려주세요.
영속성 컨텍스트는 서버 인스턴스 내부의 트랜잭션 기준말고 별도의 추가 기준이 있나요? 현재 진행 중인 프로젝트에서 프론트는 리액트로 진행 중인데 리액트로 호출하면 수정하기 이전의 쿼리로 조회한 데이터가 여전히 조회됩니다. 그런데 해당 페이지에서 개발자 도구를 켜서 fetch 메소드로 조회하거나 포스트맨으로 조회하면 새로운 버전의 쿼리로 조회한 데이터가 조회됩니다. 혹시 결과가 다른 이유가 있을까요? 그리고 서버가 재시작됬는데도 데이터가 똑같은 이유가 있을까요? 배포는 도커랑 깃랩 러너로 하고 있습니다.
강의자료를 기반으로 코드를 작성하여 왔는데, 실행하는 것에는 문제는 없으나, 회원 목록 조회 기능에서 whitelabel error page가 발생하였습니다. 어떻게 해야하나요? github 저장소: https://github.com/devcjw/Spring-Boot-Study
PS C:\Users\SAMSUNG\Desktop\python> python main.py DevTools listening on ws://127.0.0.1:3998/devtools/browser/e175eec7-d9d5-49f4-927d-071f1a1300da 오류 발생: Message: Stacktrace: GetHandleVerifier [0x00007FF6F642EEA2+31554] (No symbol) [0x00007FF6F63A7ED9] (No symbol) [0x00007FF6F626872A] (No symbol) [0x00007FF6F62B8434] (No symbol) [0x00007FF6F62B853C] (No symbol) [0x00007FF6F62FF6A7] (No symbol) [0x00007FF6F62DD06F] (No symbol) [0x00007FF6F62FC977] (No symbol) [0x00007FF6F62DCDD3] (No symbol) [0x00007FF6F62AA33B] (No symbol) [0x00007FF6F62AAED1] GetHandleVerifier [0x00007FF6F6738B1D+3217341] GetHandleVerifier [0x00007FF6F6785AE3+3532675] GetHandleVerifier [0x00007FF6F677B0E0+3489152] GetHandleVerifier [0x00007FF6F64DE776+750614] (No symbol) [0x00007FF6F63B375F] (No symbol) [0x00007FF6F63AEB14] (No symbol) [0x00007FF6F63AECA2] (No symbol) [0x00007FF6F639E16F] BaseThreadInitThunk [0x00007FF854DB257D+29] 도와주실 수 있나요? from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time import os import urllib.request # ChromeDriver 경로 driver_path = "C:/Users/SAMSUNG/Desktop/python/chromedriver-win64/chromedriver.exe" # Chrome 옵션 설정 chrome_options = Options() chrome_options.add_argument("--headless") # 브라우저를 띄우지 않고 실행할 경우 주석 해제 chrome_options.add_argument("--disable-gpu") chrome_options.add_argument("--no-sandbox") # Selenium WebDriver 생성 driver = webdriver.Chrome(service=Service(driver_path), options=chrome_options) try: # Google 이미지 검색 페이지 열기 driver.get("https://www.google.com/imghp?hl=ko") # 검색어 입력 search_box = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.NAME, "q"))) search_query = "사층리사진" # 검색하고 싶은 키워드 입력 search_box.send_keys(search_query) search_box.send_keys(Keys.RETURN) # 이미지 탭을 기다리고 클릭하기 img_tab = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//a[contains(text(),'이미지')]"))) img_tab.click() # 이미지 링크 수집 time.sleep(2) img_links = [] for i in range(5): # 처음부터 5페이지까지 이미지 링크 수집 soup = BeautifulSoup(driver.page_source, "html.parser") for img in soup.find_all("img", class_="rg_i Q4LuWd"): try: if 'src' in img.attrs: img_links.append(img['src']) elif 'data-src' in img.attrs: img_links.append(img['data-src']) except KeyError: continue driver.execute_script("window.scrollTo(0, document.body.scrollHeight);") time.sleep(2) try: next_button = WebDriverWait(driver, 10).until( EC.element_to_be_clickable((By.ID, "smb")) ) next_button.click() time.sleep(2) except: break # 이미지 다운로드 save_folder = "C:/Users/SAMSUNG/Desktop/python/downloaded_images" os.makedirs(save_folder, exist_ok=True) for idx, link in enumerate(img_links): img_name = f"image_{idx+1}.jpg" save_path = os.path.join(save_folder, img_name) try: urllib.request.urlretrieve(link, save_path) print(f"{img_name} 다운로드 완료") except Exception as e: print(f"{img_name} 다운로드 실패: {e}") except Exception as e: print(f"오류 발생: {e}") finally: # WebDriver 종료 driver.quit()
질문 답변을 제공하지만, 강의 비용에는 Q&A는 포함되어 있지 않습니다. 다만 실습이 안되거나, 잘못된 내용의 경우는 알려주시면 가능한 빠르게 조치하겠습니다! [질문 전 답변] 1. 강의에서 다룬 내용과 관련된 질문인가요? [예] 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? [예] 3. 질문 잘하기 법을 읽어보셨나요? [예] ( https://www.inflearn.com/blogs/1719 ) 4. 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. [질문 하기] 안녕하세요, 강사님 현재 윈도우11 home을 사용하고 있으며, 기본스펙은 i5-12세대, 16GB 를 사용하고 있습니다. x86-64 amd64에서 실습을 진행하기 위한 기본세팅은 알려주신 방법대로 정상적으로 설치되었습니다. 그런데 챕터 2.11 에서 prometheus-installer-15.sh 자동설치를 진행하는 과정에서 repo not found 이슈가 발생하였습니다. 영상 하단에 git 주소에 들어가서 repo URL을 등록했는데도, 계속 not found가 뜨네요. 혹시 해결방법을 알 수 있을지 문의드립니다. #repo 추가시 사용한 명령어 helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update