안녕하세요! 항상 좋은 강의 제공해주셔서 감사합니다. 강의를 바탕으로 실습을 하고 있는 도중 문제가 있어서 해당 부분을 문의 드리고자 글을 적습니다. 문제는 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 @Bean public 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값만 짤려서 올라옵니다.
리스트렌터링 부분에서 최상위 태그가 없어서 에러가 난다는 부분에 대해서 다시 한번 설명 부탁드리겠습니다. <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 ;
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 하고 싶은데, 혹시 방법을 안내해주실 수 있으실까요?
강의 10분 후반에 views.py에 tag_page를 만드는 과정에서 category_page를 복사 붙여넣기 한 후 수정을 하는데 post_list를 넘길 때 카테고리 페이지에서는 Post.objects.filter를 사용했는데 왜 tag에서는 tag.post_set.all()을 사용하는지 궁금합니다. 카테고리나 태그나 어차피 포스트에 있는 요소 중에 하나이고 많은 포스트 중에서 검색해서 가져오는 절차가 크게 다르지 않은 것 같은데 카테고리처럼 필터를 사용해서 해도 상관없나요? post_set은 어디서 나온건가요?
- 질문에 대한 답변은 강의자가 하는 경우도 있고, 수강생 여러분들이 해주시는 경우도 있습니다. 같이 도와가며 공부해요! :) - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
안녕하세요 계속 질문 드려 죄송합니다 ㅠㅠ 구글링을 해도 해결방안을 찾지 못했습니다. application.yml 파일을 생성하고 테스트를 하려고 junit4 로 만들었습니다. 여기서 Assert부분이 빨간색으로 나타나며 심볼을 해결할 수 없다고 뜹니다. 이미지 보시면 제가 생성한 yml 파일 형식의 아이콘이 동영상이랑 다르긴한데 application.yml 파일에 오류가 나서 import가 안되는 것일까요? 혹시 몰라 ;MVCC=TRUE 도 삭제해보고 다시 시도 해봤지만 그대로입니다. 어떤 해결 방안이 있을까요!? ㅜㅜ
.sticky-elem {position: fixed;} 을 하고 left:0, left:100 을 주나 위치가 변동이 되지 않습니다. 마찬가지로 right 값을 줘도 변하지 않습니다. 결론은 top:0 이 값만 있어도 가운데로 고정이 됩니다. 위치가 변하지 않는데 굳이 left:0 을 주는 이유가 궁금합니다.
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.
불필요한 css를 purgecss로 제거하셨는데, 궁금한 점이 웹앱의 경우는 웹에서 사용하는 css는 앱에선 필요없고, 앱에서 사용하는 css는 웹에서는 필요없는데 이런것도 구별해서 제공을 해주는지 궁금합니다. 웹앱의 경우는 두개의 css를 다 갖고 있어서 불필요한 css를 줄일 수 있는지가 궁금합니다.
먼저 답변 주셔서 너무 감사합니다. 어떻게 해야 하는지 막막했는데 방향을 알려 주셔서 너무 감사합니다.완벽가이드의 어느 강좌에 설명이 나오는지 알려주시면 감사하겠습니다. 강사님이 알려주신 사이트를 보니까 원인은 history 모드로 인해 발생는것을 알았습니다. node, express 와 아파치2 를 사용하는데 두군데 모두 수정을 해야하는것 같은데 강사님 강의를 듣는게 확실할것 같아서 문의 드리니 답변 부탁 드립니다.
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