묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
다국언어를 지원하는 웹사이트에서 LocaleResolver의 사용
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]안녕하세요 선생님강의 복습 도중 질문이 생겨서 글 작성하게 되었습니다.웹사이트들을 보다보면 다국적 기업들의 웹사이트의 경우 사용자가 선택하면 다른 언어의 웹사이트가 표시되도록 국가 리스트를 선택할 수 있게 해둔 경우가 많은데요이때 보면 url의 뒤에 /ko, /en, /us, /cn 등URL Pattern을 붙여서 구분하는 경우가 많은데 이 부분은 스프링 국제화와는 다소 거리가 먼 것 같습니다/ko /en은 urlPattern의 차이를 두는 방식이고 스프링 메세지 국제화는 브라우저의 request accept-header를 기준으로 하는 것으로 이해했는데요혹시 저렇게 /ko /en /us /cn등을 사용하지 않고 국제화를 사용하기 위해서 국가 리스트에서 특정 국가를 선택하면 요청헤더의 accept-lang을 바꾸는 개발방법도 많이 이용되기는 하는지 궁금합니다.
-
해결됨[게임 프로그래머 입문 올인원] C++ & 자료구조/알고리즘 & STL & 게임 수학 & Windows API & 게임 서버
섹션 5 - C 스타일 캐스팅에서 offset관련하여 질문이 있습니다
포인터 간 캐스팅에서dog -> age = 10; 코드로 인해 침해 당하는 부분이 Knight가 Player로부터 상속된 요소들이 모여있는 부분이라면 상속된 요소들이 모여있는 부분의 offset이 0번인건가요?Dog클래스에서 age의 offset이 0번인것은 알겠지만, 상속이 이루어진 클래스, 특히 class Player{public:virtual ~Player() { }}class Knight : public Player{public: Player* target;int hp;int defence;};와 같은 클래스에서 offset을 어떻게 구분할 수 있는지 궁금합니다
-
미해결스프링 핵심 원리 - 기본편
테스트 시에 스프링 사용
강의에서 필드 주입의 경우 일반 테스트 시에는 스프링에 의한 주입이 일어나지 않으니 다른 주입 방법이 있어야 하는데, 방법이 없으므로 권장하지 않는다고 이해했습니다.@Test에서 테스트 시에 테스트 객체 안에서 (static) AppConfig를 만들어서 bean을 정의하고 ApplicationContext에 적용시킨 것이 기억나는데요제가 이해한 것이 맞다면 test영역에는 스프링 컨테이너가 영향을 끼칠 수 없는 영역인건가요?그래서 AppConfig를 테스트 영역 안에서 생성하여 적용한 것인가요? 그리고 @SpringBootTest에서는 스프링이 영향을 미치게 되는건가요?
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 기본편
순서대로 나와야 하나요?
안녕하세요. 뉴스의 제목과 링크는 잘 나오는데, 순서가 밑으로 갈수록 조금 뒤바껴 나옵니다. 순서대로 안 나와도 맞는 건가요?
-
미해결스프링 핵심 원리 - 기본편
싱글톤 컨테이너 강의에서 궁금한점이 생겨서 질문드립니다.
앞선 강의에서 테스트를 진행하며 싱글톤 컨테이너를 생성할때반환타입을 구체클래스인 AnnotationConfigApplicationContext로 하여 빈을 조회하거나 하였습니다.AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);하지만 싱글톤 컨테이너 강의에서 요청이 두번왔을때 꺼낸 빈이 같은 객체를 반환하는지를 확인하기 위한 테스트에서(3분즘) 컨테이너를 생성할때 반환타입을 ApplicationContext로 하셨습니다. ApplicationContext는 인터페이스이기에 구현 클래스인 AnnotationConfigApplicationContext에 비해 기능도 적은 것으로 알고있는데, 혹시 지금까지의 테스트에선 반환타입을 AnnotationConfigApplicationContext로 하셨지만 아래 테스트에선 특별히 반환타입을 ApplicationContext로 하신 이유가 궁금하여 질문드립니다. 감사합니다.@Test @DisplayName("스프링 컨테이너와 Singleton") void YesSpringContainer() { ApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class); //AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
-
미해결SQL 개발자 (SQLD) 자격증 따기 Part.2
슨생님 ....
수업 초반에서는 RollBack이 DDL인 Alter에는 적용인 안되나보다 하다가 뒤에서는 롤백을 해서 Alter 한게 안 먹었다보다 하시고;;;;
-
해결됨
강사님 빈이 생성되고 수행되는 순서가 궁금합니다.
@Component 를 붙인 클래스를 @Import 로 빈으로 등록BeanPostProcessor 의 postProcessAfterInitialization 실행 @Componentscan 에 의한 클래스의 빈 등록 제가 "프로퍼티 빈의 후처리 도입" 의 강의를 듣고 있는데 강사님께서 주신 소스에서 @ComponentScan 과 @Import 에 의해 동일하게 빈이 생성된다는 가정하에@Import 문을 뺏더니 에러가 발생하는데 그건 아마도위의 순서 중 1 -> 2 -> 3 으로 수행되기 때문에 2를 수행하는 시점에 아직 scan 작업이 일어나지 않아 에러가 발생하지 않나 추측해 봤습니다. 제 추측이 맞는지요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
Managers 질문
안녕하세요.선생님께서 말씀해주신 내용에서 궁금한 점이 있어서 두 가지 질문 드립니다. 1:00 강의선생님께서 컴포넌트와 관련된 클래스를 많이 생성했을 때Update() 함수가 많이 호출되고그 안에서 각각 Input.GetKey를 많이 호출하면 성능부하가 생길 것이라고 이해했습니다.KeyAction 에다가 OnUpdate 함수를 구독하면 각 함수들이 독립적, 순차적으로 실행될 것으로 이해됩니다.위처럼 이해한다면 Update에서 각각 호출하는 것과 성능부하가 생긴다는 것이 잘 이해가 되지 않습니다. 선생님께서 말씀하신 인풋을 각각 관리하면 추후 유지보수에 어렵다는 내용에는 이해가 가지만 성능부하 관련해서는 아직 제 지식이 짧아서 이해가 잘 가지 않습니다.. Managers 내부 InputManager 변수Managers 클래스를 싱글톤으로 생성한 이유는 Managers를 여러 오브젝트에 붙였을 때 따로 생성되고,여러개가 생성될 필요가 없기 때문이라고 이해했습니다.그렇다면 Mangers 내부 변수들도 저는 한번씩 생성되어야 된다고 생각이 됩니다. 하지만 InputManager _input = new inputManager();를 변수에서 생성한다면 Managers 클래스는 한번씩 생성되지만 InputManager 클래스는 여러 object에 Managers.cs를 어태치 한다면 계속 생성된다고 이해됩니다.혹시 제가 이해한 내용이 맞을까요? 맞다면 static 변수로 선언해야 되나요?? 그리고 좋은 강의 제공해주셔서 정말 감사합니다!
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
save와 saveAndFlush 함수의 차이
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]save와 saveAndFlush 함수의 차이가 궁금해 질문남깁니다. 인터넷에서는 보통 save는 영속성 컨텍스트에 등록, saveAndFlush는 DB에 바로 저장이라고 하는데 아래의 블로그를 보니 DB에 바로 저장하는게 아닌 것 같아요.https://ramees.tistory.com/36 강의에서는 'flush = 쓰기 지연 SQL에 등록 > 이 쿼리를 DB로 전송' 이라고 설명하셨는데, 위 블로그의 실험에 따르면 saveAndFlush는 '쓰기 지연 SQL에 등록' 까지만 이루어지는 함수인가요? 그렇다면 save/saveAndFlush 두 함수 모두 실제 DB insert는 @Transactional이 끝난 후에 이루어지는건가요? 또한 위의 블로그에 따르면 @Transactional 어노테이션이 없으면 save/saveAndFlush 실행 직후 insert문이 나가고, @Transactional 어노테이션이 있으면 변화가 생긴다는데 왜 이런 변화가 생기는 건지궁금합니다.
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
맥북 m2 vscode 설치에 대해 질문이 있습니다!
맥북에 vscode를 설치하는 과정에서 막히는 부분이 있습니다.brew install gcc를 통해 gcc를 설치했습니다.다음으로cd /usr/local/includemkdir bitscd bitsvi stdc++.h부분을 하려고 하는데사진과 같이 'include' 파일이나 디렉토리를 찾을 수 없다고 나옵니다.그래서 그냥 local에 디렉토리를 생성하려고 보니 'permission denied'가 뜹니다.맥북 m1의 방식으로 하려고 보니 역시 'permission denied'가 뜹니다.이 오류를 고칠 수 있는 방법이 있을까요?그리고 이 과정을 다 진행하면 vscode가 깔리는 것인지 vscode를 깔고 진행해야하는 것인지를 모르겠습니다.혹시 vscode에 대한 설정이 잘 안되면 xcode를 활용해서 강의를 진행해도 라이브러리나 함수를 사용하는 데 지장이 없을까요?
-
미해결[라이브 멘토링] 유니티 뱀파이어 서바이벌 장르 모작
IsSubclassOf 질문입니다
else if(type == typeof(ProjectileController)) { GameObject go = Managers.Resource.Instantiate("FireProjectile.prefab", pooling: true); go.transform.position = position; ProjectileController pc = go.GetOrAddComponent<ProjectileController>(); Projectiles.Add(pc); pc.Init(); return pc as T; } 총알이 계속 안불러와져서 코드실수인가 해서 계속 체크하다가 중단점 잡고 보니else if (typeof(T).IsSubclassOf(typeof(ProjectileController)))이 부분을else if(type == typeof(ProjectileController))이렇게 바꾸고나니 총알이 제대로 불러와지더라구요 뭐가 문제인가요?? 강사님 코드에서는 isSubclassOf 를 쓰셔도 잘 발사가 되는거 같은데
-
미해결실무에서 바로 쓰는 영어 이메일
강의자료 요청 드립니다.
안녕하세요, 좋은 강의 감사합니다.아래 메일로 강의 자료 부탁드립니다.eunhye.cho@hlcompany.com감사합니다.
-
미해결입문자를 위한 코딩테스트 핵심(이론과 문제풀이) [Python]
안녕하세요 강사님 !
자바 코테 이어서 파이썬 강의까지 듣고있습니다 :)혹시 출처 남기고 블로그 및 깃에 올려서 될까요!
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
3-A 문제 이해
만약에 m이 3이고 치킨집이 5개면5C1인 경우 5C2, 5C3인 경우의 조합들을 다 구해서각각의 경우에 대한 치킨 거리를 계산한 후 최종적인 최솟값을 구하는 문제인 줄 알았습니다.예시)5C1 이면 m=3이니까 {0} -> 각 집들의 치킨 거리를 구한 후 더한 값{1} 위와 같음{2} 위와 같음{3} 위와 같음{4} 위와 같음5C2 이면{0,1}{0,2}{0,3}...이렇게 전부의 경우에 대한 거리 값을 구한 후 최소를 찾는 건 줄 알았는데위의 방법이 아니라 그냥 m=3이면5C3의 조합들 중에서 최소가 나오는 경우를 구하면 되는 건가요?? 제가 문제를 잘 이해를 못하는 것 같아서 질문 드립니다!!
-
미해결[리뉴얼] 타입스크립트 올인원 : Part1. 기본 문법편
ReadonlyArray<T>에서 T가 어떤 타입인지 찾으실때 질문있습니다.
ReadonlyArray<T>에서 T가 어떤 타입인지 찾으실때 질문있습니다.ReadonlyArray의 타입을 살펴볼려고하면 이렇게 여러가지 타입이 있습니다. 어디로 들어가서 확인해야하는지를 알 수 있는 방법이 있을까요? ReadonlyArray 이외에도 es5에 있던 타입들이 오버로드되서 esNext에도 있는 것들을 보면 어느 파일으 것을 확인해야 할지를 잘 모르겠습니다. 하나씩 다 보면서 찾는게 맞는건가요??
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL
리트코드 사이트
리트코드 사이트 problem에 category항목이 노출되지 않는데 현재는 변경되었을까요?
-
미해결비개발자를 위한 RPA 강의 (UiPath 입문편)
click image가 안먹혀요 ㅠㅠ
뉴스까지 들어가서 코로나라는 뉴스가 없길래스카우트로 text를 하고댓글image까지 했는데 저런 빨간색 에러가 뜹니다.이유가 뭔지 알려주시겠어요? ㅠㅠ너무 어렵습니다..
-
미해결우디의 일러스트레이터 강좌
일러스트 모양 안흩어지게 크기 키우는법
일러스트 모양 안 흩어지고 모양 그대로 크기 키우는 방법 없을까용 ㅠㅠ 크기를 키우거나 줄이면 선 굵기가 두꺼워지거나 모양이 바껴버리네요 ..ㅠㅡㅠ
-
해결됨웹플로우(Webflow) 시작하기 - 코딩 없이 자유도 높은 프로토타입 만들기
hidden fields
Tally랑 연결해서, 게시물 작성하는 링크를 embed하고, 영상강의에 따라, tally의 custom code를 웹플로우 New product 페이지에 넣었는데, 계속 Hidden Fields값에 공란으로 나옵니다.여러번 강의를 돌려서, 강사님 가르쳐준대로 똑같이했는데, 제가 만든 clone 사이트에서 게시물올리면 hidden fields값이 공란으로 나오네요..Tally Form에서 URL 주소 + "name=이름"을 넣으서 시도해보면, 잘 나오는데, 웹플로우에서 반영하고 페이지에서 작성하면 뜨지가 않습니다. 혹시 방법이 있는지 알 수 있을까요?
-
미해결
How to Activate A New Cash App Card?
Imagine a long queue behind you at Walmart, just waiting for you to finish your payment process. Some are making different sounds and passing comments on your way to pay fast and leave the cash counter. And guess what, when you check your pocket, you forget to carry your wallet is empty. Now what? No money means no groceries. Now imagine a Cash App card in this story. You forget cash but have your Cash App card, which you swipe and pay for your things in Walmart. Read the full blog to know about what a Cash App card is, its benefits, simple hacks to activate Cash App card and many more. What is a Cash App Card? You have $50 in your Cash App account and want to buy a new book online. Instead of using your bank card, you can use your Cash App Card to pay for the book directly from your Cash App balance. This way, you don't need to transfer money to your bank account first. Cash App Card is like a special debit card to use money from your Cash App account. It lets you spend money from your Cash App balance in stores or online, like a regular bank debit card. We know Cash App is not a bank, but on the search of Cash App bank name, you will find Cash App partner bank names - Lincoln Savings Bank and Sutton Bank. Sutton Bank is the Cash App partner bank that issues Cash App cards. Who activates Cash App card?Activation of a Cash App card is the task accomplished by the user who receives it. Once you receive the physical Cash App Card, you need to activate it using the Cash App mobile application. The activation process typically involves scanning the QR code on the card or entering the card details manually in the app. After successful activation, the card becomes linked to the user's Cash App account, allowing them to use it for purchases and withdrawals where shop owners accept Visa debit cards. What are the simple hacks to activate Cash App card? Download and install the Cash App mobile application from the App Store (iOS) or Google Play Store (Android).Open the Cash App and log in to your account using your registered mobile number or email address.Tap the profile icon or the three horizontal lines in the top-left corner to access the "Settings" menu.Click the "Cash Card."Look for the "Activate Cash Card" option.If your Cash App card has a QR code, use your phone's camera to scan it. Alternatively, you can enter the card details manually if there's no QR code.Verify your identity for security purposes.Congratulations, you have activated Cash App card successfully. Can I activate my cash app card before it arrives?It is impossible to activate your Cash App card before it arrives. The activation process requires information from the physical card, such as the QR code or card details, accessed once you have the physical card in your possession. Once you receive the card, you can easily activate it through the Cash App mobile application. How to activate Cash App card with a scanner?Login into a Cash App account. Click the profile icon. Select "Activate Cash Card" from the options.Use your phone's camera to scan the QR code on the Cash App card.When you scan your Cash App card, it activates within a second. What are the benefits to activate a Cash App card? Activating a Cash App card offers several benefits. You can spend money in your Cash App account with a physical debit card. You can use the card for purchases at stores or online and withdraw cash from ATMs. Activating the card provides enhanced security, as you can easily monitor and control your transactions through the Cash App mobile app. The card also enables you to earn rewards and discounts through Cash App's Boost program, which offers cashback on selected purchases. Activating a Cash App card expands the usability of your Cash App account and makes managing your finances more accessible and rewarding.What are the disadvantages of a Cash App card?While a Cash App card offers convenience and benefits, it also has drawbacks. Not all accept Cash App cards compared to traditional bank cards, limiting their use in certain places. Using the card for ATM withdrawals may incur fees, and international transactions might involve additional charges.Customer support may be slower than traditional banks, causing delays in resolving issues. Cash App may have limitations on transaction amounts and frequency, restricting larger or more frequent transactions. Cash App card scamsThese are some common Cash App card scams. Don't share your personal information, like card details, etc.Scammers may use phishing emails or fake customer support to deceive users.They may alter QR codes to divert funds to their accounts.Fraudulent investment schemes and fake prizes are also common tactics.What are the other popular features of Cash App?Cash App offers cashback rewards called "Boosts" when users purchase at eligible merchants using their Cash App card. Users can set up Cash App direct deposit to receive paychecks or payments directly into their Cash App account.Cash App users can buy, sell, and send Bitcoin directly from the app.Cash App provides a feature called Cash App Investing that allows users to invest in stocks and buy fractions of shares.This feature lets users pay merchants who accept Cash App Pay using smartphones.Cash App offers features for business accounts, including a separate interface for managing business transactions. Users can earn extra cash back rewards using their Cash App card for specific purchases with Cash App's partners.Can you use a Cash App card on Amazon?You cannot use your Cash App card directly on Amazon for online purchases. Amazon requires traditional debit or credit cards for transactions on their website. However, you may link your Cash App card to a PayPal account and use PayPal as the payment method on Amazon to indirectly use your Cash App balance for purchases. Does eBay accept a Cash App card? eBay does not directly accept Cash App cards for purchases. Like Amazon, eBay requires traditional debit or credit cards and PayPal as the primary payment method for transactions on their platform. However, similar to using a Cash App card on Amazon, you can link your Cash App card to a PayPal account and use PayPal as the payment method on eBay to indirectly use your Cash App balance for purchases. eBay has not set up a connection with Square Cash App to accept payments from this source.