inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

jps부분 이 진행이 안되어 문의 드립니다.

미해결

Data Engineering Course (1) : 빅데이터 하둡 직접 설치하기

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

  • bigdata
  • Hadoop
  • 데이터 엔지니어링
신동식 댓글 1 좋아요 0 조회수 388

vue-advanced 리포지토리 권한 부탁드립니다!

미해결

Vue.js + TypeScript 완벽 가이드

이전 강의까지는 제가 수강을 하지 않은 상태입니다.. 혹시 권한부여가 안될까요..? 만약 된다면 권한 부탁드립니다! 이메일 : maum97@naver.com github: Hwangsoomin 감사합니다

  • typescript
  • vuejs
maum97 댓글 1 좋아요 1 조회수 162

db 삭제

미해결

[리뉴얼] React로 NodeBird SNS 만들기

안녕하세요. model/profile.js db. Profile . belongsTo (db. User ) ; model/user.js db. User . hasMany (db. Profile ) ; try { const userId = req. user . id ; await User . destroy ({ where : { id : userId } }) ; await Profile . destroy ({ where : { UserId : userId } }) ; res. status ( 200 ). json ( 'ok' ) ; } catch (error) { console . error (error) ; next(error) ; } 위와 같은 요청을 만들어서 회원 탈퇴를 하려고 하는데요. user만 지워지고 user 가 작성한 profile은 지워지지가 않는데 왜 그런걸까요? 아래 그림 참조하시면 user는 없어져서 UserId 만 null 이 되었고 profile은 안 없어지네요 ㅠㅠ

  • nodejs
  • redux
  • express
  • react
  • Next.js
d\/b 댓글 1 좋아요 0 조회수 175

npm install -g express-generator

미해결

코로나맵 개발자와 함께하는 지도서비스 만들기 1

npm install -g express-generator 이 명령어에서 -g 옵션이 의미하는 게 뭔가요??

  • npm
  • nodejs
  • vscode
  • express
  • 웹앱
김효정 댓글 1 좋아요 0 조회수 309

HTTP API와 REST API

미해결

모든 개발자를 위한 HTTP 웹 기본 지식

과거에 실무에서 리소스를 명사로 나타내기 보다는 페이지를 나타내는 경우가 많았던거 같습니다. 지금은 지금은 리소스 자체를 명사로 나타내는 설계가 많은데요. 영한님께서 설명하신게 최근에 많이 사용되는 REST API와 같은 개념일까요?

  • network
HelloPoPoWorld 댓글 2 좋아요 7 조회수 658

TCP 3 way handshake의 결과에 대한 서버측 반응에 대한 질문

미해결

모든 개발자를 위한 HTTP 웹 기본 지식

안녕하세요 tcp 3 way handshake의 성공에 대한 결과로 서버에는 무슨 일이 일어나는 건가요? 예를 들면, 연결 성공에 대한 결과로 서버에서 클라이언트의 ip를 저장하고 있다가 똑같은 ip로 요청이 들어오면 3 way handshake를 하지 않는다던가? 그리고 해당 ip에 대한 요청이 일정시간동안 오지 않는다면 저장한 ip를 파기한다던가 그런 일이 서버 측에서 발생하는 건가요?

  • network
HelloPoPoWorld 댓글 2 좋아요 1 조회수 276

한 서비스를 여러개 실행시키는 이유

미해결

Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)

하나의 서비스를 여러개 실행시키는 이유는 하나의 서버로 몰리는 상황 줄이기 위해서 여러개가 실행될 수 있는건가요? 하나의 서비스를 여러개 실행하는 경우가 실제로 많나요?

  • JPA
  • architecture
  • spring-boot
  • spring-cloud
  • msa
  • Kafka
lulala 댓글 1 좋아요 1 조회수 332

상태유지에 관련된 질문

미해결

모든 개발자를 위한 HTTP 웹 기본 지식

안녕하세요.수업 너무 잘 듣고 있습니다. 실무에서 로그인 기능이 있는 서버에 상태유지를 안 하는 경우가 있나요? 즉, 로그인 기능이 있는 was서버인데 세션을 사용하지 않고 운영하는 경우, 그리고 그러한 경우가 있다면 로그인 후 유저에 대한 인증(서버측에서 클라이언트가 보낸 요청이 정상적으로 로그인 한 사용자인지)을 어떻게 처리 할 수 있을까요?

  • network
HelloPoPoWorld 댓글 2 좋아요 0 조회수 301

사진은 안 나오고 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>

  • tensorflow
  • 머신러닝 배워볼래요?
  • react-native
  • nodejs
  • HTML/CSS
  • react
  • javascript
  • express
루네 댓글 1 좋아요 1 조회수 197

반응형 헤더 네비게이션(3) 질문

미해결

