자바스크립트 함수 인강에서 return문 개념이 너무 헷갈려서요. function getArea(width*height){ let area = width* height; return area; } let area1 = getArea(100,200); return을 쓰면 위와 같이 항상 새로운 변수를 지정해서 getArea함수를 호출해야하나요? 왜 return을 사용하는지 잘 모르겠어요..
안녕하세요. 회원가입하는 메서드를 테스트하는 부분에서 null point exception 에러가 발생하여 디버깅으로 확인해 보니, 회원가입 메서드 상단의 @Autowired MemberService memberService 선언 부분에서 null 값이 들어오는 것을 확인하였습니다. 테스트 클래스의 원본 클래스 MemberServiceTest도 그러한지 확인하였는데, 디버깅으로 확인해본 결과, 원본 클래스에선 인스턴스의 값이 제대로 들어오는 것을 확인할 수 있었습니다. @Autowired MemberService memberService 선언 부분에서 null 값이 들어오는 것을 어떻게 고칠 수 있을까요????
선생님! 강의에 중간에 보니까 컴포넌트 파일명을 소문자 + underscore로 하셔서요. service_layout.tsx 이렇게요 저는 컴포넌트 파일명도 주로 대문자로 시작해서 파스칼로 만들어주는 것 같은데요. 궁금해서 조금 찾아보니까 선생님이 사용하신 방법은 ' Google JavaScript Style Guide ' 인 것 같은데, 그런가요? 이건 그냥 취향의 문제인가요? next 에서 페이지는 pages 폴더 안에 파일명을 소문자로 넣어주면 그대로 url로 사용하는 건 본 것 같은데 혹시 next 에서 사용하는 방법인가요? 파이어베이스 설정하는 부분 넘어가니 좀 쉬워져서 좋습니다~~ 질문은 to be continued...
책과 강의를 둘다 보면서 웹사이트를 만들고 있습니다. 파이썬은 데이터 분석 위주로 공부해서 장고는 사실 이번이 처음 배우는 중입니다. html, css, js는 아주 기초정도 알고 있습니다. 책을 따라가면, 책 대로 만들어지긴 하는데, 책 내용을 100% 이해한다고 보기는 힘들 것 같습니다. 책 내용을 100% 이해 못하면서 따라가도 되나요? 이걸 끝까지 완료 한 다음에는 어떻게 장고를 공부하는 것을 추천하시나요?
값이 들어왔을때 5 2 3 3 1 3 1 1 2 2 3 이게 어떻게 a 배열, b 배열에 알아서 잘 담겨지는지 모르겠습니다. int n = sc.nextInt(); int [] a = new int[n]; int [] b = new int [n]; for(int i =0; i<n; i++){ a[i] = sc.nextInt(); } for(int i =0; i<n; i++){ b[i] = sc.nextInt(); } 이런건 그냥 외우는 건가요?
풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
맥에서 vim 설정을 잘못하는 바람에 mac shell(zsh)에서 vi 실행할 때 마다 Error detected while processing /Users/yoohajun/.vimrc: line 38: E518: Unknown option: CursorLine line 70: E518: Unknown option: CursorLine 위와 같은 에러가 발생하는데요 ㅠㅠ 혹시 vim 재설치를 하는 방법이 있을까요? vimrc를 어떻게 건들여야 할지 모르겠습니다
npm run build를 했더니 밑과 같은 에러가 뜹니다.. 어떻게 해야하나요 ㅜ [webpack-cli] Failed to load 'C:\Users\JW\slack_front\alecture\webpack.config.ts' config [webpack-cli] TypeError: checker.emitFiles is not a function at compile (C:\Users\JW\slack_front\alecture\node_modules\typescript-register\index.js:132:26) at Object.req (C:\Users\JW\slack_front\alecture\node_modules\typescript-register\index.js:29:9) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at WebpackCLI.tryRequireThenImport (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:204:22) at loadConfigByPath (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1404:38) at WebpackCLI.loadConfig (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1510:44) at WebpackCLI.createCompiler (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1785:33)
강의 중간에 따옴표 사용할 때 줄바꿈 하는 법과 \를 문자열로 취급하는 법을 따라해보는데 저는 '안녕하세요?\n줄바꿈했어요'; 라고 입력을 하면 결과값도 '안녕하세요?\n줄바꿈했어요' 라고 나옵니다. 제로초님의 영상에서는 '안녕하세요? 줄바꿈했어요' 라고 출력이 되는데,,, 말입니다...? *참고로 백틱을 이용하여 문자열을 쓸 때 `안녕하세요 줄바꿈하고있습니다`; 라고 입력을 하면 결과값에 '안녕하세요\n줄바꿈하고있습니다' 라고 출력됩니다.... 결과값에서 \n이 엔터가 되어 나오게 하는 법을 아시는지... 그리고 \를 문자열 중간에 사용할때 'how\re you?';라고 치면 'howe you?'라고 나오기 때문에 'how\\re you?';라고 쳐야 'how\re you?'라고 나온다고 하셨는데 저는 'how\re you?'; 라고 쳐도 결과값이 그대로 'how\re you?';로 나옵니다... 이게 왜 이렇게 되는지..? 구글로 이모저모 검색을 해봤는데 뭐라고 검색해야 딱 집어 나올지 검색해보니 2프로 부족해서 그만..질문합니다
파일업로드 프로필 부분에서 선생님것을 보고하였는데 약간의 오류가 있어서 말씀드립니다. 파일 업로드할시 같은 이름 다른 사진으로 처리하였을 경우 upload폴더에는 다른이름으로 저장 되는 것을 확인 할수 있었으나 db테이블에서는 같은 이름으로 처리가 되어서 서로 매칭이 되고 있지않습니다. upload파일에서는 test와 test1 두개의 이름으로 저장이 되어있고 db테이블에서는 test.jpg두개의 이름으로 저장이 되어있습니다. 그래서 사진 프로필은 upload파일에서 test.jpg만 가지고 오고있습니다. db는 어떻게 처리해야 되는걸까요...
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요! :) 데이터 분석가를 목표로 준비 중인 학생입니다! 1) 강의 출처를 기재한다면, 기초 > 중급 > 고급 강의 개인 복습 내용을 깃허브에 코드로 정리해도 될지요? 최대한 변형하며 스스로 작성해보겠으나, 전체적인 코드 흐름이 강의 내용을 따라갈 예정이라 사전에 문의 드립니다. 2) 'SQL 데이터 분석 캠프 | VOD 기초 또는 실전반' 참여도 고려 중인데 캠프 학습 내용도 상기 질문 내용과 같은 조건으로 업로드 가능한지요? 너무 기대되는 강의입니다, 열공해보겠습니다!
안녕하세요 구파고님! SocialLoginApiServiceFactory 클래스에 socialLoginApiServices에서 key와 value값이 언제 주입되는지 궁금합니다! 생성자 주입을 통해서 key값으로는 bean의 이름, value에는 각 소셜로그인 api 서비스 구현체가 들어간다고 하셨는데 어떤 시점에 주입되는지 모르겠어서 질문드립니다!
오류가 떠요.. import를 잘못해서 그런걸까요? java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext( DefaultCacheAwareContextLoaderDelegate.java:132 ) at org.springframework.test.context.support .DefaultTestContext.getApplicationContext( DefaultTestContext.java:123 ) at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary( ServletTestExecutionListener.java:190 ) at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance( ServletTestExecutionListener.java:132 ) at org.springframework.test.context.TestContextManager.prepareTestInstance( TestContextManager.java:244 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest( SpringJUnit4ClassRunner.java:227 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall( SpringJUnit4ClassRunner.java:289 ) at org.junit.internal.runners.model.ReflectiveCallable.run ( ReflectiveCallable.java:12 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock( SpringJUnit4ClassRunner.java:291 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild( SpringJUnit4ClassRunner.java:246 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild( SpringJUnit4ClassRunner.java:97 ) at org.junit.runners.ParentRunner$4.run( ParentRunner.java:331 ) at org.junit.runners.ParentRunner$1.schedule( ParentRunner.java:79 ) at org.junit.runners.ParentRunner.runChildren( ParentRunner.java:329 ) at org.junit.runners.ParentRunner.access$100( ParentRunner.java:66 ) at org.junit.runners.ParentRunner$2.evaluate( ParentRunner.java:293 ) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate( RunBeforeTestClassCallbacks.java:61 ) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate( RunAfterTestClassCallbacks.java:70 ) at org.junit.runners.ParentRunner$3.evaluate( ParentRunner.java:306 ) at org.junit.runners.ParentRunner.run ( ParentRunner.java:413 ) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run ( SpringJUnit4ClassRunner.java:190 ) at org.junit.runner.JUnitCore.run ( JUnitCore.java:137 ) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs( JUnit4IdeaTestRunner.java:69 ) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute( IdeaTestRunner.java:38 ) at com.intellij.rt.execution.junit.TestsRepeater.repeat( TestsRepeater.java:11 ) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs( IdeaTestRunner.java:35 ) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart( JUnitStarter.java:235 ) at com.intellij.rt.junit.JUnitStarter.main( JUnitStarter.java:54 ) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [jpabook.jpashop.JpashopApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'memberRepository' for bean class [jpabook.jpashop.repository.MemberRepository] conflicts with existing, non-compatible bean definition of same name and class [jpabook.jpashop.MemberRepository] at org.springframework.context.annotation.ConfigurationClassParser.parse( ConfigurationClassParser.java:189 ) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions( ConfigurationClassPostProcessor.java:336 ) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry( ConfigurationClassPostProcessor.java:252 ) at org.springframework.context.support .PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors( PostProcessorRegistrationDelegate.java:285 ) at org.springframework.context.support .PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors( PostProcessorRegistrationDelegate.java:99 ) at org.springframework.context.support .AbstractApplicationContext.invokeBeanFactoryPostProcessors( AbstractApplicationContext.java:751 ) at org.springframework.context.support .AbstractApplicationContext.refresh( AbstractApplicationContext.java:569 ) at org.springframework.boot.SpringApplication.refresh( SpringApplication.java:767 ) at org.springframework.boot.SpringApplication.refresh( SpringApplication.java:759 ) at org.springframework.boot.SpringApplication.refreshContext( SpringApplication.java:426 ) at org.springframework.boot.SpringApplication.run ( SpringApplication.java:326 ) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext( SpringBootContextLoader.java:122 ) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal( DefaultCacheAwareContextLoaderDelegate.java:99 ) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext( DefaultCacheAwareContextLoaderDelegate.java:124 ) ... 27 more Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'memberRepository' for bean class [jpabook.jpashop.repository.MemberRepository] conflicts with existing, non-compatible bean definition of same name and class [jpabook.jpashop.MemberRepository] at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate( ClassPathBeanDefinitionScanner.java:349 ) at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan( ClassPathBeanDefinitionScanner.java:287 ) at org.springframework.context.annotation.ComponentScanAnnotationParser.parse( ComponentScanAnnotationParser.java:132 ) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass( ConfigurationClassParser.java:296 ) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass( ConfigurationClassParser.java:250 ) at org.springframework.context.annotation.ConfigurationClassParser.parse( ConfigurationClassParser.java:207 ) at org.springframework.context.annotation.ConfigurationClassParser.parse( ConfigurationClassParser.java:175 ) ... 40 more
Description: Parameter 0 of constructor in com.example.demo.service.CustomUserDetailsService required a bean of type 'com.example.demo.repository.UserRepository' that could not be found. Action: Consider defining a bean of type 'com.example.demo.repository.UserRepository' in your configuration. 구글링을 해봐도 전혀 해결되지 않아요 ㅠㅠ
curryR을 활용해 등록한 map 함수나 _filter함수 동작에 const mapR = _curryR(_map); console.log( mapR(v => v.name )(arr) ) ); 은 작동하는데 반해 console.log( mapR(v => v.name , arr) ); 은 작동하지 않습니다...저는 조금 이해가 안가는게 arguments.length ===2 로 파라미터가 2개 들어올때 의 경우의 수 까지 처리 한것으로 알고 있는데 왜 밑에 부분은 작동하지 않는지...맞게 동작하는 것인지 궁금합니다.... 만약 제가 놓치고 있는 부분이 있다면 알려주시면 감사드리겠습니다!