묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결타입스크립트 입문 - 기초부터 실전까지
@ts-check가 동작하지 않습니다.
안녕하세요 현재 타입스크립트에 대해 관심이 생겨 선생님 강의를 듣고 있습니다! 선생님과 함께 예제를 따라하면서 개발하다가 @ts-check를 적어줘도 빨간 밑줄이 제 코드에는 생기지 않아 원인을 알고자 질문을 남깁니다. settings.json파일에 아래 코드를 추가해주어도 @ts-check가 동작하지 않습니다. "typescript.validate.enable": false, "javascript.validate.enable": false, 또한, 혹시 몰라 true로 변경했음에도 작동하지 않습니다.원인을 알고자 질문을 남깁니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
th:filed 디버그 어떻게 하나요?
<input type="checkbox" th:field="*{regions}" th:value="${region.key}" class="form-check-input"> 여기에서 th:value를 없애면 에러가 나오는데요 th:field가 채워주는게 value, id, name인데, 채워주는 값을 확인하고 싶으면 어떻게 가능한지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
@Transactional rollback이 안되네요
안녕하세요. 강의 너무 잘 듣고 있습니다. @Transactional을 붙이면 종료하면서 rollback이 되어 테이블에 커밋되지 않는다고 이해했습니다. 로그상에는 rollback이 되었다고 나오는데 쿼리 조회해보면 데이터가 조회가 되네요.. 로그는 다음과 같습니다. 2021-09-21 16:23:07.767 INFO 15576 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@3700ec9c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@27dc627a, testMethod = 회원가입@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@2002348 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@4d14b6c2, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@2657d4dd, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@387a8303, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7eecb5b8, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5dafbe45, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@71623278], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.jdbc.support.JdbcTransactionManager@570ba13]; rollback [true] 2021-09-21 16:23:09.376 INFO 15576 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@3700ec9c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@27dc627a, testMethod = 회원가입@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@2002348 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@4d14b6c2, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@2657d4dd, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@387a8303, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7eecb5b8, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5dafbe45, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@71623278], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]] 2021-09-21 16:23:09.428 INFO 15576 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-09-21 16:23:09.466 INFO 15576 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 어떤 문제일까요?
-
미해결스프링 시큐리티
초보같은 질문 하나만 하겠습니당..
SecurityContext contextAfterChainExecution = SecurityContextHolder.getContext();// Crucial removal of SecurityContextHolder contents before anything else.SecurityContextHolder.clearContext();this.repo.saveContext(contextAfterChainExecution, holder.getRequest(), holder.getResponse()); SecurityContextPersistenceFilter의 코드를 보면 위와 같이 되어있습니다. 중간에 clearContext()를 하면 contextAfterChainExecution 도 null이 된다고 생각했는데, 실제로는 null이 안되더라구요... 왜 그런건지 궁금합니다...
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
UnassignedReferenceException에 대해 문의드립니다.
UnassignedReferenceException: The variable _player of CameraController has not been assigned. You probably need to assign the _player variable of the CameraController script in the inspector. CameraController.LateUpdate () (at Assets/Scripts/Controllers/CameraController.cs:29) 위 오류가 뜨면서 실행하면 카메라가 플레이어를 따라가지 않습니다. 올린 파일을 그대로 사용해도 여전히 오류가 생기네요. 유니티와 비주얼 스튜디오 버전은 최신버전입니다.
-
미해결중급자를 위한 1 minute, 스낵 파이썬
repeat 함수
repeat 함수를 설명하시면서, 보통 이런 메서드들은 iter 트루쓰에 선언이 되어있어요. 특수한 경우에 내가 직접 만들어 써야해요. 여기서 질문 드립니다. 질문 1 iter truth?에 선언되어 있다고 하셨는데, 어디인지, 잘 이해가 되지 않습니다. iter 객체의 어디에[ 있따고 하시는것 같은데 알려주세요.. iter 매직 메소드인가...요?
-
미해결내 업무를 대신 할 파이썬(Python) 웹크롤링 & 자동화 (feat. 주식, 부동산 데이터 / 인스타그램)
강의 15.1 네이버 부동산 사이트 데이터 파악하기 part1
-선생님 강의 잘 듣고 있습니다. 강의 15.1 네이버 부동산 사이트 데이터 파악하기 part1 중 authorization 삭제하지 않고, 그대로 실행하였는데 데이터를 가져올 수 없네요.
-
미해결
스프링입문 강의 오류 질문
스프링 입문 강의 22강 JPA 연결후 회원 가입 TEST 과정에서 오류가 나는데 해결이 안되네요 ㅠ 1. config class 2. service 2. test class join 확인시 하이버네이트 db 연결 오류가 나요 application.properites
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
&& 연산과 & > div 에 대한 질문
안녕하세요. 제로초 님. 드리고 싶은 질문이 두 가지가 있는데요. 1) https://github.com/ZeroCho/react-nodebird/blob/master/ch3/front/components/PostCard.js#L20 에서 const id = useSelector((state) => state.user.me && state.user.me.id); 에 대해 질문드리고 싶은 점이 있습니다. 1-a) state.user.me && state.user.me.id 와 같이 && 연산을 하는 이유는 무엇일까요? 1-b) && 연산 이후 id에는 사용자의 id가 아닌 true/false의 boolean 값이 저장되는 것인가요? 2) https://github.com/ZeroCho/react-nodebird/blob/master/ch3/front/components/ImagesZoom/styles.js#L54 에서 & > div 의 의미를 검색해 봤지만, 잘 이해가 안 되어서 질문을 드리게 되었습니다. 어떤 의미인지 간략하게라도 말씀해 주실 수 있으신지요? 혹시 추천해 주실 문서가 있으신지요? 읽어주셔서 감사합니다.
-
미해결실전! Querydsl
질문있습니다
확실히 컴포넌트처럼 분리해서 사용하니 재사용성이 아주 좋다는것을 알았는데요. 그렇다면 실무에서 어떤 식으로 분리하는지 알고 싶습니다. 예전에 임플리먼트도 JpaEl 이런식으로 네이밍 규칙의 권장사항이 있는것처럼 해당 메소드만 쓰는 적당한 네이밍규칙이라던가,,(물론 실무 프로젝트에 따라 많이 다를 수 도 있겠지만요! 감이 잘 잡히지않아서 질문드리는거라서 ㅠㅠ) 여튼, 하나에 서비스(ex, MemberService)에 모든 Eq 를(name, age, 등등) 다 몰아넣기는 너무 많을 경우에는 어떻게 하시는지(지저분해보여서 생각보다..) 따로 클래스를 만들어서 분리시킨다면 어떤식의 네이밍 규칙을 사용하는지 알고 싶습니다. 질문이 너무 초급적이라 죄송합니당 ㅠㅠ
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
선생님
저는 데이터사이언스...머신러닝 딥러닝 이런 걸 염두에 두고 파이썬 공부를 시작했습니다.. 그런데 크롤링 같은 주제도 열심히 공부를 해야하나요? 어차피 공부하면 깨닫게 되겠지만... 공부하기 전에 참고라도 하고 싶어 여쭙습니다. 꾸벅...
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
MemberService에서 MemberRepository를 생성자로 초기화하는 부분에서 에러가 생깁니다.
Could not autowire. No beans of 'MemberRepository' type found. 라고 나옵니다.
-
미해결단 2주간 키운 블로그로 월 80만원 용돈 벌기
후기남겼어요
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강의 잘 들었습니다 후기 남겼어요 메일 bida9525@naver.com입니다 소중한 자료 잘 사용하겠습니다
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
질문드립니다.
1. 기존의 WEB-INF/views의 역할을 resources/templates이 대체하는것인지 궁금합니다. (컨트롤러를 통해서만 접근할 수 있는지 여부 등) 2. AOP의 개념을 템플릿 레이아웃으로 구현한것이 맞는지 궁금합니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
link 인자 줄바꿈 질문입니다.
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"><link rel="stylesheet" th:href="@{/themes/smoothness/jquery-ui.css}"> 렌더링 될때 이렇게 줄바꿈 없이 나오는데요 이 부분 각 <link> 마다 줄바꿈 하는 방법은 없나요?
-
미해결코딩테스트 실전 모의고사(with C++) : 대기업 대비
이 문제를 굳이 분류하자면...
안녕하세요, 선생님. 이 문제를 다이나믹 기초 문제로 볼수 있을까요? 한번 구해놓은 오른쪽 방향 자료를 바탕으로 왼쪽 방향 자료를 업데이트 해나가니까요. 그런데 자료가 한번씩 밖에 쓰이지 않기에 다이나믹이라고 하기도 좀 그렇고, 굳이 분류를 하자면 이 문제는 어디에 속할까요?
-
미해결실전 HTML & CSS 강좌
두번째 예제에서 float: left
두번째 예제에서 p에 float : left 를 썼더니 문단이 아래로 내려가는데 왜 그런가요? 제 생각에는 p에 float : left 를 써주나 안써주나 결과가 같을 거라고 예상을 했었어요....
-
미해결리액트로 나만의 블로그 만들기(MERN Stack)
postDetail.category.categoryName 이 불러와지지 않네요..
나머지 postDetail.title이나 한단계 레벨로 내려가서 불러오는건 되는데 두단계 내려가는 postDetail.category.categoryName 이나 postDetail.comment.legth 두개만 불러와 지지가 않습니다.. 혹시나 서버 데이터가 느리게 들어와서 그런가 해서 저 위에 두개 데이터 불러오는거 지우고 나머지 데이터들만 불러오게 해놓고 사가에서 딜레이 1초를 뒀는데 데이터가 없다고 에러가 뜨는 대신 그냥 데이타가 들어와야하는 부분이 비어있게 렌더링이 됩니다. 정상적으로 로딩이 된경우 (저 위 두개 불러오는거 포기하면) 빠르게 한 3번 렌더링이 되는데 첫번째 렌더링때는 데이터가 없다고 뜨기는 합니다. 어떻게 해결해야될까요?ㅠㅠ
-
해결됨스스로 구축하는 AWS 클라우드 인프라 - 기본편
rds 강의내용이 강의설명이 많이 다릅니다.
mysql을 private subnet으로 구성하고 이를 이중화는 하는게 본 내용인줄 알고 쭉 강의를 들었는데 RDS 마지막 강의 지나가듯이 이중화는 안하고 이내용을 뛰어넘고 subnet은 변경하지도 못하는데... 초반의 강의설명과 일치된 강의 내용이 필요합니다. 맛보기강의를 듣고 필요한 강의라고 생각해서 쭉 들었는데 ;;;
-
미해결스프링 핵심 원리 - 기본편
configurableApplicationContext 질문
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.[질문 내용]안녕하세요 김영한 선생님, 항상 좋은 강의 감사드립니다. 다름이 아니라, 빈스코프 - 프로토타입 스코프 강의 7:00 쯤에서 다음과 같이 ac.close()를 불러서 @PreDestroy를 부를 때, applicationContext를 사용하고, ConfigurableApplicationContext를 안쓰셨는데, 전전강의(?) 쯤에 싱글톤 스코프는 종료시점까지 살아있기 때문에 ConfigurableApplicationContext를 써서 강제 종료(?)를 시켰던것으로 기억합니다. 그렇게 해야 PreDestory가 호출이 되었던 것으로 이해하였는데, 혹시 어떤 이유에서 해당 메서드의 호출이 잘 동작하는지 문의드립니다. 짐작으로는 Test 어노테이션 사용시, 테스트 끝에서 프로그램이 종료되면서 호출되는것인가 생각하는데 맞는지 잘 모르겠습니다..! 감사합니다.