묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 배치
JdbcPagingItemReader에서 ID값이 읽어지지 않습니다.
안녕하세요! 항상 좋은 강의 제공해주셔서 감사합니다. 강의를 바탕으로 실습을 하고 있는 도중 문제가 있어서 해당 부분을 문의 드리고자 글을 적습니다. 문제는 Jpa 기반 ItemReader를 사용할 경우, 객체에 정상적으로 PK값이 들어오는 것이 확인되는데, Jdbc 기반 ItemReader를 사용할 경우 PK값이 정상적으로 들어오지 않는 것이 확인됩니다. ItemReader에서 값을 읽어온 후, ItemProcessor에서 전달받은 Input Chunk를 item 단위로 로그를 찍었을 때 확인한 것이라, ItemReader를 통해 DB에서 읽은 값이 객체에 맵핑이 되지 않는 것 같습니다. 혹시 이런 경우, 제가 어떤 부분을 잘못 설정하고 있는 것인지 조언을 부탁 드릴 수 있을까요? 아래에 주요 코드 및 실행 결과를 첨부드립니다. @Entity 클래스 public class Customer { @Id @GeneratedValue @Column(name = "customer_id") private Long id; private String firstName; private String lastName; private LocalDate birthDate;} @JpaCursorItemReader @Beanpublic ItemReader<Customer> customerJpaItemReader() { HashMap<String, Object> paramMap = new HashMap<>(); paramMap.put("firstname", "%customer0"); return new JpaCursorItemReaderBuilder<Customer>() .name("jpaCursorItemReader") .entityManagerFactory(emf) .queryString("select c from Customer c") .maxItemCount(100) .currentItemCount(10) .build(); } @JpaCursorItemReader 실행 결과 pk값이 정상적으로 맵핑되서 올라옵니다. @JdbcPagingItemReader return new JdbcPagingItemReaderBuilder<Customer>() .name("JdbcPagingItemReaderJob") .dataSource(dataSource) .pageSize(10) .beanRowMapper(Customer.class) .fetchSize(CHUNK_SIZE) .currentItemCount(0) .maxItemCount(100) .selectClause("first_name, last_name, birth_date, customer_id") .fromClause("from Customer") .sortKeys(sortKey) .build();} @JdbcPagingItemReader 실행 결과 실행 결과 : Id값만 짤려서 올라옵니다.
-
해결됨한 입 크기로 잘라 먹는 리액트(React.js) : 기초부터 실전까지
최상위 태그 관련 에러 ?
리스트렌터링 부분에서 최상위 태그가 없어서 에러가 난다는 부분에 대해서 다시 한번 설명 부탁드리겠습니다. <h2></h2> 부분을 같이 쓰고 싶다면 어떻게 최상위태그로 묶어주어야하나요? import Diarycotent from "./Diarycontent"; const DiaryList = ({ diarylist }) => { console.log(diarylist); return ( <div> <h2>일기장 list</h2> <div> {diarylist.map((it) => ( <div> <Diarycotent /> </div> <div><h2>aaaaaaaaa</h2></div> ))} </div> </div> ); }; export default DiaryList;
-
미해결레트로의 유니티 C# 게임 프로그래밍 에센스
오브젝트 이동에 관해서 질문이 있습니다.
윈도우 PC에서 유니티를 공부하는 유저입니다. 2분 10초에서 Ctrl키를 누른 상태로 오브젝트를 움직이면 1의 길이만큼 이동한다고 말씀하셨는데 제가 움직였을때는 0.25만큼 움직이던데 혹시 유니티 버전마다 해당 기능에 차이가 있는건가요?
-
미해결Ethereum 실전! 초보자를 위한 Lottery Dapp 개발
address payable error
I am getting the error in solidity 0.8.7
-
미해결스파크 머신러닝 완벽 가이드 - Part 1
databricks에 폴더 생성 및 신규 데이터 업로드
databricks에 new_folder_1를 만들고 그 아래 new_folder_2 라는 하위 폴더를 만들어서 그 안에 데이터를 업로드하고 싶습니다. 즉, 파일 경로가 최종적으로 new_df= spark.read.csv('/FileStore/new_folder_1/new_folder_2/file_name.csv', header=True, inferSchema=True) 가 되게 해서 import 하고 싶은데, 혹시 방법을 안내해주실 수 있으실까요?
-
미해결자바스크립트 : 기초부터 실전까지 올인원
백엔드도 가능한 사이트
혹시 자바 스프링 부트를 이용한 웹서비스 도메인을 얻는 방법도 있나요?? netlify는 프론트 엔드만 되는것 같아요
-
미해결Do It! 장고+부트스트랩: 파이썬 웹개발의 정석
tag_page 만들 때 질문입니다.
강의 10분 후반에 views.py에 tag_page를 만드는 과정에서 category_page를 복사 붙여넣기 한 후 수정을 하는데 post_list를 넘길 때 카테고리 페이지에서는 Post.objects.filter를 사용했는데 왜 tag에서는 tag.post_set.all()을 사용하는지 궁금합니다. 카테고리나 태그나 어차피 포스트에 있는 요소 중에 하나이고 많은 포스트 중에서 검색해서 가져오는 절차가 크게 다르지 않은 것 같은데 카테고리처럼 필터를 사용해서 해도 상관없나요? post_set은 어디서 나온건가요?
-
미해결Three.js로 시작하는 3D 인터랙티브 웹
709.js 대신 75.js 로 나왔는데 차이가 있는건가요 ?
- 질문에 대한 답변은 강의자가 하는 경우도 있고, 수강생 여러분들이 해주시는 경우도 있습니다. 같이 도와가며 공부해요! :)- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!- 먼저 유사한 질문이 있었는지 검색해보세요.- 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결C#과 유니티, 실전 게임으로 제대로 시작하기 (저자 직강)
이동...
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는 float health = 50.0f; void start(){ Move(); } void TakeDamage(float value){ health -= value; if (health <= 0) { Die(); } } public float GetHealth(){ return health; } void Die(){ Destroy(gameObject); } void OnCollisionEnter2D(Collision2D coll){ if (coll.gameObject.CompareTag("bullet")) { TakeDamage(10); Debug.Log("enemy 체력 : " + health); coll.gameObject.SetActive(false); } } void Move(){ gameObject.GetComponent<Rigidbody2D>().AddForce(Vector3.left * 200); } } 마지막줄 Move 부분이 아무리해도 이동을 하지않네요... 겟컴포넌트에서 릿지드바디 2d가져오고 에드포스에서 좌측으로 힘 200받아야한다.. 맞는거죠? 근데 숫자를 아무리 바꿔도 미동도없어요... 강의와 딱히 다른 점을 찾지도 못하겠습니다. 오브젝트에 릿지드바디2d도 설정이 되어있습니다..ㅠ
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
슬라이싱, 형변환 연산
슬라이싱은 문자열만 가능한가요? 숫자열에는 적용이 불가능한건가요? 그리고 print('Test' + str(c[0]) 요건 되는데 print(int('Test') + c[0]) 이건 왜 안될까요? 자료형만 같은걸로 세팅하면 되는게 아닌가요?
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
왜 오답인지 궁금합니다
안녕하세요. 저는 0번지부터 시작해서 푼 다음에 마지막에 +1로 정답을 넣었고, Set을 사용해서 중복친구를 제거했습니다. 예시와 아래 테스트케이스는 맞게 나오는데, 채점하면 오답이라고 나옵니다. 제가 뭘 놓쳤는지 궁금합니다! 5 1 1 1 1 1 1 1 1 1 1 1 3 4 5 5 3 3 3 3 3 4 4 4 4 4 public static int solution(int n, int[][] arr) { Set<Integer> sameClass = new HashSet<>(); int max = 0; int answer = 0; for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ for(int k = 0; k < 5; k++){ if(i != j && arr[i][k] == arr[j][k]){ sameClass.add(j); } } } if(max < sameClass.size()){ max = sameClass.size(); answer = i+1; } sameClass.clear(); } return answer; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] arr = new int[n][5]; for(int i = 0 ; i < n; i++){ for(int j = 0; j < 5; j++){ arr[i][j] = sc.nextInt(); } } int answer = solution(n, arr); System.out.println(answer); }
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
Assert 심볼을 해결할 수 없습니다.
안녕하세요 계속 질문 드려 죄송합니다 ㅠㅠ 구글링을 해도 해결방안을 찾지 못했습니다. application.yml 파일을 생성하고 테스트를 하려고 junit4 로 만들었습니다. 여기서 Assert부분이 빨간색으로 나타나며 심볼을 해결할 수 없다고 뜹니다. 이미지 보시면 제가 생성한 yml 파일 형식의 아이콘이 동영상이랑 다르긴한데 application.yml 파일에 오류가 나서 import가 안되는 것일까요? 혹시 몰라 ;MVCC=TRUE 도 삭제해보고 다시 시도 해봤지만 그대로입니다. 어떤 해결 방안이 있을까요!? ㅜㅜ
-
미해결애플 웹사이트 인터랙션 클론!
.sticky-elem 질문입니다.
.sticky-elem {position: fixed;} 을 하고 left:0, left:100 을 주나 위치가 변동이 되지 않습니다. 마찬가지로 right 값을 줘도 변하지 않습니다. 결론은 top:0 이 값만 있어도 가운데로 고정이 됩니다.위치가 변하지 않는데 굳이 left:0 을 주는 이유가 궁금합니다.
-
미해결
Reasons due to which you can't delete a PayPal account-
When you want to cancel a PayPal account, you can follow the steps below to remove all your bank details and personal information. Once you delete your account, you cannot re-open it. However, you can create a new one with the same email address and continue using it. The only thing you'll lose is your transaction history. This process is the same for business and personal accounts. Before you choose to cancel your PayPal account, be sure to check whether there are any outstanding issues with your account. To permanently delete your PayPal account, first make sure that you've made a backup of your transaction history. You may want to print this out to keep a copy of the transactions. Next, log into your PayPal account on your computer and click on the gear icon in the upper right corner. Go to the Settings menu and select "Close my account." Then, follow the instructions to confirm your action. To delete your PayPal account, go to your profile page Click on "Close My Account" located in the upper right corner. Then, select "Close Account" in the bottom-right corner. After clicking this button, click on the Close My PayPal Account option, and confirm your decision to close your account. You will have to print out a copy of your transaction history to ensure that you have no unauthorised transactions in the future. How to Delete a PayPal Account From Your Phone? How do you delete a PayPal account from your phone? If your account has been compromised, or you've switched to a different payment platform, you've come to the right place. PayPal apps have an option called "Settings" in the bottom-right corner of the screen. Click on this and you'll be presented with a list of all your accounts. Tap the account you wish to delete, and then follow the prompts. If you've deleted your account, don't worry. It's possible to recreate it with a new email address. The disadvantage is that you'll lose all transaction history. So, before you decide to delete your Paypal account from your phone, backup your information and transactions on a different device. You can do this by logging into your PayPal page on your computer or laptop, and then deleting your account from there. If you've decided to delete your Paypal account, you should know that the process will take some time. This is because PayPal will clear all the relevant information before deleting your account. This means that you'll have to restore your previous transactions, and the process will take some time. In the meantime, you can still keep your account's transaction history by taking a screenshot of the details. You can also manually delete your PayPal account on your computer or laptop. Why Can't I Delete My PayPal Account? There are a few reasons why you might want to delete your PayPal account. You can do this on your own, or you can ask a friend or family member for help. If you don't want to keep a copy of your transaction history, you can screenshot it. Then, you can decide to change your mind later. You can also switch from a business account to a personal one. In any case, you can always ask for help from PayPal customer support. However, you cannot completely delete your account if you have made a payment. There are a few reasons you might want to delete your PayPal account. For example, you may have an account with a different email address. If this is the case, you may want to re-open it with a new email address. If you decide to delete your account, you can do so by logging into your PayPal profile using your laptop or personal computer. A mobile device will not allow you to do this. Once you're logged in, simply click the "Close Account" button and confirm that you wish to delete your account. There are a number of reasons to delete the PayPal account on app. It may be that you've already found a better option or are against paying fees. Whatever your reason, closing your PayPal account is an easy and quick way to keep your finances private. While PayPal is one of the safest ways to send money online, you should still take care of any unresolved issues. If this is the case, it's best to get your financial records back in order.
-
해결됨프론트엔드 개발자를 위한, 실전 웹 성능 최적화(feat. React) - Part. 2
궁금한 점이 있습니다.
불필요한 css를 purgecss로 제거하셨는데, 궁금한 점이 웹앱의 경우는 웹에서 사용하는 css는 앱에선 필요없고, 앱에서 사용하는 css는 웹에서는 필요없는데 이런것도 구별해서 제공을 해주는지 궁금합니다. 웹앱의 경우는 두개의 css를 다 갖고 있어서 불필요한 css를 줄일 수 있는지가 궁금합니다.
-
미해결Vue.js 시작하기 - Age of Vue.js
Router 질문드립니다.2
먼저 답변 주셔서 너무 감사합니다.어떻게 해야 하는지 막막했는데 방향을 알려 주셔서 너무 감사합니다.완벽가이드의 어느 강좌에 설명이 나오는지 알려주시면 감사하겠습니다.강사님이 알려주신 사이트를 보니까 원인은 history 모드로 인해 발생는것을 알았습니다. node, express 와 아파치2 를 사용하는데 두군데 모두 수정을 해야하는것 같은데 강사님 강의를 듣는게 확실할것 같아서 문의 드리니 답변 부탁 드립니다.
-
미해결Axure RP 9,10 - 서비스 기획자를 위한 최적의 프로토타이핑 툴
Axure 버전별 호환성 문제
RP9와 RP10d이 호환이 안되나요? 9에서 작업한게 10에서 안열린다는 이야기가 있던데요... 사실인가요?
-
미해결[2021] 요즘 누가 유료로 웹서비스 구축하나, 파이어베이스의 모든 것 - Vue.js
작업하신 Source는 어디서 다운 받을수 있나요? Table2 화면
좋은 강의 잘들었습니다. 현업에서 사용하기에 정말 유효한 꿀팁들로 가득 차있어서 매우 만족 합니다. 혹 작업하신 Source는 어디서 다운 받을수 있나요? Table2 화면을 받아보아서 Before and After를 비교해보고자 합니다. 수고하세요.
-
미해결홍정모의 따라하며 배우는 C언어
7분 20초 num의 소수 존재유무 예제 질문드립니다.
7분 20초 num의 소수 존재유무 예제 질문드립니다. for (unsigned div = 2; div < num; ++div) { if (num % div == 0) isPrime = false; } 이 부분에서 반복 조건이 (div < num) 하나밖에 없는데도 num의 소수 존재 유무를 알 수 있는 이유가 어떤건가요? 예를 들어 num이 숫자 9라면 div가 2일때는 isPrime = true였다가 div 3일때는 isPrime = false로 바뀌고 다시 div가 4일때는 isPrime = true로 바뀌어서 반복조건에 (div < num) 하나만 있으면 isPrime이 제대로 된 값을 갖지 못하는것 아닌가요? 제가 생각하기에는 조건에 (div < num) && (isPrime == true)가 있어야 한다고 생각했는데 강의에 나온대로 코딩하면 문제없이 잘 이루어지는게 이해가 안되서 질문드립니다.
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
주사위게임
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 주사위게임 풀다가 질문이 있어서 글올립니다 n=int(input()) for i in range(n): a=list(map(int, input().split())) k=[0]*6 # [0,0,0,0,0,0] prize=0 max_prize=-0.1 for j in a: k[j-1] += 1 if k[j-1]==3: print(k[j-1],'3번')# 2 2 2 prize=10000+(j)*1000 print(prize) elif k[j-1] ==2: print(k[j-1],'2번')# 3 3 6 prize=1000+(j)*100 print(prize) elif k[j-1] ==1: print(k[j-1],'1번')# 6 2 5 prize=max(a)*100 print(prize) print(prize) 현재 저는 이렇게 풀고 있는 중인데 3 3 6을 넣었을 때 마지막 6을 넣었을 때 계속 오류가 나서 1300으로 prize값을 얻지 못하고 계속 600으로 뜹니다. 3 3 3 6 1 1번 600 600 2 2번 1300 1 1번 600 600