묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
로지스틱 회귀 모델과 imblearn 라이브러리 관련하여 문의드립니다.
안녕하세요, 늦은 시간에 문의글 남겨 죄송합니다. 강의를 듣던 중, 로지스틱 회귀 모델에 대해 궁금한 점이 생겨 문의드립니다. 로지스틱 회귀의 경우, L2 규제가 기본 설정이라 하셨으며, 희소한 데이터 세트의 경우에도 뛰어난 성능을 보여줄 수 있다고 하셨습니다. 그렇다면 imblearn 라이브러리에서 RandomUnderSampler를 이용하여 희소한 데이터가 존재하지 않게 만든 이후, 로지스틱 회귀 함수를 사용하는 것은 틀린 방법인지 궁금합니다. (imblearn 라이브러리와 로지스틱 회귀 모델을 함께 사용하여도 가능한지 궁금합니다.) 아직 구글에서 imblearn 라이브러리와 로지스틱 회귀 모델을 함께 사용한 사례가 잘 보이지 않아 문의드리게 되었습니다. 감사합니다.
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
안녕하세요 제로초님 질문있습니다.
node express, sleact front 강의를 거쳐 여기까지 오게 되었네요 반갑습니다. redux mobx강의도 구매 해놓아서 또 찾아뵙겠네요ㅋㅋ 질문이 많을 예정입니다 잘 부탁드립니다.. 질문이 있습니다. 현재 sleact 스키마에 테이블이 있는데 다른 스키마에 테이블들을 다시 생성하고 초기 값들 설정해놓은 것들을 다른 스키마에다가 입력해주고 싶어서 각 entity에 @Entity("channelChats", { schema: "nestjs" })이런식으로 "sleact" -> "nestjs" 스키마로 바꿔줬고 app.module.ts에 @Module({ imports: [ ConfigModule.forRoot({ isGlobal: true }), UsersModule, WorkspacesModule, ChannelsModule, DmsModule, TypeOrmModule.forRoot({ type: 'mysql', host: 'localhost', port: 3306, username: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, database: process.env.DB_DATABASE, autoLoadEntities: true, entities: [], synchronize: true, }) ], controllers: [AppController], providers: [AppService, ConfigService, UsersService],}) synchronize: true를 해주고 .env에 DB_DATABASE=nestjs로 해주었는데 nestjs스키마에 테이블들이 생성이 안되는데 왜이런거죠?
-
미해결면접과 취업을 부르는 '퍼블리셔 개인 포트폴리오 홈페이지' 제작
포트폴리오 제작 질문있습니다.
안녕하세요~ 포트폴리오 제작 질문있는데요 지금 기존에 있던 싸이트를 제가 하드코딩으로 좀 바꿔서 만들고 있는데 그렇게 해도되는건가요? 예를들어 제가 코딩웍스님 웹 포트폴리오 강의 싸이트 레이아웃을 토대로 좀 바꿔서 사용해도 괜찮은지 궁금합니다. 아니면 처음부터 스스로 레이아웃 UI 디자인 등등 혼자 처음부터 다 창작을 해야되는건지요
-
미해결Illustrator CC 2021 기초 다지기
패널에 character, paragraph
패널중에 character, paragraph가 아예 안뜨는데 어디서 찾을 수 있나요?
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
Animation 질문이 있습니다.
코드는 똑같은거 같은데 유니티에서 작동이 이상하게 됩니다. unity에서 마우스를 클릭하고 Run->Wait를 할 때, 0으로 떨어지지가 않습니다. 한 0.91 이정도로 밖에 떨어지지가 않네요.. 이상태로, 계속 돌아가네요... 왜이런지 디버그 하면서 봤는데도 잘 모르겠습니다.
-
미해결웹 게임을 만들며 배우는 React
react dev Tools 오류
다음과 같이 떠서 코드를 볼수가 없습니다. 혹시 어떤 문제 인지 알수 있으실까요 ??
-
미해결마케터를 위한 구글 애널리틱스 실무
PDF 가이드북 요청드립니다!!
좋은 강의 열어주셔서 감사합니다 :) PDF 가이드북 요청드립니다!! dpwl3727@naver.com
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
Tensor 타입을 Numpy로 변환하는 이유가 궁금합니다.
모델 Inference 결과 중 value 값을 .numpy()를 통해 Numpy 형태로 변환해주는데, 그 이유가 Tensor 타입에는 shape나 dtype 정보가 함께 들어있어서 이를 제외한 순수 array값만을 가져오기 위해서인가요? 코드를 바꿔가며 비교해보면서 Numpy 형태로 바꾸면 값을 가져올 수 있다는 것은 알았지만, 왜 Tensor 타입은 안되는 것인지, Tensor와 Numpy의 차이는 무엇인지 등 본질적인 이유에 대해서 검색해봐도 명확하게 정리가 안되는 것 같아 질문드립니다ㅠㅠ
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
AddressEntity로 따로 테이블을 만들어 매핑했을 때 값 수정
값을 수정하고 싶으면 remove 한 후에 새로 값을 넣어야 된다는 것으로 이해 했는데 이 경우 remove가 제대로 작동하지 않네요. 아마 equals 쪽에서 문제가 생긴거 같은데 어떻게 해결해야 될까요? 지금은 old1을 삭제하고 싶은데 삭제가 안되고 추가만 되고 있습니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
./gradlew clean build 실패(window terminal)
[질문 내용]안녕하세요. JPA와 DB 동작 확인 테스트 까지 다 성공한 후 JAR 빌드를 실패합니다. 윈도우 cmd 에서는 통과합니다. 리눅스 환경인 window terminal에서는 안되는 것인가요? 이게 도대체 무슨 에러인지 모르겠습니다. VS-CODE에서 테스트 디버깅을 하면 H2 DB에도 잘 저장되는 것을 확인할 수 있습니다.
-
미해결실전! Querydsl
where 절 parenthesis 추가 문의
안녕하세요 where 절에서 ( A and B and C) or ( D and E and F) 조건을 처리해야하는 상황인데 다음과 같은 방법으로 하여도 쿼리가 위와 같이 나가지 않아서 문의드립니다. 1. Ops.wrapper 사용했지만 실제로는 풀려서 나감 2. 검색하여 나온 대부분의 해결책 where((A.and(B).and(C).or(D.and(E).and(F))) 하지만 실제 쿼리는 괄호가 다풀려서 나감 native 없이 querydsl에서는 불가능한 것인가요? 감사합니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
Raycast 오버로딩된 함수들 확인할때 사용하시는 단축키가
안녕하세요Raycast 오버로딩된 함수들 확인할때 사용하시는 단축키가 알고싶습니다.
-
해결됨배달앱 클론코딩 [with React Native]
질문있습니다!
질문1. 리액트 노드버드 툴킷과 이번 강의에서 리덕스 툴킷 사용법에 차이가 있더라구요. 노드버드에서는 예를 들어 login을 한다고 했을 시 dispatch로 보내주고 action폴더가 따로 있어서 action파일에서 백앤드 요청후 response를 받고 reducer폴더에서 pending. fulfilled, rejected에 따라 상태가 변하더라구요. 그런데 이번 프로젝트에서는 로그인시 먼저 axios로 api 백앤드 요청을 다이렉트로 한다음 백에서 받아온 response를 다시 dispatch하고 바로reducer폴더에서 상태관리를 시켜주더라구요. 여기서는 pending. fulfilled, rejected도 없더라구요? 이번 프로젝트에서는 리덕스 툴킷의 사용량이 적어서 이런방식을 적용하신건가요? 아니면 이번 방법이 더 효율적이라서 그렇게 하신건지 궁금합니다!. 딱히 실무에서 pending. fulfilled, rejected를 적용할 필요가 없는것인가요? 질문2. 리덕스는 램같은 것이어서 보안에 민감한 데이터를 넣어놔도 된다고 하셨는데, 해커들은 리덕스의 상태와 데이터를 못보나요? 또한 예를들어 실무에서는 리덕스에 어떤 보안에 민감한 데이터를 저장하는 궁금합니다!
-
미해결플렉스(Flex) 반응형 웹사이트 포트폴리오(The World's Best Cities)
슬라이딩 스크롤이 이상하게 먹혀요!
■ 질문 남기실 때 꼭! 참고해주세요.- 먼저 유사한 질문이 있었는지 검색해주세요.- 궁금한 부분이 있으시면 해당 강의의 타임라인 부분을 표시해주시면 좋습니다.- HTML, CSS, JQUERY 코드 소스를 텍스트 형태로 첨부해주시고 스크린샷도 첨부해주세요.- 다운로드가 필요한 파일은 해당 강의의 마지막 섹션에 모두 있습니다. html 아이디를 전부 따로 주었는데도 about이나 blog를 누르면 해당 섹션으로 이동하는게 아니라 자꾸 맨처음 지점으로 올라가게 됩니다! 스크립트와 html 중에 뭔가 문제가 있는건가요? 스크립트를 주기 전까지는 해당 섹션으로 잘 이동했었습니다 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- js 첫번째줄 필수--> <script src="js/jquery-3.5.1.min.js"></script> <!-- sliding jQuery --> <script src="js/jquery.scrollTo.min.js"></script> <script src="https://kit.fontawesome.com/a947f92a9e.js" crossorigin="anonymous"></script> <!-- slick.js --> <script src="slick/slick.min.js"></script> <link rel="stylesheet" href="slick/slick.css"> <link rel="stylesheet" href="slick/slick-theme.css"> <script src="https://kit.fontawesome.com/a947f92a9e.js" crossorigin="anonymous"></script> <!-- 공식 홈페이지에 CDN으로 가볍게 가져오는 것도 방법 중 하나 --> <!-- 순서 맨아래에 있는게 중요 --> <link rel="stylesheet" href="style.css"> <script src="js/custom.js"></script> <title>반응형 웹사이트 연습</title> </head> <body> <!-- width가 100%가 아닌 박스는 inner라는 공통 클래스를 넣어 가로너비와 마진을 정해놓는다 --> <!-- slide 작업할 때 slick.js 사이트 참고하면 좋다 --> <div class="container"> <!-- header --> <!-- active가 들어갔을때 어떻게 나오는지 실험하기 위해 클래스 미리 넣어보기 --> <header> <div class="banner"> <div class="lnb"> <a href="#none"><em>for</em> member</a> <a href="#none"><em>for</em> clients</a> <a href="#none"><em>for</em> inquire</a> </div> </div> <nav> <div class="logo"><img src="images/logo.png" alt="-"></div> <ul class="gnb"> <li><a href="#">HOME</a></li> <li><a href="#about">ABOUT</a></li> <li><a href="#ranking">RANKING</a></li> <li><a href="#testimonial">TESTIMONIAL</a></li> <li><a href="#blog">BLOG</a></li> </ul> </nav> </header> <!-- main --> <main class="intro"> <div class="inner"> <div class="heading"> <h1>The World’s Best Cities</h1> <p>It’s not just about good weather or grea t food and nightlife. Unlike other best-of lists, Resonance’s annual ranking also considers a city’s diversity.</p> </div> </div> </main> <!-- about --> <!-- a태그와 아이디 태그 이름이 같은 걸 찾아감 --> <section class="about" id="about"> <div class="inner"> <div class="about-content"> <div class="desc"> <h2>About Best Cities in the world</h2> <p> Factors including its highly rated nightlife landed Madrid, Spain, 12th on this list of world’s best cities. It’s not just about good weather or great food and nightlife. Unlike other best-of lists, Resonance’s annual ranking also considers a city’s diversity and, yes, the number of Instagram hashtags shared online to give a comprehensive view of what it’s like to visit and live in these places.<br><br> To figure out where you should travel to next, there are plenty of lists out there ranking the world’s best cities. Some use reader polls to determine which place lands at the top, while others base rankings on data like its livability or how easy it is to bike there. </p> <a href="#none">Visit the place information</a> </div> <div class="photo"> <img src="images/about-img-01.jpg" alt=""> </div> </div> </div> </section> <!-- lank --> <section class="ranking" id="ranking"> <div class="inner"> <div class="ranking-content"> <h2>The World’s 25 Best Cities of 2020</h2> <div class="itmes"> <div class="item"> <div class="up-image"> <img src="images/best-city-01.jpg" alt=""> </div> <div class="down-desc"> <span class="badge red">Must go</span> <h3>London, England</h3> <p> London’s main sights might date back millennia, but the capital’s shops, bars, hotels, and restaurants emerge and evolve on an almost weekly basis. </p> <a class="btn-explore" href="#none">Explore <img src="images/icon-arrow.png" alt=""></a> </div> </div> <div class="item"> <div class="up-image"> <img src="images/best-city-02.jpg" alt=""> </div> <div class="down-desc"> <span class="badge">Good to go</span> <h3>New York City, United States</h3> <p> New York’s performing arts scene—both on Broadway and off—is beloved by visitors and locals alike, so it’s no surprise that the Big Apple took the number one spot. </p> <a class="btn-explore" href="#none">Explore <img src="images/icon-arrow.png" alt=""></a> </div> </div> <div class="item"> <div class="up-image"> <img src="images/best-city-03.jpg" alt=""> </div> <div class="down-desc"> <span class="badge">Good to go</span> <h3>Paris, France</h3> <p> The Notre Dame fire was a devastating reminder of how well-loved Paris is by travelers worldwide, and as the capital gears up for the 2024 Olympics </p> <a class="btn-explore" href="#none">Explore <img src="images/icon-arrow.png" alt=""></a> </div> </div> </div> </div> </div> </section> <!-- test --> <section class="testimonial" id="testimonial"> <div class="inner"> <div class="test-content"> <h2>what <b>our customers</b> are saying</h2> <hr> <div class="myslider"> <div> <p class="client"> <img src="images/client-01.jpg" alt=""> <span><b>Coding Works</b>Seoul Korea</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> <div> <p class="client"> <img src="images/client-02.jpg" alt=""> <span><b>Kate Whitney</b>Los Angeles, US</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> <div> <p class="client"> <img src="images/client-03.jpg" alt=""> <span><b>Kelly Muvils</b>New York, US</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> <div> <p class="client"> <img src="images/client-04.jpg" alt=""> <span><b>Oliver</b>Califonia, US</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> <div> <p class="client"> <img src="images/client-05.jpg" alt=""> <span><b>Sophia</b>London, UK</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> <div> <p class="client"> <img src="images/client-06.jpg" alt=""> <span><b>Charlotte</b>Washington, US</span> </p> <p class="comment"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium fugit eos maiores placeat pariatur, possimus libero maxime quod iusto! Culpa perspiciatis adipisci enim pariatur id voluptas deserunt assumenda magni facilis quae earum, sed sint magnam eligendi consequatur, officia praesentium voluptatem nesciunt cum illo eaque accusamus mollitia. Animi ea error accusantium. </p> </div> </div> </div> </div> </section> <!-- call --> <section class="callaction"> <div class="callaction-heading"> <h2>The Most Simple & <b>Powerful Way</b><br>to book <b>your trip</b></h2> <a href="#none">GET EARLY ACCESS</a> </div> </section> <!-- blog --> <section class="blog" id="blog"> <div class="inner"> <div class="blog-content"> <div class="blog-header"> <h6>feature article</h6> <h2>Can Americans Visit Mexico Right Now?</h2> <p>Technically, there’s a ban on nonessential travel across the border through September 21. Then how are people on vacation in Cabo and Cancun right now?</p> <!-- 위에쓴거 재사용 --> <a class="btn-explore" href="#none">Read More <img src="images/icon-arrow.png" alt=""></a> </div> <hr class="divider"> <div class="post-content"> <div class="recent-post-items"> <h6>most recent</h6> <div class="post-item"> <div class="post-image"> <img src="images/most-recent-01.jpg" alt=""> </div> <div class="post-desc"> <h3>world ocean travel</h3> <p> The ocean provides a vast seascape for travel. Beyond the cruise ship there are other, more intimate, more environmentally sustainable ways to engage with the ocean. </p> <span>July 12, 2020</span> </div> </div> <hr class="divider"> <div class="post-item"> <div class="post-image"> <img src="images/most-recent-02.jpg" alt=""> </div> <div class="post-desc"> <h3>come to South Korea</h3> <p> While only 60 years ago South Korea was considered a developing country, it’s now one of Asia’s economic and cultural leaders. Super-chic Seoul combines modernism with ancient history </p> <span>August 22, 2020</span> </div> </div> <hr class="divider"> <div class="post-item"> <div class="post-image"> <img src="images/most-recent-03.jpg" alt=""> </div> <div class="post-desc"> <h3>Vietnam & Cambodia</h3> <p> Start in Hanoi and end in Bangkok! With the Discovery tour Best of Vietnam & Cambodia, you have a 18 days tour package taking you through Hanoi, Vietnam and 10 other destinations. </p> <span>June 30, 2020</span> </div> </div> </div> <div class="shared-post-items"> <h6>most shared</h6> <div class="post-item"> <div class="post-image"> <img src="images/most-shared-01.jpg" alt=""> </div> <div class="post-desc"> <h3>Events in NYC</h3> <p> New York City is the place to see and do everything </p> <span>May 02, 2020</span> </div> </div> <hr class="divider"> <div class="post-item"> <div class="post-image"> <img src="images/most-shared-02.jpg" alt=""> </div> <div class="post-desc"> <h3>FESTIVALS</h3> <p> Experiencing a festival together with a group of like-minded </p> <span>Jan 18, 2020</span> </div> </div> </div> </div> </div> </div> </section> <!-- festival --> <section class="festival"> <div class="festival-heading"> <h2><span>SEE ALL FESTIVALS</span> for the Best Trip Place</h2> <div class="btn"> <a href="#none">Maxico Festivals</a> <a href="#none">Barcelona Festivals</a> </div> </div> </section> <!-- footer --> <footer> <div class="inner"> <div class="footer-content"> <ul class="community"> <li>Community</li> <li><a href="#none">Subscribe</a></li> <li><a href="#none">Give A Gift</a></li> <li><a href="#none">Customer Service FAQ</a></li> <li><a href="#none">Access Your Subscription</a></li> </ul> <ul class="network"> <li>Network</li> <li><a href="#none">Privacy Policy</a></li> <li><a href="#none">Terms Of Service</a></li> <li><a href="#none">Advertise</a></li> <li><a href="#none">Jobs</a></li> </ul> <ul class="help"> <li>Help Preserve This Project</li> <li> We may earn a commission if you purchase an item featured on our site.</li> <li>Copyright © 2020 CodingWorks. All rights reserved.</li> </ul> </div> </div> </footer> </div> <!-- a태그를 #로 하면 위로 올라간다 --> <a class="gototop" href="#"><i class="fa-solid fa-angle-up"></i></a> </body> </html> $(function(){ // sliding jquery $('.gnb a').click(function(e) { e.preventDefault(); $.scrollTo(0, 800); }); // header scroll change $(window).scroll(function(){ // 윈도우 스크롤 탑이 50보다 크다면 if ($(window).scrollTop() > 50) { // 선택자 헤더에 클래스를 붙인다 'active' $('header, .gototop').addClass('active') } else { $('header, .gototop').removeClass('active') } }) // slick.js $('.myslider').slick({ dots: true, infinite: false, speed: 300, slidesToShow: 3, slidesToScroll: 3, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 3, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } // You can unslick at a given breakpoint now by adding: // settings: "unslick" // instead of a settings object ] }); });
-
미해결스프링 핵심 원리 - 기본편
안녕하세요. 다형성 관련해서 질문드립니다.
다형성과 관련된 설명은 잘 들었습니다. 고객쪽에서 MemberRepository m = new MemoryMemberRepository(); 라는 예제에서는 Memory에서 오류가 발생했을 때, JdbcMemberRepository();를 사용하도록 코드를 짜고 싶습니다. 그렇다면, client쪽에서 try{ MemberRepository m = new MemoryMemberRepository(); } catch() { MemberRepository m = new JdbcMemberRepository(); } 처럼 코드를 작성하는 것인가요? 아니면, 이런 경우에도 DI를 통한 이상적인 코드 구현이 있나요?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
프로필 페이지에서 새로고침 에러
다른 분들의 질문글에서 저와 같은 에러 내용을 봤지만 여전히 해결이 안되서 질문드립니다. 프로필 페이지인 상태에서 새로고침을 하면 로그인이 풀리고 에러가 발생합니다, 그래서 답변대로 프로필 페이지에도 LOAD_USER_REAUEST 액션을 넣어 로그인 정보를 불러왔는데 해결이 안되고 me?.Followings 도 적용해봤는데 에러가 사라지지 않네요 내 로그인 정보, 게시글 불러오기 실패, Followers 에러 // 프로필 페이지 profile.js useEffect(() => { dispatch({ type: LOAD_USER_REQUEST, // LOAD_USER_REQUEST 액션 추가 }) dispatch({ type: LOAD_FOLLOWERS_REQUEST, }) dispatch({ type: LOAD_FOLLOWINGS_REQUEST, }) }, []) // me?.Followings 수정 <AppLayout> <NicknameEditForm /> <FollowList header="팔로잉 리스트" data={me?.Followings} /> <FollowList header="팔로워 리스트" data={me?.Followers} /> </AppLayout>
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
비지니스 로직
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]안녕하세요. 좋은 강의 감사합니다. url 설계시 post는 저장 수정하고 get은 조회를 한다는 기본 개념을 잘 알게되었습니다. 그런데 실제로 실무에서 비지니스 로직을 조회할 때, 단순한 조회, 저장이 일어나는 경우는 거의 없다고 생각됩니다. 예를 들면 로그인 하는 상황이라고 가정했을 때 입니다. 1. 로그인 시도를 위해 아이디 패스워드 여부를 조회한다. 2. 아이디 패스워드가 일치한다면 로그인 히스토리 등 각종 정보성 테이블에 update를 한 후 로그인 처리를 한다. 이런 경우에 클라이언트에서 get api 호출 후 리턴 값을 받아서 post api로 저장을 한 후 후속 처리를 한다면 api를 여러번 호출하는 상황이 발생하게 됩니다. 아래 두가지 시나리오 중 어떤 방식이 최적인지 궁금합니다. 1. 로그인 api 한번 호출 ( get or post로 한번 던진 후 모두 처리 ) - 아이디/패스워드 일치 여부 확인 ( 조회 ) - 타 서버에 흩어진 회원 정보 조회 및 병합 ( 조회 ) - 각종 정보 업데이트 ( 수정 ) - 토큰 처리 등등 2. 로그인 api 여러번 호출 - GET 아이디/패스워드 일치 여부 확인 - SOAP 타 서버에 흩어진 회원 정보 조회 및 병합 - POST 각종 정보 업데이트 - POST 토큰 처리 등등 설명이 부족할 경우 댓글 주시면 더 자세히 설명해 보도록 하겠습니다. 감사합니다.
-
해결됨스프링 기반 REST API 개발
withRel( " ... " ) 값을 타입세이프 하게 설정하는 방법에 대한 질문입니다.
안녕하세요 강사님. 열심히 응용하고 있습니다.Relation 이름이 모두 문자열로 있는것이, 마음에 걸려서 아래와 같이 Enum 으로 적용했습니다. // "update-event-etc".withRel(RelationType.UPDATE.dash("event", "etc", ...))// "query-events".withRel(RelationType.QUERY.dash("events")) 타입세이프한 방법을 좀 오버(?)스럽게 대쉬"-" 구분 메서드를 통해 조합되도록 구성했는데요,이와 비슷하거나, 더 나은 방향에 대한 조언을 부탁드려도 될까요? 읽어주셔서 감사합니다.
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
ServletApplication
ServletApplication 클래스를 Run하면 RequestHeaderServlet같은 클래스를 실행할 수 있는 이유가 import javax.servlet.annotation.WebServlet; 이것을 해줘 클래스마다 애노테이션WebServlet을 자동으로 인지해서 인가요?
-
미해결팝스타 공식 뮤비 제작 & 유튜브 2천만 뷰 크리에이터의 애니메이트 X 이모티콘 클래스
심볼을 그룹으로 되돌릴수는 없나요?
안녕하세요 그리네모님. 궁금한게 생겨서 질문 남깁니다! 보통 그룹을 심볼으로 만들어주는데, 수정사항이 생겨서 심볼을 그 전에 '그룹이었던 상태'로 돌리고 싶으면 어떻게 해야 하나요?