묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결코로나맵 개발자와 함께하는 지도서비스 만들기 1
npm install -g express-generator
npm install -g express-generator 이 명령어에서 -g 옵션이 의미하는 게 뭔가요??
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
HTTP API와 REST API
과거에 실무에서 리소스를 명사로 나타내기 보다는 페이지를 나타내는 경우가 많았던거 같습니다. 지금은 지금은 리소스 자체를 명사로 나타내는 설계가 많은데요. 영한님께서 설명하신게 최근에 많이 사용되는 REST API와 같은 개념일까요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
MemberController class생성할때 ㅠ 인식이안돼요 ㅠ
이유가 뭘가요ㅠㅠ
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
TCP 3 way handshake의 결과에 대한 서버측 반응에 대한 질문
안녕하세요 tcp 3 way handshake의 성공에 대한 결과로 서버에는 무슨 일이 일어나는 건가요? 예를 들면, 연결 성공에 대한 결과로 서버에서 클라이언트의 ip를 저장하고 있다가 똑같은 ip로 요청이 들어오면 3 way handshake를 하지 않는다던가? 그리고 해당 ip에 대한 요청이 일정시간동안 오지 않는다면 저장한 ip를 파기한다던가 그런 일이 서버 측에서 발생하는 건가요?
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
한 서비스를 여러개 실행시키는 이유
하나의 서비스를 여러개 실행시키는 이유는 하나의 서버로 몰리는 상황 줄이기 위해서 여러개가 실행될 수 있는건가요? 하나의 서비스를 여러개 실행하는 경우가 실제로 많나요?
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
상태유지에 관련된 질문
안녕하세요.수업 너무 잘 듣고 있습니다. 실무에서 로그인 기능이 있는 서버에 상태유지를 안 하는 경우가 있나요? 즉, 로그인 기능이 있는 was서버인데 세션을 사용하지 않고 운영하는 경우, 그리고 그러한 경우가 있다면 로그인 후 유저에 대한 인증(서버측에서 클라이언트가 보낸 요청이 정상적으로 로그인 한 사용자인지)을 어떻게 처리 할 수 있을까요?
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
사진은 안 나오고 axious error가 떠요
<html> <head> <title>그랩마켓</title> <link href="index.css" type="text/css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> <script src = "https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> </head> <body> <div id="header"> <div id="header-area"> <img src="images/icons/logo.png" /> </div> </div> <div id="body"> <div id="banner"> <img src="images/banners/banner1.png" /> </div> <h1>판매되는 상품들</h1> <div id="product-list"></div> </div> <div id="footer"></div> </body> <script> axious .get( 'https://c3d57b18-f819-4b2f-becf-330ee397bf79.mock.pstmn.io/products' ) .then(function(result){ console.log('통신 결과 : ', result); }) .catch(function(error){ console.log('error 발생 : ',error); }); var products = [ { name: "농구공", price: 10000, seller: "마이클 조던", imageUrl: "images/products/basketball1.jpeg", }, { name: "축구공", price: 50000, seller: "호날두", imageUrl: "images/products/soccerball1.jpg", }, { name: "키보드", price: 15000, seller: "애플", imageUrl: "images/products/keyboard1.jpg", }, ]; let productsHtml = ""; for (var i = 0; i < products.length; i++) { let product = products[i]; productsHtml = productsHtml + '<div class="product-card">' + "<div>" + '<img class="product-img" src="' + product.imageUrl + '" />' + "</div>" + '<div class="product-contents">' + '<span class="product-name">' + product.name + "</span>" + '<span class="product-price">' + product.price + "원" + "</span>" + '<div class="product-seller">' + '<img class="product-avatar" src="images/icons/avatar.png" />' + "<span>" + product.seller + "</span>" + "</div>" + "</div>" + "</div>"; } document.querySelector("#product-list").innerHTML = productsHtml; </script> </html>
-
미해결플렉스(Flex) 반응형 웹사이트 포트폴리오(The World's Best Cities)
반응형 헤더 네비게이션(3) 질문
안녕하세요. 수업을 듣다가 궁금한게 있어서 글을 남기게 되었습니다. 1. CSS에서 nav에 width를 1280px;로 잡을 경우 아래와 같이 나오고 있습니다. <1280px> 그래서 저는 1100px로 잡아서 선생님께서 만드신 화면과 비슷하게끔 만들었는데 선생님이 만드신 거와 다르다보니 뭐가 잘못된 건지 궁금합니다. 현재 노트북으로 작성하고 있습니다. <1100px> 2. 미디어 쿼리 부분에서 .gnb li가 가로방향 전체가 아닌 .gnb li a 주변에 border가 만들어지는데 뭐가 잘못된건지 봐주시면 감사하겠습니다. 아래는 코드 입니다. <!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"> <title>Flex UI 실전 제작 - 반응형 헤더 네비게이션</title> <style> @import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500&display=swap'); @import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'); body{ font-family: 'Montserrat', sans-serif; background-color: eee; font-size: 15px; color: #222; margin : 0; } /* reset css */ a { text-decoration: none; color: #222; } h1, h2, h3, h4, h5, h6 { font-weight: normal; margin: 0; } button { cursor :pointer; outline : none; } /* Header */ header { background-color: #74b9ff; display: flex; justify-content: center; height: 60px; align-items: center; } nav { display: flex; justify-content: space-between; width: 1100px; } .logo {} .logo img{ filter:invert() } .gnb { margin: 0; padding : 0; list-style: none; display: flex; } .gnb li{} .gnb li a { color: white; margin: 10px; } .sns {} .sns a { color: white; margin: 5px; } .gnb li a:hover, .sns a:hover{ color: black; } @media screen and (max-width: 768px){ header{ height: auto; } nav { width: 100%; display: flex; flex-direction: column; } .logo { padding: 10px; } .gnb { display: flex; flex-direction: column; align-items: center; } .gnb li { border: 1px solid white; } .gnb li a { border: 1px solid #000; display: block; padding: 7px; margin: 0; } .sns { text-align: center; background-color: dodgerblue; padding: 10px; } .sns a { color: black; } } </style> </head> <body> <header> <nav> <div class="logo"><a href="#none"><img src="Flex UI 실전 제작(3) – 반응형 헤더 네비게이션/images/logo.png" alt=""></a></div> <ul class="gnb"> <li><a href="#none">Home</a></li> <li><a href="#none">About</a></li> <li><a href="#none">Project</a></li> <li><a href="#none">Plan & History</a></li> <li><a href="#none">Awards</a></li> <li><a href="#none">Location</a></li> <li><a href="#none">Contract</a></li> </ul> <div class="sns"> <a href="#none"><i class="fa fa-facebook-square"></i></a> <a href="#none"><i class="fa fa-twitter-square"></i></a> <a href="#none"><i class="fa fa-youtube-play"></i></a> </div> </nav> </header> </body> </html>
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
저도 마지막 점수 올리기 부분에서 막혀서 질문 드립니다
Button을 눌러도 아무런 일이 일어나지 않네요. PointButton에 On Click()에 UI_Button을 넣었다 없앴다가 했는데 On Click()시에 할 수 있는 Function도 없네요. 뭐가 문제일까요? 다른 분이 질문하신 것 읽어봤는데 -=, += 순서는 올바르게 했더라구요 아래는 제 UI_Button.cs 입니다. using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class UI_Button : UI_Base { enum Buttons { PointButton } enum Texts { PointText, ScoreText } enum GameObjects { TestObject, } enum Images { Itemicon, } private void Start() { Bind<Button> (typeof(Buttons)); Bind<Text>(typeof(Texts)); Bind<GameObject>(typeof(GameObjects)); Bind<Image>(typeof(Images)); GetButton((int)Buttons.PointButton).gameObject.AddUIEvent(OnButtonClicked); GameObject go =Getimage((int)Images.Itemicon).gameObject; AddUIEvent(go, (PointerEventData data) => { go.transform.position = data.position; }, Define.UIEvent.Drag); } int _score = 0; public void OnButtonClicked(PointerEventData data) { _score ++; Debug.Log($"{_score}"); GetText((int)Texts.ScoreText).text = $"점수 : {_score}"; } }
-
미해결함수형 프로그래밍과 JavaScript ES6+
reduce iter인자가 없을 경우
이렇게 구현한 것과 주석친 부분(강의에서 코드)과는 어떤 차이가 있을까요? 이것저것 넣어보는데 잘 동작하는 것 같아서 질문 드립니다.
-
미해결타입스크립트 시작하기
함수 타입2 에서 1:53
부분에서 에러는 발생하지 않지마 코드를 돌렸을때 에러가발생합니다. 제일 위에 export {} ; 를 제거하게 되면 코드는 돌아가는데여 하지만 obj 에는 빨간 밑줄이 그어지고 있습니다.
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
탐색에서 BFS,DFS 어떻게 구분하여 문제푸나여
DFS는 백트레킹이 이고 BFS 없다 이게 구분점인가요? 둘다 탐색인데 DFS와 다르게 BFS에서 또 Queue를 사용한 이유는 뭔가요??
-
미해결윈도우즈 애플리케이션 취약점 분석 입문부터 활용까지
38829.py에 대한 질문입니다
38829.py 실습 중인데 pattern_create를 통해서 얼마나 패턴을 만들었는지가 생략되어있어서 찾으려고 했고, 실제로 강의를 복습하면서 찾는 방법을 연습하는데 도움이 되었습니다. 하지만 강의에서는 pattern_offset이 32744431으로 rop_offset이 2915가 나오는데, 아무리 해보아도 다른 offset이 나옵니다. 4063이 계속해서 나오게 됩니다. 그리고 실제로 공격을 해보면 웹서버 프로그램이 계산기가 실행되지 않고 죽어버립니다. 아마도 offset을 잘못 썼기 때문이겠지요. 그래서 이 부분에 대해서 질문드립니다. 각각의 환경이 달라서 그렇게 출력이 되더라도 공격은 성공하는게 정상인데, 어떻게 해야할지 잘 모르겠습니다. 모든 강의를 계속해서 보고 있지만, 답답해서 질문드립니다. 질문사항 1. pattern_create를 이용하여 얼만큼의 패턴을 만들었는지. 2. attach 한후, shift+f9를 눌러 실행하고, 공격코드를 실행하고, shift+f9를 눌러 예외를 발생시키고 EIP를 확인한 결과 - 66463466 = 이 과정이 맞는지. 3. 나타난 결과인 66463466을 pattern_offset 한 결과 4063이 나오는데, 공격코드를 rop_offset = 4063을 하면 계산기 실행 없이 웹서버 프로그램이 죽어버립니다. 2915가 왜 안 나오는지. 질문 드립니다!
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
질문
List<Member> members = memberRepository.findAll();request.setAttribute("members", members);String viewPath = "/WEB-INF/views/members.jsp";RequestDispatcher dispatcher = request.getRequestDispatcher(viewPath);dispatcher.forward(request, response); 이코드에서 members에 저장을하고 <c:forEach var="item" items="${members}"> <tr> <td>${item.id}</td> <td>${item.username}</td> <td>${item.age}</td> </tr> </c:forEach> 이렇게출력을하는데요 컬렉션 리스트에서 모두가아닌 1개만 출력하고싶을때는 members.jsp 에코드를어떤식으로 짜야하는지궁금합니다!!
-
미해결스프링 핵심 원리 - 기본편
실행 오류관련 질문입니다.
마지막에 코드 다 치고나서 run하니까 > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :compileTestJava UP-TO-DATE > Task :processTestResources NO-SOURCE > Task :testClasses UP-TO-DATE > Task :test 18:05:54.915 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] 18:05:54.968 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] 18:05:55.072 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [hello.core.CoreApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 18:05:55.123 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [hello.core.CoreApplicationTests], using SpringBootContextLoader 18:05:55.172 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.core.CoreApplicationTests]: class path resource [hello/core/CoreApplicationTests-context.xml] does not exist 18:05:55.177 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.core.CoreApplicationTests]: class path resource [hello/core/CoreApplicationTestsContext.groovy] does not exist 18:05:55.179 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [hello.core.CoreApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. 18:05:55.181 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [hello.core.CoreApplicationTests]: CoreApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 18:05:55.361 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [hello.core.CoreApplicationTests] 18:05:55.599 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\jsp\core\build\classes\java\main\hello\core\CoreApplication.class] 18:05:55.610 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration hello.core.CoreApplication for test class hello.core.CoreApplicationTests 18:05:55.944 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [hello.core.CoreApplicationTests]: using defaults. 18:05:55.947 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 18:05:55.979 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [javax/servlet/ServletContext] 18:05:55.985 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource] 18:05:55.987 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute] 18:05:55.994 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5b49db04, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@4798cfd7, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@6e076197, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@2cea0051, org.springframework.test.context.support.DirtiesContextTestExecutionListener@396e6f33, org.springframework.test.context.event.EventPublishingTestExecutionListener@3889f9be, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6dd72ce1, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@11434182, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@5b1ea36e, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2c2de5ba, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@784974fa, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@730d7520] 18:05:56.051 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@5e274860 testClass = CoreApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@33e332b8 testClass = CoreApplicationTests, locations = '{}', classes = '{class hello.core.CoreApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@653e852a, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@7227d005, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@74d8ad61, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@77b2730e, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@51d68fe1, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@68d5716d], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null]. 18:05:56.094 [Test worker] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@5e274860 testClass = CoreApplicationTests, testInstance = hello.core.CoreApplicationTests@afd1091, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@33e332b8 testClass = CoreApplicationTests, locations = '{}', classes = '{class hello.core.CoreApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@653e852a, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@7227d005, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@74d8ad61, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@77b2730e, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@51d68fe1, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@68d5716d], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]]. 18:05:56.182 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.5.2) 2021-07-25 18:05:56.988 INFO 1656 --- [ Test worker] hello.core.CoreApplicationTests : Starting CoreApplicationTests using Java 11.0.11 on DESKTOP-USVJI5O with PID 1656 (started by 스윗 in C:\jsp\core) 2021-07-25 18:05:56.997 INFO 1656 --- [ Test worker] hello.core.CoreApplicationTests : No active profile set, falling back to default profiles: default 2021-07-25 18:05:58.917 INFO 1656 --- [ Test worker] hello.core.CoreApplicationTests : Started CoreApplicationTests in 2.729 seconds (JVM running for 8.563) expected: 1000 but was : 0 org.opentest4j.AssertionFailedError: expected: 1000 but was : 0 at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at hello.core.member.RateDiscountPolicyTest.vip_x(RateDiscountPolicyTest.java:30) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:135) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:834) RateDiscountPolicyTest > vip�� �ƴϸ� ������ ������� �ʾƾ��ϴ� FAILED org.opentest4j.AssertionFailedError at RateDiscountPolicyTest.java:30 5 tests completed, 1 failed > Task :test FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > There were failing tests. See the report at: file:///C:/jsp/core/build/reports/tests/test/index.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 12s 4 actionable tasks: 1 executed, 3 up-to-date 이런 오류가 나구요 problems에는 index.html에서 Closing tag mathces nothing 이렇게 나옵니다. 해결책좀 알려주시면 감사하겠습니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
람다 혹은 illegalstateexception오류 질문드립니다
안녕하세요. 좋은 강의 잘 듣고 있습니다. 스프링보다는 문법적인 부분의 질문인 것 같지만, 혼자 힘으로는 해결이 되지 않아서 질문드립니다. 람다 함수 또는 illegalstateexception과 관련된 질문입니다. ifpresent의 인자를 람다식으로 주셨는데 m->{}형태가 아닌 ()->{}형태로 주면 오류가 나는데 이유를 잘 모르겠습니다. 어짜피 m이라는 매개변수를 사용하지 않아서 빈 값으로 남겨둘려고 했는데, 남겨두니 오류가 나고 매개변수를 m으로하니 오류가 나지 않습니다. 왜 그런것일까요?
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
포인터 연산자 오버로딩
코드중에 T* operator*() { return _ptr; } 인 부분이있는데 T& operator*(){return *_ptr;} 로 해야 포인터 연산이 되는 것 아닌가요? const T* operator*() const { return _ptr; } const T* operator->() const { return _ptr; } 그리고 *연산자와 ->연산자의 const버전이 쓰이는 때가 언제인지 궁금합니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
좋은 자료로 잊고가는 기초들도 다시 공부할 수 있어 정말 감사합니다.
혹시나 가능 하시다면, Typescript로 리액트와 express 강의 같은 내용을 해주실 수 없으실까요? 유료라도 결제해서 꼭 보고 싶습니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기
동영상 썸네일 부분에서 서버 문제가 발생합니다
구글링 하고 해당 강의에서 비슷한 유형의 질문이 있는지 찾아 보았으나 딱히 해결법은 안나와서 질문 드립니다. 동영상을 첨부하고 썸네일을 받아오는 과정에서 생기는 오류입니다. 동영상은 uploads 폴더에 업로드가 되는 것 같으나 썸네일은 폴더에 저장도 되지 않고 계속 이 오류가 발생합니다. ffmpeg은 잘 설치된 걸로 확인이 되구요 npm install fluent-ffmpeg 했을 때 오류가 나긴 합니다 > bcrypt@3.0.8 install C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.8 and node@14.16.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error socket hang up gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - executable path is "C:\Users\ \AppData\Local\Programs\Python\Python39\python.exe" gyp ERR! find Python - "C:\Users\ \AppData\Local\Programs\Python\Python39\python.exe" could not be run gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - executable path is "C:\Users\ \.windows-build-tools\python27\python.exe" gyp ERR! find Python - "C:\Users\ \.windows-build-tools\python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19042 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\ 정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\정 예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19042 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\정예지\\Downloads\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.16.1 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\정예지\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\정예지\AppData\Roaming\npm-cache\_logs\2021-07-25T08_06_12_495Z-debug.log 혹시 이게 설치가 제대로 되지 않아서 일까요? ffmpeg를 깔고 컴퓨터를 재부팅했음에도 계속 같은 오류가 발생합니다.ㅜㅜ 저게 문제라면 왜 제대로 깔리지 않는 걸까요? 혹시나 싶어 vscode의 터미널이 아니라 cmd창을 관리자권한으로 실행해 install해봐도 똑같습니다 혹시나 싶어 강사님의 전체 코드를 다운 받아 npm run dev 해보았으나 같은 부분에서 오류가 발생합니다 (504오류) 초보라 오류코드 위주로 구글링해보는데도 잘 모르겠네요...답변 꼭 부탁드립니다
-
미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
postman에서 결과가 제대로 나오지 않습니다.
send누르면 아래 사진 처럼 error가 발생합니다.. server.js 코드 작성한건데 어떤게 잘못 된건지 확인좀 해주세요ㅜㅡㅜ 올려주신 소스코드보고 확인해봤는데도 못찾겠어요..ㅜ const express = require("express"); const cors = require("cors"); const app = express(); const models = require("./models"); const port = 8080; app.use(express.json()); app.use(cors()); app.get("/products", (req, res) => { const query = req.query; console.log("QUERY : ", query); res.send({ products: [ { id: 1, name: "농구공", price: 100000, seller: "조던", imageUrl: "images/products/basketball1.jpeg", }, { id: 2, name: "축구공", price: 50000, seller: "메시", imageUrl: "images/products/soccerball1.jpg", }, { id: 3, name: "키보드", price: 10000, seller: "그랩", imageUrl: "images/products/keyboard1.jpg", }, ], }); }); app.post("/products", (req, res) => { const body = req.body; const { name, description, price, seller } = body; models.Product.create({ name, description, price, seller, }) .then((result) => { console.log("상품 생성 결과 : ", result); res.send({ result, }); }) .catch((error) => { console.error(error); res.send("상품 업로드에 문제가 발생했습니다."); }); }); app.get("/products/:id/events/:eventId", (req, res) => { const params = req.params; const { id, eventId } = params; res.send(`id는 ${id}와 ${eventId} 입니다`); }); app.listen(port, () => { console.log("그랩의 쇼핑몰 서버가 돌아가고 있습니다."); models.sequelize .sync() .then(() => { console.log("DB 연결 성공!"); }) .catch((error) => { console.error(err); console.log("DB 연결 에러"); process.exit(); }); });