묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
CredentialsError: Missing credentials in config 질문 있습니다
sudo su 관리자 모드에서 vim .env 통해 S3_ACCESS_KEY_ID와 S3_SECRET_ACCESS_KEY를 추가하고 wq를 통해 저장까지 했습니다. 그런데 CredentialsError: Missing credentials in config 에러가 생깁니다. 그래서 제가 확인해본 것이 pakage.json과 .env를 다시 봤는데 문제가 없습니다.. 뭐가 문제인지 조언 부탁드립니다.. 질문이 많아서 죄송합니다..(계속해서 헤매는데 못 찾겠습니다..)
-
해결됨HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
선생님 탭 메뉴 콘텐츠 질문 있습니다...!
data-alt 속성 넣어서 제작했는데, 처음에 제작했을때는 잘 되다가 다시 확인해보니 연동이 되질 않습니다.. 코드 실수가 있는지 확인 부탁드리겠습니다..ㅠㅠ * 이 뿐만 아니라 WOW, tab menu, parallaxScroll 등 다른 제이쿼리도 연동이 됐다 안됐다 하네요.. 다른 포폴 파일도 라이브러리가 됐다 안됐다 하는데, 혹시 이런 경우 보셨을까요..?ㅠㅠ <!-- Sub menu list --> .sub-menu > ul > li 를 클릭했을때 아래 각 section과 연동되어야함 <section class="sofa-collection tabs active" id="tab1"> <section class="bath-collection tabs" id="tab2"> <section class="bed-collection tabs" id="tab3"> <!-- Sub menu list --> <div class="sub-menu"> <ul class="sub-menu-item"> <li data-alt="tab1" class="active"><a href="#">sofa</a></li> <li data-alt="tab2"><a href="#">bathroom</a></li> <li data-alt="tab3"><a href="#">bedroom</a></li> </ul> </div> <!-- Section : inspiration-sofa-collection --> <section class="sofa-collection tabs active" id="tab1"> <div class="sofa-inner"> <!-- Heading --> <div class="sofa-heading utd wow"> <h2>THE HAY SOFA COLLECTION</h2> <hr class="bar"> </div> <!-- Quilton --> <div class="sofa-content"> <div class="sofa-left ltr wow"> <div class="sofa-big" onclick="location.href='#none'"> <img src="img/inspiration-sofa-01.png"> <div class="sofa-headline"> <h3>QUILTON 3 SEATER</h3> <p> Its numerous upholstery choices include mono, duo, or with a black contrasting platform, with the finely-detailed quilted upholstery encapsulating the softness and volume of the foam and wadding seats and creating exceptional comfort. Quilton takes sofa design to a new level of versatility that makes it suitable for a wide range of domestic and public spaces. <small class="inview"><ins>Quilton Duo Comb 19 Left</ins> / <ins>Slit High Table</ins></small> </p> <div class="coll-btn"> <a href="#none" class="find-dealer">FIND DEALER</a> </div> </div> </div> </div> <div class="sofa-right rtl wow"> <div class="sofa-items-up"> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-11.png"> <span class="badge best">Best</span> </div> <p><ins>Quilton Duo Comb 19 Left</ins> / <ins>Slit High Table</ins></p> </div> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-12.png"> </div> <p><ins>Quilton Ottoman</ins></p> </div> </div> <div class="sofa-items-down"> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-04.png"> <span class="badge new">New</span> </div> <p><ins>Quilton Combination 21 Right</ins> / <ins>Kofi</ins></p> </div> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-02.png"> </div> <p><ins>Quilton Contrast base Comb 23 Left</ins> / <ins>Kofi</ins></p> </div> </div> </div> </div> <div class="coll-btn utd wow"> <a href="#none" class="view-more">View more</a> </div> <div class="sofa-video"> <video class="video" width="800" controls> <source src="videos/hay-Mags-Soft-Low-3-Seater-Sofa.mp4" type=""> </video> </div> <div class="section-text utd wow"> <h4>QUILTON</h4> <p> Described by the designers as a ‘quilted landscape sofa system’, Quilton serves as a central platform for living, working, socializing and relaxing. Offering a wide assortment of different modules, Doshi Levien’s multi-functional sofa provides the flexibility of a modular system with generous dimensions and sculpted forms. Its numerous upholstery choices include mono, duo, or with a black contrasting platform, with the finely-detailed quilted upholstery encapsulating the softness and volume of the foam and wadding seats and creating exceptional comfort. Quilton takes sofa design to a new level of versatility that makes it suitable for a wide range of domestic and public spaces. </p> </div> <!-- MAGS --> <div class="sofa-content flex-order"> <div class="sofa-right ltr wow"> <div class="sofa-items-up"> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-05.png"> <span class="badge new">new</span> </div> <p><ins>MAGS 3 SEATER COMBINATION 1</ins> / <ins>DLM</ins></p> </div> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-06.png"> <span class="badge new">new</span> </div> <p style="font-size: 14px"><ins>MAGS 2,5 SEATER COMBINATION 3</ins></p> </div> </div> <div class="sofa-items-down"> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-07.png"> </div> <p><ins>Mags 3 Seater comb 1</ins> / <ins>Pouf</ins></p> </div> <div class="sofa-thum" onclick="location.href='#none'"> <div class="sofa-photo"> <img src="img/inspiration-sofa-08.png"> <span class="badge best">best</span> </div> <p><ins>Mags Sofa 3 seater comb 4</ins> / <ins>AAL 83</ins></p> </div> </div> </div> <div class="sofa-left rtl wow"> <div class="sofa-big" onclick="location.href='#none'"> <img src="img/inspiration-sofa-14.png"> <div class="sofa-headline"> <h3>MAGS 3 SEATER COMBINATION 1</h3> <p> Designed with maximum comfort and minimum details, the Mags sofa combines strong aesthetics with timelessness to create a HAY classic. Keeping superior comfort and quality in mind, Mags is built using a solid construction with durable, high-density foam and interior padding for optimal longevity. The low frame has a distinctly lounge feel, which is reinforced by the deep seats and results in an open, welcoming space. <small class="inview"> <ins>MAGS SOFA</ins> / <ins>RAW RUG NO. 2</ins> / <ins>TULOU COFFEE TABLE</ins> / <ins>MOHAIR BLANKET</ins> / <ins>FIFTY-FIFTY FLOOR LAMP</ins> </small> </p> <div class="coll-btn"> <a href="#none" class="find-dealer">FIND DEALER</a> </div> </div> </div> </div> </div> <div class="coll-btn utd wow"> <a href="#none" class="view-more">View more</a> </div> <div class="section-text second utd wow"> <h4>MAGS</h4> <p> Designed with maximum comfort and minimum details, the Mags sofa ensures what lies beyond its strong aesthetic presence has an equally lasting impact. The wide range of functional modular units mean the sofa can be fully customised with chaise longue, corner modules or additional seats to suit any room or purpose, while the high quality upholstery options enables the sofa to find its own personality. </p> </div> </div> </section> <!-- Section : inspiration-bath-collection --> <section class="bath-collection tabs" id="tab2"> <div class="sofa-inner bath-inner"> <!-- Heading --> <div class="sofa-heading bath-heading utd wow"> <h2>BATHROOM INSPIRATION</h2> <hr class="bar"> </div> <!-- Bath-container--> <div class="sofa-video bath-video"> <video class="video" width="800" controls> <source src="videos/hay-Waffle-Bathrobe-Waffle-Slippers.mp4" type=""> </video> </div> <div class="section-text utd wow"> <p> These days, investing a little love and care in the domestic spaces we often neglect -- bathroom, we're looking at you! -- can make a world of difference. That's why we've created a range of fresh new products that are sure to brighten up that underappreciated space, from pretty and practical storage solutions like Basket, now available in new Spring colours, to the brilliant Chim Chim Scent Diffuser, which can make even the most modest of washrooms feel more like a spa. </p> </div> <div class="bath-content"> <div class="bath-items"> <div class="bath-top"> <div class="bath-thum utd wow" onclick="location.href='#none'"> <div class="bath-photo"> <img src="img/inspiration-bath-01.jpg"> <span class="badge best">Best</span> </div> <p><ins>Basket</ins></p> </div> <div class="bath-thum utd wow" data-wow-delay="0.25s" onclick="location.href='#none'"> <div class="bath-photo"> <img src="img/inspiration-bath-02.jpg"> </div> <p><ins>Waffle Bathrobe Sky Blue</ins></p> </div> </div> <div class="bath-down utd wow"> <div class="bath-thum" onclick="location.href='#none'"> <div class="bath-photo"> <img src="img/inspiration-bath-03.jpg"> <span class="badge new">New</span> </div> <p><ins>Chim Chim Scent Diffuser</ins></p> </div> <div class="bath-thum utd wow" data-wow-delay="0.25s" onclick="location.href='#none'"> <div class="bath-photo"> <img src="img/inspiration-bath-08.jpg"> </div> <p><ins>Colour Crate / Frotté Towel</ins></p> </div> <div class="bath-thum utd wow" data-wow-delay="0.5s" onclick="location.href='#none'"> <div class="bath-photo"> <img src="img/inspiration-bath-07.jpg"> </div> <p><ins>Waffle Slippers / Giant Waffle Bath Towel</ins></p> </div> </div> </div> </div> <div class="coll-btn utd wow"> <a href="#none" class="view-more">View more</a> </div> </div> </section> <!-- Section : inspiration-bed-collection --> <section class="bed-collection tabs" id="tab3"> <div class="sofa-inner bath-inner bed-inner"> <!-- Heading --> <div class="sofa-heading bath-heading bed-inner utd wow"> <h2>BEDROOM INSPIRATION</h2> <hr class="bar"> </div> <!-- bed-container--> <div class="bath-content bed-content"> <div class="bath-items bed-items"> <div class="bath-top bed-top utd"> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.25s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-05.jpg"> <span class="badge best">Best</span> </div> <p><ins>Bias Quilt / Slit Table / Turn On Lamp</ins></p> </div> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.5s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-04.jpg"> <span class="badge new">New</span> </div> <p><ins>Pao Steel Pendant / Ellipse Tray / Tray Table</ins></p> </div> </div> <div class="section-text utd wow"> <p> A peaceful, productive day starts in the bedroom, so it’s the perfect place to invest some attention and care.</p> <p> Whether you’re looking for an elegant bedspread like Kite, Bias, or Megadot, a cozy bathrope to warm up on cold mornings, or any kind of accessory – from storage to table lamps – HAY has a little bit of everything you might need to make your bedroom the sanctuary it should be. </p> </div> <div class="bath-down bed-down"> <div class="bath-thum bed-thum utd wow" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-07.jpg"> </div> <p><ins>Matin Table Lamp / Duo Bed Linen / Tray Table </ins></p> </div> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.25s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-09.jpg"> </div> <p><ins>Knit</ins></p> </div> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.5s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-10.jpg"> </div> <p><ins>Soft Coat Hanger</ins></p> </div> </div> <div class="bath-down bed-down"> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.25s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-08.jpg"> </div> <p><ins>Chim Chim Scent Diffuser / Tray Table</ins></p> </div> <div class="bath-thum bed-thum utd wow" data-wow-delay="0.5s" onclick="location.href='#none'"> <div class="bed-photo"> <img src="img/inspiration-bed-06.jpg"> </div> <p><ins>Outline Cushion / Crinkle Bedspread</ins></p> </div> </div> </div> </div> <div class="coll-btn utd wow"> <a href="#none" class="view-more">View more</a> </div> </div> </section> // inspiration tab menu $('.sub-menu-item li').click(function(){ $(this).addClass('active') $(this).siblings().removeClass('active') var tab = $(this).attr('data-alt') $('.tabs').removeClass('active') $('#' + tab).addClass('active') });
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 기본편
야후에서 정보 크롤링
안녕하세요. 선생님의 강의를 보고 아래 야후에서 크롤링(숫자: 8,021,000)을 해볼려고 했는데 전혀 읽혀지지가 않네요. 어떻게 접근을 해야 되는건가요?ㅠㅠ 코드를 이렇게 작성은 해봤는데 전혀 아무것도 안나오네요ㅠㅠ response = requests.get('https://finance.yahoo.com/quote/QCOM/balance-sheet?p=QCOM') html = response.text soup = BeautifulSoup(html, 'html.parser') word = soup.select('.fin-col').text print(word)
-
해결됨스프링 핵심 원리 - 고급편
@Aspect 어드바이저 빌더
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용] 안녕하세요 영한님! 몇 가지 궁금한 점이 있어 말씀드립니다! 1. 자동 프록시 생성기가 빈 저장소에 있는 어드바이저 빈들을 조회하기 전에 모든 @Aspect 빈을 조회해서 어드바이저를 생성하여 등록하는 것은 이해가 됐습니다. 근데 그렇게 생성된 어드바이저를 왜 빈 저장소에 넣지 않고 굳이 @Aspect 어드바이저 빌더 내부 저장소에서 따로 관리를 하는 것인지 궁금합니다. 2. @Aspect 어드바이저 빌더 내부 저장소에 캐싱이 적용된다고 하셨는데 그렇다는 것은 하나의 @Aspect 빈에서 똑같은 어드바이저를 여러번 생성하는 경우가 발생한다고 이해가 됩니다. 예를 들어 어떤 경우에 캐시에 저장된 어드바이저를 반환하게 되는지 궁금합니다. 혹시나 @Aspect 어드바이저 빌더 내부 저장소의 어드바이저들은 영속성을 가지는 것인지 의문이 드네요. /* 아래 질문은 이후 강의인 "스프링 AOP - 어드바이스 순서" 에서 답변이 되었습니다. 3. 자동 프록시 생성기로 여러 어드바이저를 적용하는 경우에 각 어드바이저들 간의 작동 순서를 임의로 조정할 수 있는 방법은 없는지 궁금합니다. */
-
미해결
세금계산서 발행
회사에서 비용처리를 하는 것때문에 세금계산서 발행이 가능한지 답변부탁드립니다 혹시 방행이 불가하다면 결제방법 종류 안내부탁드립니다.
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
브라우저 캐시가 발생하는 이유는 뭔가요??
캐시가 임시로 데이터를 저장하는 장소이고 웹 브라우저의 경우 클라이언트가 요청한 페이지가 HDD의 캐시디렉토리에 저장되는 걸로 알고있습니다. ========================================== 질문1. 브라우저가 캐시에서 데이터를 가져오는 이유 질문2. 브라우저 캐시를 막는 방법은 어떤 것들이 있나요?
-
미해결공공데이터로 파이썬 데이터 분석 시작하기
None of ['구'] are in the columns
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 왜이렇게 뜨는걸까요ㅠㅠ
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
router 질문
기본 구조가 <Router><div><Routes><Route> 인가요? 참조 가이드 기준 수정 외엔 별다른 설명이 없어서요 그리고 버전 차이가 있어서 오류가 많이 나서 검색을 해보니react-router-dom이 버전 6로 업그레이드되면서, Switch를 더이상 지원을 안하게 되었고 Switch -> routes / component -> element 라고 합니다. [공식문서 참조](https://reactrouter.com/docs/en/v6/upgrading/v5)
-
미해결실전! 웹사이트제작! Step by Step! ('돕다' 사이트제작_Basic Course)
'VIEW' 라는 텍스트를 박스 가운데로 오게 만들 때
안녕하세요 강의내용 중 14:57~ 즈음에 VIEW를 박스 중앙(가로로도 가운데, 세로로도 가운데)에 배치하기 위해 padding-top: 200px을 주어야한다고 하셨는데, 그 이유에 대해 궁금합니다! 와이드 모니터의 경우에는 padding-top을 주면 중앙정렬이 잘 되는 것처럼 보이는데 더 작은 모니터(노트북 등)에서 보았을 때는 중앙정렬이 안 되어서요. 이럴 경우에는 display:flex를 주고, align-items:center와 justify-contents:center를 주는 편이 낫지 않을까하고 생각했었는데 혹시 강사님께서 특별히 padding-top으로 짜신 이유가 있을까하여 질문드립니다!!
-
미해결Vue.js 시작하기 - Age of Vue.js
개발자모드 Vue 에서 표기가 다르게 나오는 이유가 뭘까요 ..?
'components에 'app-header' : AppHeader 동일하게 작성하였는데 개발자모드에서 왜 app-header로 표기가 되지않는지 궁금합니다 ..
-
해결됨HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌2)
선생님 brackets 오류 질문드립니다 ㅠㅠ
■ 질문 남기실 때 꼭! 참고해주세요.- 먼저 유사한 질문이 있었는지 검색해주세요.- 궁금한 부분이 있으시면 해당 강의의 타임라인 부분을 표시해주시면 좋습니다.- HTML, CSS, JQUERY 코드 소스를 텍스트 형태로 첨부해주시고 스크린샷도 첨부해주세요.- 다운로드가 필요한 파일은 해당 강의의 마지막 섹션에 모두 있습니다. 얼마전부터 블라켓츠 실행할때마다 이런 오류창이 뜨는데 혹시 해결방법 아실까요 쌤 ㅠㅠㅠ 테마도 다크모드로 안바뀝니다..ㅠㅠ
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
프록시의 getter에 대해서
안녕하세요 강사님!!! 수업에 나온 내용은 아니었으나 강사님의 책 [자바 ORM 표준 JPA 프로그래밍]을 읽으며, 강사님의 강의를 복습 도중 조금 의아한 부분이 생겨서 질문 남깁니다. 강사님의 책 '294P'의 프록시와 식별자 파트를 보면 다음과 같이 강사님이 적어주셨습니다. "엔티티 접근 방식을 필드(@Access(AccessType.FIELD))로 설정하면 JPA는 getId()메소드가 id만 조회하는 메소드인지 다른 필드까지 활용해서 어떤 일을 하는 메소드인지 알지 못하므로 프록시 객체를 초기화한다." 저는 해당 설명을 보고, 직접 테스트하기 위해 코드를 작성했습니다. 그런데 필드 접근법으로 해도 프록시 객체가 초기화되지 않았습니다! 그래서 강사님이 책을 쓰셨던 버전보다 업그레이드가 됐나보다 하고 조금 더 실험을 해보았습니다. 제가 해본 실험은 이렇습니다. getId()메소드를 age필드를 반환하도록 만들었습니다. @Id @GeneratedValue private Long id; private Long age; public void getId(){return age;} 이렇게요. 그 후 Member의 age는 12로 설정한 후, 저장시킨 다음에 다음을 실행했습니다. em.getReference(Member.class, 1L);을 통해 가져온 프록시 객체를 가지고 다음을 순서대로 진행했습니다. getId(); getAge(); getId(); 그랬더니 결과가 조금 놀라웠습니다 1 ( select 쿼리발생) 12 12 다음과 같이 결과가 발생하였는데, JPA에서 내부적으로 프록시 객체를 생성할 때, getter에 대해서 getId면 id만 반환하도록 재정의시켜서 생성하는 것인가요? https://ttl-blog.tistory.com/136 이곳에 위의 실험에 대해 적어놨습니다! 글로만 이해가 안되신다면 한번 봐주시길 부탁드립니다..! 항상 강의 잘 보고 있습니다 감사합니다
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
권한은 언제 받아주시나요..?
하루안에 받아주신다고는 하시는데 어떤날은 4일정도 걸리시는 날도 있고 한데, 알람으로 받고 바로바로 권한주시는건 안되는건가요.. 바로바로 소스받아서 공부하고 싶은데 그게 잘 안되네요ㅠㅠㅠ
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
컬럼조회 질문
강의 진행후 토이프로젝트 진행중에 질문이 있어 여쭤봅니다.제가 하고싶은 조회는- 로그인한 멤버가 (memberId 조인)- 소속한 팀의 (teamId 조인)- 모든 대화방(Room)과 각 대화방에 참여한 모든 멤버(Room_member)를 조회 하고싶습니다. public List<Room> findRoomsByTeamId(Long memberId, Long teamId) { return em.createQuery("select distinct r from Room r" + " join fetch r.team t" + " join fetch r.roomMembers rm" + " join fetch rm.member m" + " where t.id = :teamId" + " and m.id = :memberId" ,Room.class ) .setParameter("teamId", teamId) .setParameter("memberId", memberId) .getResultList();} 조인을 이렇게 실행했는데, 문제점이 memberId가 걸려있기 때문에, 대화방에 소속된 다른 멤버가 조회가 되지않습니다. (본인만 조회됨)memberId를 조인하지 않으면, 대화방에 소속된 멤버가 모두 나오지만 본인이 속하지 않은 대화방도 모두 조회 됩니다... 제가 생각하는 해결방안으로는 서브쿼리를 사용하는것인데,, JPA로도 가능한가요?아니면 다른 해결 방법이 있을까요? ㅁㄴㅁㄴㅇㅁㄴ
-
미해결차량 번호판 인식 프로젝트와 TensorFlow로 배우는 딥러닝 영상인식 올인원
강의자료 요청드립니다
안녕하세요. 강의 너무 잘 듣고 있습니다. 좋은 강의를 찍어주셔서 감사합니다. 수강평 남겼는데 강의 자료 보내주실 수 있을까요. 아이디,이메일은 hyunwoo.tmax@gmail.com 입니다. 슬랙 단체방도 초대해주시면 너무 좋을 것 같습니다. 감사합니다!!!
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
게시글 업로드 문제(401) But.. 로그인 되었음(cookie 보유 확인)
알려주신대로 npm start 통해 로그인 문제는 해결이 되었습니다. 로그인은 되어 있습니다 그런데 게시글 업로드 시 401 에러(로그인이 필요하다)가 생깁니다. <확인결과> network - post - Cookie 탭에 connenct.sid(Cookie) 보유 확인 Aplication/Cookies에 connect.sid 확인 ---------------------------------------------- 무엇이 문제인지 파악이 되지 않습니다 . 혹시나 문제는 없었지만 getServerSideProps 문제인건가요? /front/pages/index.js export const getServerSideProps = wrapper.getServerSideProps((store) => async ({ req }) => { const cookie = req ? req.headers.cookie : ''; // req가 있다면 cookie에 요청에 담겨진 cookie를 할당한다. axios.defaults.headers.Cookie = ''; // 요청이 들어올 때마다 초기화 시켜주는 것이다. 여기는 클라이언트 서버에서 실행되므로 이전 요청이 남아있을 수 있기 때문이다 if (req && cookie) { axios.defaults.headers.Cookie = cookie; // 서버일때랑 cookie를 써서 요청을 보낼 때만 headers에 cookie를 넣어준다 } store.dispatch({ type: LOAD_MY_INFO_REQUEST, // user }); store.dispatch({ type: LOAD_POSTS_REQUEST, // post }); store.dispatch(END); await store.sagaTask.toPromise(); // store/configureStore.js > store.sagaTask }); // 이 부분이 Home 보다 먼저 실행됨
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
깃헙 권한 요청드립니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 인프런 아이디 : zaar625인프런 이메일 : zaar625@naver.com깃헙 아이디 : zaar625깃헙 Username : zaar625 감사합니다.~재미있게 공부하며 듣고있어요.
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL 문제풀이
1. Leetcode 595 문제
안녕하세요, 문제 풀이 첫번째 문제에서 해설과 똑같이 풀었는데 Accepted 나오고 제출 누르면 Wrong answer라고 나옵니다. 혹시 제 쿼리문에 잘못된 부분이 있을까요?
-
미해결비개발자를 위한 RPA 강의 (UiPath 입문편)
데이터스크래핑
안녕하세요. 지금 스튜디오 구성이 달라져서 데이터스크래핑이 디자인 탭에 없고 '테이블추출'이라는 것만 보입니다. 테이블추출로 강수정보 스크래핑을 어떻게 하면 될까요? -데이터추가를 누르고 네이버 날씨 강수탭의 '01시'를 선택하면 오늘부터 모레까지 전부 스크래핑이 되어버리는데 딱 내일 것만으로 제한하려면 어떻게 해야 하나요? (현재 네이버 날씨페이지도 동영상과 달라져서 강수정보가 이전,다음페이지까지 있습니다) -상호연결된 데이터 추출'이 안 보이는데 강수확률을 연결하려면 어떻게 해야하나요?
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
@Controller 통합 과정에서 궁금한 것이 있습니다.
안녕하세요! 항상 좋은 답변 주셔서 감사합니다. @Controller 통합 과정에서 궁금한 것이 있어서 굴을 적었습니다! 아래 질문이 맞는지 하나하나 봐주시면 너무 감사하겠습니다! 1. @Controller를 붙인 클래스가 있다면, @Controller안에는 @Component가 있어서, @Component Scan을 통해서 @Controller 클래스가 자동으로 스프링 빈 컨테이너에 스프링 빈으로 등록되는게 맞을까요? 2. Controller 통합을 위해서 컨트롤러 1개에 여러개의 메서드에 각각 @RequestMapping을 통해서 여러 핸들러를 등록하는 것으로 알려주셨습니다. 이것이 정확히 의미하는 바가 어떤 것일지 알려주실 수 있을까요? 제가 추정하는 바는 다음과 같습니다. @Controller가 붙는 것은 실제로 1개 이기 때문에 그 컨트롤러 내에 몇 개의 RequestMapping이 붙어있건 상관없이 스프링 빈은 1개만 등록된다. 그리고 각 ReqeustMapping은 스프링 빈의 특정 메서드와 연결된다. HandlerMapping 보관소에 있는 것은 @Controller가 붙은 빈이 아닌, Static Method를 참조하는 방식과 유사하게 작성된다. 이렇게 이해하는 것이 맞을까요? 항상 좋은 답변 주셔서 감사합니다.