플렉스(Flex) 반응형 웹사이트 포트폴리오(The World's Best Cities)

안녕하세요. 수업을 듣다가 궁금한게 있어서 글을 남기게 되었습니다. 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 : 15 px ; 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 : 60 px ; align-items : center ; } nav { display : flex ; justify-content : space-between ; width : 1100 px ; } . logo {} . logo img { filter : invert () } . gnb { margin : 0 ; padding : 0 ; list-style : none ; display : flex ; } . gnb li {} . gnb li a { color : white ; margin : 10 px ; } . sns {} . sns a { color : white ; margin : 5 px ; } . gnb li a : hover , . sns a : hover { color : black ; } @media screen and ( max-width : 768 px ){ header { height : auto ; } nav { width : 100 % ; display : flex ; flex-direction : column ; } . logo { padding : 10 px ; } . gnb { display : flex ; flex-direction : column ; align-items : center ; } . gnb li { border : 1 px solid white ; } . gnb li a { border : 1 px solid #000; display : block ; padding : 7 px ; margin : 0 ; } . sns { text-align : center ; background-color : dodgerblue ; padding : 10 px ; } . sns a { color : black ; } } </ style > </ head > < body > < header > < nav > < div class =" logo ">< a href =" #none ">< img src =" Flex UI 실전 제작(3) &ndash; 반응형 헤더 네비게이션/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 >

  • flex
  • 반응형-웹
air_guri 댓글 1 좋아요 1 조회수 657

저도 마지막 점수 올리기 부분에서 막혀서 질문 드립니다

미해결

[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}"; } }

  • 버튼
  • C#
  • unity
정경진 댓글 2 좋아요 0 조회수 357

reduce iter인자가 없을 경우

미해결

함수형 프로그래밍과 JavaScript ES6+

이렇게 구현한 것과 주석친 부분(강의에서 코드)과는 어떤 차이가 있을까요? 이것저것 넣어보는데 잘 동작하는 것 같아서 질문 드립니다.

  • 함수형-프로그래밍
  • javascript
hello 댓글 1 좋아요 0 조회수 254

함수 타입2 에서 1:53

미해결

타입스크립트 시작하기

부분에서 에러는 발생하지 않지마 코드를 돌렸을때 에러가발생합니다. 제일 위에 export {} ; 를 제거하게 되면 코드는 돌아가는데여 하지만 obj 에는 빨간 밑줄이 그어지고 있습니다.

  • typescript
SJ 댓글 2 좋아요 0 조회수 377

탐색에서 BFS,DFS 어떻게 구분하여 문제푸나여

미해결

자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비

DFS는 백트레킹이 이고 BFS 없다 이게 구분점인가요? 둘다 탐색인데 DFS와 다르게 BFS에서 또 Queue를 사용한 이유는 뭔가요??

  • java
  • 코테 준비 같이 해요!
hallo 댓글 1 좋아요 2 조회수 1104

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가 왜 안 나오는지. 질문 드립니다!

  • windows
로큰롤파이리 댓글 1 좋아요 0 조회수 313

질문

미해결

스프링 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 에코드를어떤식으로 짜야하는지궁금합니다!!

  • spring
  • MVC
dldudtjs5996 댓글 1 좋아요 0 조회수 237

실행 오류관련 질문입니다.

미해결

스프링 핵심 원리 - 기본편

마지막에 코드 다 치고나서 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 이렇게 나옵니다. 해결책좀 알려주시면 감사하겠습니다.

  • oop
  • spring
뷰린이탈출대작전 댓글 1 좋아요 0 조회수 217

람다 혹은 illegalstateexception오류 질문드립니다

미해결

스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술

안녕하세요. 좋은 강의 잘 듣고 있습니다. 스프링보다는 문법적인 부분의 질문인 것 같지만, 혼자 힘으로는 해결이 되지 않아서 질문드립니다. 람다 함수 또는 illegalstateexception과 관련된 질문입니다. ifpresent의 인자를 람다식으로 주셨는데 m->{}형태가 아닌 ()->{}형태로 주면 오류가 나는데 이유를 잘 모르겠습니다. 어짜피 m이라는 매개변수를 사용하지 않아서 빈 값으로 남겨둘려고 했는데, 남겨두니 오류가 나고 매개변수를 m으로하니 오류가 나지 않습니다. 왜 그런것일까요?

  • 람다
  • MVC
  • java
  • spring-boot
  • spring
안녕하세요 댓글 1 좋아요 0 조회수 570

포인터 연산자 오버로딩

미해결

[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버

코드중에 T* operator*() { return _ptr; } 인 부분이있는데 T& operator*(){return *_ptr;} 로 해야 포인터 연산이 되는 것 아닌가요? const T* operator*() const { return _ptr; } const T* operator->() const { return _ptr; } 그리고 *연산자와 ->연산자의 const버전이 쓰이는 때가 언제인지 궁금합니다.

  • network
  • windows-server
  • MMORPG
fhan 댓글 1 좋아요 0 조회수 395

인기 태그

인프런 TOP Writers

주간 인기글