묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
안녕하세요
궁금한게 있어서요! WAS 서버위에 JVM에 있는거죠!? 뭔가 그림이 그려지지않습니다. ㅠ-ㅠ
-
미해결풀스택을 위한 탄탄한 프런트엔드 부트캠프 (HTML, CSS, 바닐라 자바스크립트 + ES6) [풀스택 Part2]
함수 표현식 질문드립니다.
호이스팅 이슈 강의를 듣던 도중 함수 표현식에 대해 질문 드립니다. 보통 함수 선언문으로 만들고 그에 대한 함수를 호출할때 function getData() { } getData(); 이런식으로 함수를 호출해 주는데 함수 표현식으로 함수를 만들고 호출해야 할때는 어떻게 사용하는지 질문 드립니다.
-
해결됨그림으로 쉽게 배우는 운영체제
면접
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요, 오늘 결제하고 목록을 쭉 보고 있습니다. 한가지 걱정(고민)이 있어서 글을 남기게 되었습니다. 저는 우선 유망스타트업이나 대기업만 목표로 대비를 하고 있습니다. 혹시 여기서 다루는 운영체제로 제가 목표로 하는 기업 cs전공면접 중 운영체제는 전부 커버가 가능할까요? 만약 부족하다,,,, 싶다고 생각하시면 여기서 제가 더 채워 넣어야할 부분을 조언 주시면 정말 감사하겠습니다.
-
미해결기출로 대비하는 개발자 전공면접 [CS 완전정복]
모의면접
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요, 오늘 결제해서 목록을 보고 있습니다. 질문이 두가지 정도 생겼는데요, 1. 모의 면접의 경우 답안이 제공되는지 2. 강의에서 제공해주시는 것 이외의 직간접적으로 취합한 cs,포폴 질문리스트를 따로 제공해주시는지 궁금합니다.(아무래도 제가 생각한 것보다 질문의 양이 적다고 느껴져서 질문하게 된것 같습니다) 아무래도 유망 스타트업이나 대기업만을 목표로 하고 있어서요, 이런 곳에서 물어보는 cs,포폴질문을 한번에 전부 모아서 대비하고 싶어 여쭤보게 되었습니다. 만약 제공해주신 양만 소화한다면 대기업 cs전공, 포폴면접은 문제없다고 하시면 더더욱 집중해서 소화하도록 하겠습니다. 감사합니다.
-
미해결[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지
torchvision 전처리 관련 질문있습니다.
torchvision 전처리 예시에서 넘파이 배열에 tr.Compose로 tr.ToPILImage 적용 후 tr.ToTensor를 적용해주는데, 그렇다면 inputs = torch.FloatTensor(inputs) inputs = inputs.permute(2,0,1) labels = torch.FloatTensor(labels) 해당 코드를 안써도 무방한거 아닌가요?? 헷갈리네요ㅠㅠ
-
미해결파이널 코딩테스트 : 프론트엔드
추가문제 강의 업로드
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 추가문제 강의는 언제올라오나요?
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
-
-
-
해결됨[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
node.js에서 전역변수 표시를 하는 방법에 대해 질문드리고 싶습니다
강사님 안녕하세요 아래는 3행에서 a가 전역 스코프 7행의 a변수를 호출하는 것이어서 10이 출력되지만 아래의 소스코드의 경우는 4행의 let이 지역변수 a의 호이스팅을 방지해주기에 3행에서는 지역변수인 a를 출력하지 못한다는 것으로 이해했습니다 그러면 3행에서 console.log(a)를 할 때 이 a가 지역변수 a가 아닌, 전역변수 a 라고 표시를 해주면 출력이 될 것 같았습니다 혹시 그런 표시가 있는지 질문드리고 싶습니다 브라우저가 아닌 node.js에서는 7행의 전역스코프에서 a를 let a로 선언해줘서global.a는 아닌 것 같았습니다 C++ 공부할 때는 전역변수와 지역변수 이름이 같을 때 변수 앞에 ::변수 이렇게 표시하면 전역변수로 구분해준 것으로 기억나는데 자바스크립트에서는 변수 앞에 ::a 이렇게 적어주면 에러가 나서 궁금해서 질문드리고 싶습니다 읽어주셔서 감사합니다
-
미해결Slack 클론 코딩[실시간 채팅 with React]
index.html 경로 변경 시 webpack 설정
안녕하세요 강사님 기존의 index.html 파일은 가장 최상단에 위치해있는데 위처럼 public 폴더를 따로 만들어서 불러오려고 합니다. new HtmlWebPackPlugin({ template: './public/index.html', filename: 'index.html', }), 위처럼 html webpack plugin 을 써서 경로 설정을 해봤는데 index.html 파일을 찾지 못하는지 404 에러가 발생합니다. 혹시 설정 방법 아시면 알려주실 수 있나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
OrderService의 setAddress부분 에러 / OrderServiceTest부분의 setAddress(new Address부분에러)
Address Class 는 아래와 같습니다. package jpabook.jpashop.domain;import lombok.Getter;import javax.persistence.Embeddable;@Embeddable@Getterpublic class Address { private String city; private String street; private String zipcode; protected Address() { } public Address(String city, String street, String zipcode) { this.city = city; this.street = street; this.zipcode = zipcode; }} 하지만 OrderService Class에 // 배송정보 생성 부분에서 에러가 났고 package jpabook.jpashop.service;import jpabook.jpashop.domain.Delivery;import jpabook.jpashop.domain.Member;import jpabook.jpashop.domain.Order;import jpabook.jpashop.domain.OrderItem;import jpabook.jpashop.domain.item.Item;import jpabook.jpashop.repository.ItemRepository;import jpabook.jpashop.repository.MemberRepository;import jpabook.jpashop.repository.OrderRepository;import lombok.RequiredArgsConstructor;import org.springframework.stereotype.Service;import org.springframework.transaction.annotation.Transactional;@Service@Transactional(readOnly = true)@RequiredArgsConstructorpublic class OrderService { private final OrderRepository orderRepository; private final MemberRepository memberRepository; private final ItemRepository itemRepository; /** * 주문 */ @Transactional public Long order(Long memberId, Long itemId, int count) { // 엔티티 조회 Member member = memberRepository.findOne(memberId); Item item = itemRepository.findOne(itemId); // 배송정보 생성 Delivery delivery = new Delivery();// 아래 부분 에러남 delivery.setAddress(member.getAddress()); // 에러 부분 // 주문상품 생성 OrderItem orderItem = OrderItem.createOrderItem(item, item.getPrice(), count); // 주문 생성 Order order = Order.createOrder(member, delivery, orderItem); // 주문 저장 orderRepository.save(order); return order.getId(); } /** *주문 취소 */ @Transactional public void cancelOrder(Long orderId) { // 주문 엔티티 조회 Order order = orderRepository.findOne(orderId); // 주문 취소 order.cancel(); }} OrderService의 problem창으로 가면 아래와 같이 뜹니다. OrderServiceTest에서도 new Address부분이 에러가 뜹니다... package jpabook.jpashop.service;import jpabook.jpashop.domain.Member;import jpabook.jpashop.domain.Order;import jpabook.jpashop.domain.OrderStatus;import jpabook.jpashop.domain.item.Book;import jpabook.jpashop.domain.item.Item;import jpabook.jpashop.exception.NotEnoughStockException;import jpabook.jpashop.repository.OrderRepository;import org.apache.tomcat.jni.Address;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.context.junit4.SpringRunner;import org.springframework.transaction.annotation.Transactional;import javax.persistence.EntityManager;import static org.junit.Assert.*;@RunWith(SpringRunner.class)@SpringBootTest@Transactionalpublic class OrderServiceTest { @Autowired EntityManager em; @Autowired OrderService orderService; @Autowired OrderRepository orderRepository; @Test public void 상품주문() throws Exception { // given Member member = createMember(); Book book = createBook("시골 JPA", 10000, 10); int orderCount = 2; // when Long orderId = orderService.order(member.getId(), book.getId(), orderCount); // then Order getOrder = orderRepository.findOne(orderId); assertEquals("상품 주문시 상태는 ORDER", OrderStatus.ORDER, getOrder.getStatus()); assertEquals("주문한 상품 종류 수가 정확해야 한다.", 1, getOrder.getOrderItems().size()); assertEquals("주문 가격은 가격 * 수량이다.", 10000 * orderCount, getOrder.getTotalPrice()); assertEquals("주문 수량만큼 재고가 줄어야 한다.", 8, book.getStockQuantity()); } @Test(expected = NotEnoughStockException.class) public void 상품주문_재고수량초과() throws Exception { // given Member member = createMember(); Item item = createBook("시골 JPA", 10000, 10); int orderCount = 11; // when orderService.order(member.getId(), item.getId(), orderCount); // then fail("재고 수량 부족 예외가 발생해야 한다."); } @Test public void 주문취소() throws Exception { // given Member member = createMember(); Book item = createBook("시골 JPA", 10000, 10); int orderCount = 2; Long orderId = orderService.order(member.getId(), item.getId(), orderCount); // when orderService.cancelOrder(orderId); // then Order getOrder = orderRepository.findOne(orderId); assertEquals("주문 취소시 상태는 CANCEL 이다.", OrderStatus.CANCEL, getOrder.getStatus()); assertEquals("주문이 취소된 상품은 그만큼 재고가 증가해야 한다.", 10, item.getStockQuantity()); } private Book createBook(String name, int price, int stockQuantity) { Book book = new Book(); book.setName(name); book.setPrice(price); book.setStockQuantity(stockQuantity); em.persist(book); return book; } private Member createMember() { Member member = new Member(); member.setName("회원1");// 아래 new Address 부분 에러 member.setAddress(new Address("서울", "강가", "123-123")); // 에러로그 em.persist(member); return member; }} OrderServiceTest의 problem창으로 가면 아래와 같이 뜹니다. run 할시 에러로그는 아래와 같이 뜹니다., java: incompatible types: org.apache.tomcat.jni.Address cannot be converted to jpabook.jpashop.domain.Address 어떤 문제인지 알려주시면 감사하겠습니다.
-
미해결Kotlin으로 개발하는 Spring Boot Web MVC
DTO 어떻게 하시는지 궁금합니다.
안녕하세요! 코틀린 공부중에 있습니다. RequestDto에 대해서 궁금한게 있어서요! 에러가 나고 있고 물론 convert func 도 걍 대충만들었습니다. 음.. 궁금한게있는데 이렇게 구현을 하면 java로 생각해보면 하나의 Dto 클래스 안에 innerclass로 crud 를 관리하는 것인데요.스티브 선생님은 requestDto를 어떻게 하시는지 궁금합니다! 또한 네이밍도 궁금합니다. 예를 들면 저같은 경우에는 body 인경우에는 PostRequest. param 인경우에는 PostParam 을 쓰며 Reponse 에는 반환해야하는 경우에는 PostResponse. 중간 계층에서 왔다갔다 하는 Dto 같은 경우에는 PostDto 이렇게 네이밍을 하고잇는데 스티브 선생님은 어떻게 하시나요. 감사합니다
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
코드 질문이요
10:00분에서 useEffect(() => { if (!(me && me.id) { Router.push('/'); } }, [me &&.id]); if (!me) { return null; }; 이 코드를 if (!me) { Router.push('/'); return null; }; 이렇게 코드 바꿔도 오류는 없던데 밑에 껄로해도 별 차이 없는건가요?
-
미해결PWA 시작하기 - 웹 기술로 앱을 만들자
안녕하세요 깃헙 권한 요청드립니다.
인프런 아이디 : chess@jinhakapply.com 인프런 이메일 : chess@jinhakapply.com 깃헙 아이디 : chessive@gmail.com 깃헙 Username : chessive 감사합니다.
-
미해결스프링 시큐리티
질문
1. 왜 respone.sendredirect 로 진행하지 않고 객체로 진행하나요? 2. 인증에 성공하고 페이지를 이동할 때마다 인증을 유지 검사하는 필터는 무슨필터인가요? 매번 인증 로그인을 하고 voter 의 인가를 처리할 때 말고 인증 후에 이동하면서 이 유저가 여기 접속해도 되고 세션이 유효하다는 것을 검증하며 유지하는 필터요!
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
테스트 케이스 오류가 있는지 궁금합니다
function solution(n, arr) { let count = 0, sum = 0, lt = 0, rt = 0; while (rt < arr.length) { if (sum < n) { sum += arr[rt++]; } else if (sum > n) { sum -= arr[lt++]; } else if (sum === n) { count++; sum -= arr[lt++]; } } return count; } solution(6, [1, 2, 1, 3, 1, 1, 1, 2]) //3 강의에서는 for문을 썼는데 for문 없이 while 문으로만 문제를 풀어보았습니다. 문제 정답은 나오는데 혹시 다른 테스트 케이스 통과 안되는게 있는지 궁금합니다.
-
미해결[리뉴얼] 처음하는 파이썬 데이터 분석 (쉽게! 전처리, pandas, 시각화 전과정 익히기) [데이터분석/과학 Part1]
두 데이터 프레임 합치 관련한 질문
안녕하세요. 비디오 강의에서 9분 50초 정도에서 두개의 데이터 프레임을 left join을 통해서 합치는 과정이 있습니다. doc 총 행은 - 37 entries country_info 행은 - 3560 entries 정도입니다. doc를 중심으로 left join을 할경우 최대 37개가 나오는게 맞을텐데요. 동영상 강좌 9분 57초에 보면 총 3333 entries 가 있습니다. 합친 행이 총 37개가 나와야 할텐데 이렇게 많은 행들이 나오는 것이 맞나요? 맞다면 왜 이런 방법으로 합치는지 궁금합니다.
-
미해결
Best Web Designers in Mumbai || Web Designing Company in Mumbai
Your business is unique, and we believe your website should be too! We produce websites that work! We've all the chops to make your point look good and deliver from design-led static websites to full CMS. Our design platoon works hard to make killer stoner interfaces and operation interfaces for your website. We also offer SEO ( Search Machine Optimization), so we can advise you on strategies to make sure your point attracts and maintains the abundance of interested web businesses. Rebecca digital provides further than website design and development. Your business, web presence, and brand identity will be taken to the coming position. rebecca digital will produce a custom website design that will maintain the professional image that you've worked hard to make. Web craft is a leading provider of web point design and development results in the Mumbai mega city. We work with our guests to produce customized-commerce results to meet business conditions. rebecca digital has the knowledge, coffers, and experience to produce a successful-commerce result for your business. Our expert website contrivers, have helped businesses worldwide launch a successful e commerce websites. Having your website appear as the first hunt machine result is pivotal for people chancing your business. We bring further callers to your point by perfecting your ranking in hunt machines and erecting your online presence. Also, we convert further of those callers into guests by perfecting your spot's usability. Rebecca digital is a website design and development company grounded in Mumbai, India. Our platoon of expert web contrivers drafts beautiful and functional websites for guests worldwide. We love the creative aspect of designing a great website. At the end of the day; still, our primary charge is to produce websites with a high ROI that meet the strategic objectives of our guests. To negotiate this, we assign a devoted account director responsible for privately understanding the client's requirements and objects. The account director works nearly with the client and is their primary point of contact throughout the entire process. Read more:- Web Designing Company in Mumbai || Best Web Designers in Mumbai Follow Us On Facebook :- https://www.facebook.com/rebeccadigital/ Follow Us On YouTube:- https://www.youtube.com/c/RebeccaDigital Follow Us On Twitter:- https://twitter.com/rebeccadigital1 Follow Us On Linkedin:- https://www.linkedin.com/in/rebecca-digital-3933701a5/ Call Us:- +91 9867123558 / 9372312546 Email Id:- janmejay.sahu@gmail.com Address:- B-9, Sec-4, Airoli, Navi Mumbai-400708
-
해결됨타입스크립트 입문 - 기초부터 실전까지
타입 단언 관련 질문이 있습니다!
안녕하세여 강의잘보고있습니다! 타입 단언에 대해 궁금한점이있습니다. as 로 타입 단언을 해주면 null 같은 예외처리를 안해줘도 되는 건가여? as 로 단언 해도 null이 들어올 수 있는거아닌가요??(빨간 경고줄이 사라져서 여쭈어봅니다..) 아니면 단언을 한다는 것이 무조건 이것만 들어온다? 이런 느낌으로 받아 들이면될까요??..
-
미해결스프링 시큐리티
롤 하이라키 관련 질문이 있습니다.
안녕하세요 강사님 롤 하이라키를 적용 하고 있습니다. API에서는 롤 계층권한이 잘 적용 된 것 으로 확인이 되었는데요. 타임리프에서는 sec:authorize="hasRole('ROLE_USER')" 이렇게 하고 USER보다 상위 권한에게도 동일하게 메뉴가 보이지 않고 있습니다. 타임리프에서는 hasanyrole등으로 권한들을 다 열거 해주어야 하는지 궁금합니다. 감사합니다.
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
express-basic-auth
안녕하세요 강사님 강의 너무 잘보고 있습니다! 지금 강의에서 사용한 express-basic-auth 라이브러리를 영상과 똑같이 사용했는데 저는 아무런 반응이없고 실행이 안되는거 같아요 혹시 몰라서 강사님 github에 강의 리포지토리에서 해당 코드를 복붙해도 똑같이 반응이없네요 혹시 이유를 알 수 있을까요? 일단 제가 작성한 코드 리포지토리 올리겠습니다! https://github.com/changyuyeo/nestjs_tutorial