묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨[무료 MS RPA를 활용한 업무 자동화] Power Automate Desktop Basic
set this element as pager
저도 페이지를 넘기면서 크롤링을 해와야하는데 다른 글에서 추천해주신 여자분의 영상을 참고했더니 set this element as pager 해당버튼을 눌러 설정을 하더라구요. 근데 제화면이랑 보기가 다르고 페이저로 설정은 없는듯합니다. 이경우 해결방법이 있나요?
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
Spring과 MySQL연동 실패 ..
dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' runtimeOnly 'com.h2database:h2' runtimeOnly 'mysql:mysql-connector-java:8.3.0' testImplementation 'org.springframework.boot:spring-boot-starter-test'}위와 같이 dependencies를 설정했고 밑은 application.yml입니다. spring: datasource: url: "jdbc:mysql://loca lhost/library" username: "root" password: "비밀번호" driver-class-name: com.mysql.cj.jdbc.Driver비밀번호는 알아서 설정했습니다. 오류가 생겨서 dependencies에서 runtimeOnly 'mysql:mysql-connector-java:8.3.0'로 설정했습니다.밑에는 에러 표시입니다. Execution failed for task ':LibraryAppApplication.main()'.> Could not resolve all files for configuration ':runtimeClasspath'. > Could not find mysql:mysql-connector-java:8.3.0. Required by: project :Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html > Task :LibraryAppApplication.main() FAILEDExecution optimizations have been disabled for task ':LibraryAppApplication.main()' to ensure correctness due to the following reasons: - Type 'org.gradle.api.tasks.JavaExec' property 'classpath' cannot be resolved: Could not resolve all files for configuration ':runtimeClasspath'. Reason: An input file collection couldn't be resolved, making it impossible to determine task inputs. Please refer to https://docs.gradle.org/7.5/userguide/validation_problems.html#unresolvable_input for more details about this problem.Execution failed for task ':LibraryAppApplication.main()'.> Could not resolve all files for configuration ':runtimeClasspath'. > Could not find mysql:mysql-connector-java:8.3.0. Required by: project :Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html Could not find mysql:mysql-connector-java:8.3.0.Required by: project :Search in build.gradle files뭐가 에러인가요..? 만약 Runtimeonly뒤에 version을 따로 기입하지 않는다면, Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure라는 에러가 뜹니다.
-
미해결[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
dartpad 에서 연습중인데 Future 키워드가 안먹습니다.
안녕하세요Dartpad 에서 연습중인데도강의중 async 프로그램중Future 키워드가 에러가 발생합니다.왜그런지요 알려주세요
-
미해결김영한의 자바 입문 - 코드로 시작하는 자바 첫걸음
섹션2 변수 선언과 초기화
[질문 내용]여기에 질문 내용을 남겨주세요.안녕하세요. 선생님께서 컴파일 완료된 것들은 out 폴더에 보인다고 하셨는데 hellojava랑 main만 보이고 나머지도 모두 컴파일 완료 했는데 out 폴더에서 보이지 않습니다.왜 그런건가요?? 그리고 out 폴더에서 보이지 않는다면 문제가 있을까요?
-
미해결[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
안녕하세요
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.코드팩토리 디스코드https://bit.ly/3HzRzUMFlutter 강의를 구매하시면 코드팩토리 디스코드 서버 플러터 프리미엄 채널에 들어오실 수 있습니다! 디스코드 서버에 들어오시고 저에게 메세지로 강의를 구매하신 이메일을 보내주시면 프리미엄 채널에 등록해드려요! 프리미엄 채널에 들어오시면 모든 질의응답 최우선으로 답변해드립니다!
-
미해결
npm run dev
$ npm run dev> movie-app@1.0.0 dev> parcel ./index.html[Error: Unable to open snapshot file: Illegal byte sequence] 왜 에러가 나는지 아무리 찾아봐도 모르겠어요~~ㅠ.ㅠ
-
미해결Microservice 구현 (with EDA,Hexagonal, DDD)
강의 음성 및 영상
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. [내부영역:응용서비스 구현(어플리케이션 헥사곤)-InputPort구현,아우터 포트 정의]강의에서 음성이 불명확하고, 코드 포커스로 확대하신것같은데 잘린부분(클래스 명, 어노테이션 등)이 많아요
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
DispacherServlet 의 WebApplicationContext 관련 질문입니다!
DispatcherServlet 에 대해 개인적으로 공부를 하다 아래와 같은 사진이 많이 보여서 처음에는 DispatcherServlet 에서 의존성 주입을 받을 때 Servlet WebApplicationContext Container 에서 주입받고 없으면 Root WebApplicationContext 까지 검색하여 주입하는 것으로 이해를 했습니다. 그리고 Root WebApplicationContext 에는 웹과 관련 없는 객체들이 등록하여 사용한다고 하여 그런줄 알았는데 실제로 디버깅을 해보니 SpringApplication.run 메서드 내에서 createApplicationContext 메서드가 호출되어 AnnotationConfigServletWebServerApplicationContext 객체가 생성된 후, localhost:8080/xxx 로 HTTP Request 를 보내니 FrameworkServlet 의 initServletBean 메서드에서 initWebApplicationContext 메서드를 호출해서 Root WebApplicationContext 를 가져와서 FrameworkServlet 의 webApplicationContext 에 참조를 저장하는데 이렇게 되면 사진에서의 Root ApplicationContext 와 Servlet WebApplicationContext 가 동일한 객체인걸로 생각이 되는데 실제로 두 객체가 같은 것인지, 아니면 뭔가 다른 무언가를 제가 하지 않아서 같은 참조를 가지는 건지 궁금하여 질문남깁니다!
-
해결됨Vue.js 시작하기 - Age of Vue.js
Vue 개발자 도구에서 다른 기능들이 안보여요!
컴포넌트만 있고 다른 기능들은 안보입니다ㅜㅜ ! 현재 Vue.js devtools는 확장프로그램으로 했고 버전도 2.7.16인데 안보여요 살려쥬세요,,
-
미해결[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
코드 문의
코드 클론 후 아래 코드에서style: ElevatedButton.styleFrom( primary: PRIMARY_COLOR,),아래 에러가 발생하는데 왜 발생하는 것일까요?The named parameter 'primary' isn't defined.
-
미해결홍정모의 따라하며 배우는 C언어
9.9 print_binary 다르게 함수를 짜봤습니다
#define CRTSECURE_NO_WARNINGS#include <stdio.h>void recursion(int num);int main(){ int num = 10; recursion(10);}void recursion(int num){ if (num == 0) return; else recursion(num/2); printf("%d", num % 2);} 혹시 이 함수도 맞는지 확인해 주실 수 있으신가요
-
미해결CS 지식의 정석 | 디자인패턴 네트워크 운영체제 데이터베이스 자료구조
volatile 관련 자바 classname.this 질문
DEEP DIVE : 싱글톤 패턴을 구현하는 7가지 방법 #2 ★★☆강의 volatile 설명에서 알려주신 자바 코드와 동일하게 Kotlin 코드를 작성했습니다.class Test2 { private var flag = true fun test() { Thread { var cnt = 0 while (flag) { cnt++ Thread.sleep(100) println(cnt) } println("Thread1 finished") }.start() Thread { Thread.sleep(100) println("flag to false") flag = false }.start() } }이 코드를 실행하면, flag가 바뀌는 즉시 첫 번째 쓰레드가 멈춥니다. 이유가 궁금해서 자바로 디컴파일된 코드를 확인해봤고, Thread1에서 flag를 확인할 때 Test2.this.flag와 같이 접근하는 것을 발견했습니다.ClassName.this 가 무엇인지 궁금합니다. 자바의 정석 책에 해당 내용은 없고, 구글에 검색해봤는데, 유의미한 답변으로 아래 글만 발견했습니다.Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.https://stackoverflow.com/questions/4080868/using-this-with-class-name/46091971#46091971
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
회원가입 로직 테스트 오류
https://drive.google.com/drive/folders/1unulH1E9G7a--c4InEpy_4NwIEKrvH4b?usp=sharing회원가입 로직 테스트 오류가 납니다. 필요:hello.demo.domain.Member@f48a080실제 :hello.demo.domain.Member@1d3a03fe<클릭하여 차이점 확인>org.opentest4j.AssertionFailedError: expected: hello.demo.domain.Member@f48a080 but was: hello.demo.domain.Member@1d3a03fe at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
-
미해결스프링 핵심 원리 - 기본편
request 스코프] CoreApplication 오류 납니다.
build.gradle에 웹 라이브러리 추가하고 dependencies { implementation 'org.springframework.boot:spring-boot-starter' implementation 'jakarta.inject:jakarta.inject-api:2.0.1' //web 라이브러리 추가 implementation 'org.springframework.boot:spring-boot-starter-web'CoreApplicaton을 돌렸더니, 아래와 같은 오류 메세지가 뜹니다. 대충 어떤 오류인지는 알겠는데.....어떻게 찾아서 고쳐야 할지는 모르겠네요? Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.Parameter 0 of constructor in hello.core.member.MemberServiceImpl required a single bean, but 2 were found: - memoryMemberRepository: defined in file [C:\SpringBoot\core\out\production\classes\hello\core\member\MemoryMemberRepository.class] - memberRepository: defined by method 'memberRepository' in class path resource [hello/core/AppConfig.class]This may be due to missing parameter name informationAction: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 consumedEnsure 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.
-
해결됨CS 지식의 정석 | 디자인패턴 네트워크 운영체제 데이터베이스 자료구조
5. 정적 멤버와 Lazy Holder(중첩 클래스) 질문
DEEP DIVE : 싱글톤 패턴을 구현하는 7가지 방법 #2 ★★☆챕터에서 5. 정적 멤버와 Lazy Holder(중첩 클래스)를 이용한 방법으로 아래 코드를 설명해주셨는데요public class Singleton { private static class singleInstanceHolder { private static final Singleton INSTANCE = new Singleton(); } public static Singleton getInstance() { return singleInstanceHolder.INSTANCE; } } 생성자를 private으로 막지 않으면 싱글턴 인스턴스를 만든 이유가 없지 않나요?싱글턴이 필요하지 않을 때는 생성자 호출로 생성한 후, 더 이상 쓰지 않을 때 GC가 회수하게 하다, 싱글턴이 필요한 순간에 생성하는 건가요? public class Main { public static void main(String[] args) { Singleton instance = new Singleton(); // 싱글턴이 필요하지 않으면 직접 호출하기 Singleton singleton1 = Singleton.getInstance(); // 싱글턴이 필요한 순간에 싱글턴 객체 생성하기? } }
-
미해결대세는 쿠버네티스 (초급~중급편)
Mac M1 모두 설치 후 접속 확인하고 VM 모두 종료 후 다시 실행했을 때 노드들 ssh 접근이 안되네요.
timeout 생기는데 설정 같은거 블로그 대로 진행 후 대시보드까지 확인 후 VM 모두 종료 후 다시 VM 실행해서 노드에 ssh 접속하려니까 안되네요.. 뭐가 잘못되었을까요..?
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
1-N 모듈러 공식 질문있습니다.
http://boj.kr/3508e81686454e2ea04b64d2c4a3ba94풀이법과 조금 다르지만 같은 원리로 풀었습니다 그런데http://boj.kr/9f02c3d4d7b14d9eb585cb7dabfc6d2a이건 두번째로 생각해본 풀이인데 이 코드는 틀렸다고 나옵니다.두 코드의 차이점은 매개변수 y (지수부분)가 홀수일 때 첫번째 코드는 go(y-1) , go(1) 을 해서 한쪽부분을 짝수로 만들어준 것이고두번째 코드는 go(y/2) ,go(y/2) ,go(1) 로 2로 나눠주면서 홀수라서 남는 부분을 곱해주는 방식입니다. 모듈러 공식이 (a * b) % c = ((a%c)*(a%c))%c 라고 하면(a*b*c)%c 도 같이 적용되어야 하는게 아닌가 싶어서 질문드렸습니다!
-
해결됨[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스
프리캠프 회원가입
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="./css/index.css"> </head> <body> <div class="wrapper"> <div class="main"> <div class="detail"> <div class="detail1">회원가입을 위해<br> 정보를 입력해주세요</div> <div class="detail2"> <input type="text" class="box" placeholder="* 이메일"> </div> <div class="detail3"> <input type="text" class="box" placeholder="* 이름"> </div> <div class="detail4"> <input type="password" class="box" placeholder="* 비밀번호"> </div> <div class="detail5"> <input type="password" class="box" placeholder="* 비밀번호 확인"> </div> <div class="gender"> <div> <input type="radio" name="gender">여성 </div> <div> <input type="radio" name="gender">남성 </div> </div> <div class="checkbox"> <input type="checkbox">이용약관 개인정보 수집 및, 마케팅 활용 선택에 모두 동의합니다. </div> <div class="line"></div> <div class="join"> <button>가입하기</button> </div> </div> </div> </div> </div> </body> </html> * { box-sizing: border-box; margin: 0px; } html,body { width: 100%; height: 100%; } .wrapper { width: 1920px; height: 1080px; display: flex; flex-direction: row; align-items: center; justify-content: center; } .main { width: 670px; height: 960px; border-radius: 20px; border: 1px solid #AACDFF; display: flex; flex-direction: row; align-items: center; justify-content: center; box-shadow: 7px 7px 39px 0px #0068FF40; } .detail { width: 470px; height: 818px; display: flex; flex-direction: column; align-items: center; } .detail1 { width: 466px; height: 94px; font: 700; font-size: 32px; color: #0068FF; } .detail2 { width: 466px; height: 80px; color: #797979; border-bottom: 1px solid #0068FF; } .detail3 { width: 466px; height: 80px; color: #797979; border-bottom: 1px solid #797979; } .detail4 { width: 466px; height: 80px; color: #797979; border-bottom: 1px solid #797979; } .detail5 { width: 466px; height: 80px; color: #797979; border-bottom: 1px solid #797979; margin-bottom: 20px; } .box { border: none; padding-top: 30px; } .gender { width: 140px; height: 23.94px; border: none; display: flex; flex-direction: row; justify-content: space-between; margin: 20px; } .checkbox { width: 454px; height: 21.06px; display: flex; flex-direction: row; justify-content: center;; font-size: 15px; margin: 30px; } .line { width: 470px; height: 1px; color: #E6E6E6; border: 1px solid #E6E6E6; margin: 20px; } .join { width: 470px; height: 75px; border: 1px solid #0068FF; border-radius: 10px; display: flex; justify-content: center; margin: 20px; } button { border: none; background-color: white; color: #0068FF; }생긴건 비슷하게 만들었는데 가입하기가 안 눌리는 것 같아요ㅠㅠ 이메일,이름 등 인풋도 밑줄에 맞게 써지지도 않습니다 ㅠㅠ
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
다섯번째 테스트 케이스 채점결과 exit_code_-1073741819
#include <stdio.h> int main() { //freopen("input.txt","rt",stdin); int n,abs,left,right,res=1; scanf("%d",&n); int a[n]={0,}; scanf("%d",&left); for(int i=1;i<n;i++){ scanf("%d", &right); abs=(right-left>0)?right-left:left-right; a[abs]=1; left=right; } for(int i=1;i<n;i++){ if(a[i]!=1) res=0; } if(res==1){ printf("YES\n"); } else{ printf("NO\n"); } return 0; }강의 듣기 전 스스로 짠 코드입니다. 채점결과 마지막 케이스만 이렇게 출력되는데 다섯번째 파일만 따로 돌려봐도 에러없이 종료되어서 원인을 잘 모르겠습니다ㅠㅠ
-
미해결[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core
access token DB 조회에 관해서
안녕하십니까. 강의 잘 듣고 있습니다 🙂 다름이아니라 궁금한 점이 있어 문의를 드리게 되었습니다.token 계열은 접근시 token 그 자체를 사용하기 때문에 DB 조회가 없어 장점이 있는 로그인 방식이라 생각이 드는데요.1) 강의에서 처럼 access token 을 이용하여 항상 db에서 사용자 데이터를 조회해 온다면 그런 장점이 사라지지 않을까요?2) 또한 부하가 많이 걸리지 않을까요?