묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결코드로 배우는 React 19 with 스프링부트 API서버
writer content
서버 쪽 이랑 이름이 다르면 데이터 바인딩이 안되지 않나요?
-
미해결[핵집] 2025 빅데이터 분석기사(필기)_과목 1~2
통합 강의안 요청
안녕하세요 통합 강의안 요청드립니다. res786@naver.com
-
미해결김영한의 실전 자바 - 중급 2편
collection 디렉토리 안에 map 포함
collection 인터페이스에 map 인터페이스가 속하지 않는다고 말씀해주셨는데 디렉토리를 collection에 만드신 이유가 있을까요? 검색해보니 Map을 컬렉션이라고 보기도 하지만 자바에선 컬렉션에 해당하지 않는다고 애매하게 나오네요...
-
미해결김영한의 실전 자바 - 고급 1편, 멀티스레드와 동시성
시분할은 Time Slicing이 아닌가요?
PPT에는 시분할이 Time Sharing이라고 표기되어있는데, '분할'이라는 표현에 'Sharing'이 붙어 뭔가 이상해 검색해보니 Time Slicing이라는 표현이 따로 있는 것 같더라고요. 다른 의도가 있어서 Time Slicing이라고 하신건가요?
-
미해결
How IT Professionals Can Train Their Dogs Using Smart Devices
In the fast-paced world of IT, balancing work responsibilities with pet care can be challenging. However, smart devices and technology can make it easier to train and manage your dog’s behavior. This guide explores how IT professionals can leverage technology to address common dog behavioral issues that appear in dog breeds effectively.1. Using Smart CollarsSmart collars are a fantastic tool for tracking your dog’s activity levels, location, and health metrics. These collars can also be used for training purposes.How to Use:Activity Tracking: Monitor your dog's daily exercise to ensure they are getting enough physical activity, which can help reduce behavioral problems like excessive barking and chewing.Training Alerts: Some smart collars come with features that allow you to send gentle vibrations or sounds to your dog, which can be used to reinforce training commands remotely.2. Interactive Pet CamerasInteractive pet cameras allow you to monitor and interact with your dog when you’re not home. They are particularly useful for addressing separation anxiety and ensuring your dog’s well-being.How to Use:Monitor Behavior: Keep an eye on your dog’s activities and behavior through live video feeds.Two-Way Communication: Talk to your dog through the camera to provide comfort and reduce anxiety.Treat Dispensing: Some cameras have treat-dispensing features, allowing you to reward your dog for good behavior even when you’re not home.3. Automated Feeders and Water DispensersEnsuring your dog has regular access to food and water is crucial, especially when you have a busy work schedule. Automated feeders and water dispensers can help maintain a consistent feeding routine.How to Use:Scheduled Feeding: Program the feeder to dispense food at regular intervals, ensuring your dog has a stable eating schedule.Portion Control: Use the feeder to control portion sizes, which is helpful for managing your dog’s weight and health.4. Smart ToysSmart toys can provide mental stimulation and entertainment for your dog, reducing boredom and destructive behaviors.How to Use:Puzzle Toys: Invest in interactive puzzle toys that challenge your dog’s problem-solving skills and keep them engaged.Automated Fetch Toys: These toys can keep your dog active and entertained by automatically launching balls for them to fetch.5. Training AppsThere are numerous training apps available that offer step-by-step guides, tips, and tricks for training your dog. These apps can be a valuable resource for IT professionals looking to efficiently train their pets.How to Use:Training Plans: Follow customized training plans that suit your dog’s breed, age, and behavior.Progress Tracking: Keep track of your dog’s progress and milestones through the app.Virtual Trainers: Some apps offer access to professional trainers for advice and support.6. Smart Home IntegrationIntegrating smart home devices can create a comfortable and safe environment for your dog. From automated lighting to temperature control, these devices can enhance your dog’s living space.How to Use:Automated Lighting: Use smart lights to ensure your dog is not left in the dark, which can cause anxiety.Temperature Control: Maintain a comfortable temperature in your home with smart thermostats, especially during extreme weather conditions.Security Systems: Use smart security systems to monitor your home and keep your dog safe from potential hazards.7. Emotional Support Animal (ESA) LettersFor those facing significant challenges with their dog's behavior or emotional well-being, considering an ESA letter might be beneficial. An ESA letter provides legal documentation that your dog serves as an emotional support animal, offering comfort and support in various situations.How to Use:Housing Benefits: An ESA letter can help you secure pet-friendly housing and avoid additional pet fees.Travel Accommodations: It can also make traveling with your dog easier, as airlines often accommodate ESAs differently.Emotional Support: For dogs with severe behavioral issues, an ESA letter acknowledges their role in providing emotional stability to their owner, which can be crucial in stressful environments.Training and managing your dog’s behavior can be seamlessly integrated into your tech-savvy lifestyle with the help of smart devices. From smart collars and interactive pet cameras to automated feeders and training apps, these tools can make a significant difference in your dog's behavior and well-being. Leveraging technology allows you to provide the best care for your furry friend, even with a busy IT schedule.FAQsHow can smart collars help with dog training?Smart collars can track your dog’s activity levels and health metrics, and some have features that allow you to send gentle vibrations or sounds to reinforce training commands remotely.What are the benefits of using interactive pet cameras?Interactive pet cameras allow you to monitor your dog’s behavior, communicate with them, and dispense treats remotely, which can help reduce separation anxiety and reinforce good behavior.How do automated feeders and water dispensers work?Automated feeders and water dispensers can be programmed to dispense food and water at regular intervals, ensuring your dog has a consistent feeding schedule and access to necessities even when you’re busy.What types of smart toys are available for dogs?There are various smart toys, including puzzle toys that challenge your dog’s problem-solving skills and automated fetch toys that keep them active and entertained.Can training apps replace professional dog trainers?While training apps provide valuable resources and guidance, they are best used as a supplement to professional training. Some apps do offer access to professional trainers for additional support.How can smart home devices improve my dog’s living environment?Smart home devices like automated lighting, temperature control, and security systems can create a comfortable and safe environment for your dog, reducing anxiety and enhancing their well-being.Are these smart devices suitable for all dog breeds?Yes, smart devices can be beneficial for all dog breeds. However, it’s essential to choose products that suit your dog’s specific needs, size, and behavior.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
빈 연결 에러
Could not autowire. There is more than one bean of 'MemberRepository' type.Beans:memoryMemberRepository (MemoryMemberRepository.java) springDataJpaMemberRepository (SpringDataJpaMemberRepository.java)<스프링 데이터 JPA> 강의에서 테스트 코드를 실행 했을때 동일한 에러가 뜨는데 해결 방법을 찾지 못하고 있습니다. 도와주세요 ..동일한 타입의 빈이 중복 등록되어 발생한 문제임을 알고 있습니다. 어디서 중복 등록이 된 건지 찾지 못하고 있어요
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
application.properties
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]org.h2.Driver에서 오류가 발생하는데 이는 어떻게 수정해야하나요?
-
미해결React + GPT API로 AI회고록 서비스 개발 (원데이 클래스)
임폴트가 안됩니다
import React from 'react'; import Counter from './components/Counter'; // Counter 컴포넌트의 경로를 정확히 입력 function App() { return ( <> <Counter /> </> ); } export default App; 이런 오류가 뜹니다 버전이 달라서일까요?노드는 최신버전을 쓰고있습니다.
-
미해결스프링 DB 2편 - 데이터 접근 활용 기술
REQUIRES_NEW인데 rollback되는 이유가 궁금합니다.
@Service @RequiredArgsConstructor @Transactional public class UserService { public void createUser(CreateUserRequest request) { Users users = firebaseUsersRepository.findUsersByFirebaseUid(request.getFirebaseUid()) .orElseThrow(() -> new BusinessException("Not Found User", HttpStatus.INTERNAL_SERVER_ERROR)); User user = User.builder() .name(users.getDisplay_name()) .firebaseUid(request.getFirebaseUid()) .build(); userRepository.save(user); } } @Component @RequiredArgsConstructor @Transactional(propagation = Propagation.REQUIRES_NEW) public class BaseEntityAuditAware implements AuditorAware<User> { private final UserRepository userRepository; @Override public Optional<User> getCurrentAuditor() { try { return userRepository.findById(ApiLogger.getRequestCallerId()); } catch (Exception e) { return Optional.empty(); } } }createUser에서 userRepository.save(user)를 호출할때,JpaAudit기능을 이용하기 위해 구현해놓은 BaseEntityAuditAware에서 유저정보를 가져온 후, 실제 쿼리를 날립니다.이때, 전파속성이 REQUIRE_NEW이며, 발생한 모든 예외를 catch했으므로이 함수를 호출한 부모 함수로 해당 예외가 전달되지 않을 것이기때문에 rollback이 되지 않으리라 기대했지만실제로는 unexpectedrollbackexception이 발생하며 롤백이 되었습니다.null을 반환하는건 문제가 아닌것이,실제로 예외를 발생시키지 않으려고 위 코드를 아래와같이 변경하였더니 null값으로 정상적으로 insert쿼리가 날라갔습니다. @Override public Optional<User> getCurrentAuditor() { Long callerId = ApiLogger.getRequestCallerId(); if (callerId == null) return Optional.empty(); return userRepository.findById(ApiLogger.getRequestCallerId()); }어느부분이 잘못된것이며 제가 오개념을 잡고있는 부분이 어디일까요?
-
미해결스프링 핵심 원리 - 기본편
CoreApplication 실행 오류
=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]web 라이브러리를 build.gradle에 추가한 후 Core메서드를 실행했는데 위 사진처럼 오류가 뜨더라구요... 3.2.X부터 build tools를 인텔리제이가 아니라 gradle로 설정해서 동작하면 된다고 하셨던 것 같은데, 둘 다 바꿔서 실행했는데도 안되고 도저히 해결 방법을 모르겠네요... 보통 버전이 올라갈 때마다 하위 버전에서 실행됐던 것도 잘 동작하게 만들어야 하는 게 아닌가 답답하기도 하고 그래요ㅠㅠ
-
해결됨[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
"Restaurant Pagination 요청해보기" 09:45에서 일시적으로 snapshot.hasData:: false 가 나오는 현상에 대한 질문입니다.
안녕하세요."Restaurant Pagination 요청해보기" 09:45까지 선생님의 강의 따라서 잘 진행하고 있습니다.restaurant_screen.dart의 FutureBuilder<List> 내부에서 snapshot.hasData를 print하면 다음과 같은 결과를 얻었습니다.실행환경은 윈도우의 안드로이드 스튜디오를 사용하고 있습니다.log fileI/flutter (10452): -------- in RestaurantScreen --------I/flutter (10452): snapshot.error:: nullI/flutter (10452): snapshot.data:: nullI/flutter (10452): snapshot.hasData:: falseW/WindowOnBackDispatcher(10452): sendCancelIfRunning: isInProgress=false callback=io.flutter.embedding.android.FlutterActivity$1@a3bcdaaD/EGL_emulation(10452): app_time_stats: avg=24.92ms min=12.78ms max=289.52ms count=40I/flutter (10452): -------- in RestaurantScreen --------I/flutter (10452): snapshot.error:: nullI/flutter (10452): snapshot.data:: [{id: 5ac83bfb-f2b5-55f4-be3c-564be3f01a5b, name: 불타는 떡볶이, thumbUrl: /img/떡볶이/떡볶이.jpg, tags: [떡볶이, 치즈, 매운맛], priceRange: medium, ratings: 4.53, ratingsCount: 100, deliveryTime: 15, deliveryFee: 2000}, {id: 15480ad3-892f-50ce-ab39-540c34c6fb5a, name: 매콤 멕시칸, thumbUrl: /img/멕시칸/야채타코.jpg, tags: [멕시칸, 매콤, 할라피뇨], priceRange: expensive, ratings: 4.54, ratingsCount: 100, deliveryTime: 30, deliveryFee: 0}, {id: cf11d36a-7c61-5105-8306-5c8c7ff2c140, name: 엄마손 볶음밥, thumbUrl: /img/볶음밥/새우볶음밥.jpg, tags: [분식, 볶음밥, 김치], priceRange: cheap, ratings: 4.53, ratingsCount: 100, deliveryTime: 20, deliveryFee: 3000}, {id: 4729bd37-8927-5150-b036-395da7e7bb42, name: 신선 코팩 스시, thumbUrl: /img/스시/중간모듬스시.jpg, tags: [스시, 일식, 연어], priceRange: expensive, ratings: 4.54, ratingsCount: 100, deliveryTime: 30, deliveryFee: 0}, {id: 4fcf09a5-03ee-5a2e-9806-110285030c8I/flutter (10452): snapshot.hasData:: true잠시, if (!snapshot.hasData) { return Container(); }위 코드가 실행이 되고, 또 다시 RestaurantScreen Class가 호출되어 return ListView.separated() 로직이 실행되는 것 같습니다.SplashScreen Class의 initState() 함수에서 RootTab Class로 호출하고,RootTab Class에서 RestaurantScreen Class를 호출하는 로직으로 파악되데 원인을 잘 모르겠습니다.감사합니다.
-
미해결
리액트에서 모달 팝업이 너무 위에서
사진 보시면 아시겠지만 위에 부분이 짤려서 나오네요 ㅜㅜㅜ 스크롤도 끝까지 올려봤어요!!위에 멘트가 나와야할 부분이 안보여서 전체적으로 화면설정을 잘못한건지모달 리액트 부트스트랩오륜지 모르겠네요 ㅜㅜ
-
해결됨손에 익는 Next.js - 공식 문서 훑어보기
next.js 에서 서버 컴포넌트 비중을 늘리는 이유
1. 강사님께서 올려주신 답변들을 봤습니다. "공식 문서에서 클라이언트 컴포넌트를 트리의 끝에 보내라고 권한다. 서버 컴포넌트를 최대한 활용하기 위한 권장 사항이라고 이해하시면 좋다."이라고 봤는데 프로젝트를 서버 컴포넌트의 비중을 늘린다면 이점은 무엇인가요? 2. 서버 컴포넌트의 비중을 늘리면 번들 크기의 감소로 사용자 경험을 최적화 하는 것이라서 next.js를 사용하는 것인가요?
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
Spring Security는 왜 필터를 사용할까요?
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]인터셉터는 필터에 비해 다양한 기능을 제공한다고 하였는데 왜 Spring Security는 필터로 구현되었을까요?Spring Security가 MVC 뿐 아니라 다른 애플리케이션에도 활용되기 때문에 의존성을 줄이기 위함일까요?그 외에도 인터셉터가 필터에 비해 갖는 이점이 궁금합니다!
-
미해결애플리케이션 배포 자동화와 CI/CD
stage view 가 안보여요
지금 빌드 했을때 강의화면에서 보여지는 Stage view 화면이 안나오는데 설정같은게 따로 있을까요?
-
미해결스프링 시큐리티 완전 정복 [6.x 개정판]
메소드 기반 커스텀 AuthorizationManager 구현 관련 질문
안녕하세요 강사님좋은 강의 감사드립니다.해당 영상보면서 따라해보고 있는데 시큐리티 버젼이 달라서 그런건지 원인은 잘 알 수 없지만 @PreAuthorize(value="") 이렇게 설정하면 에러가 발생합니다. 제가 작성한 코드는 다음과 같은데 이유를 알 수 있을까요?강의와 다른점은 저는 @PreAuthorize 어노테이션을 컨트롤러에 선언했습니다.확인해주시고 답변 주시면 정말 감사드리겠습니다.@Configuration @EnableWebSecurity @EnableMethodSecurity(prePostEnabled = false) public class CustomMethodAuthorizationManagerConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests(auth -> auth .anyRequest().authenticated()) .formLogin(Customizer.withDefaults()) .csrf(AbstractHttpConfigurer::disable) ; return http.build(); } } @EnableMethodSecurity(prePostEnabled = false) @Configuration public class MethodSecurityConfig { @Bean @Role(BeanDefinition.ROLE_INFRASTRUCTURE) public Advisor preAuthorize() { return AuthorizationManagerBeforeMethodInterceptor.preAuthorize(new MyPreAuthorizationManager()); } @Bean @Role(BeanDefinition.ROLE_INFRASTRUCTURE) public Advisor postAuthorize() { return AuthorizationManagerAfterMethodInterceptor.postAuthorize(new MyPostAuthorizationManager()); } }MyPostAuthorizationManager와 MyPreAuthorizationManager는 강의의 코드와 동일합니다.@RestController @RequestMapping("/method/custom") @RequiredArgsConstructor public class CustomMethodController { @GetMapping("/admin") @PreAuthorize(value = "") public String admin() { return "admin"; } @GetMapping("/user") @PostAuthorize(value = "isAuthenticated()") public MethodAccountDTO user(String name) { return new MethodAccountDTO(name, false); } }
-
미해결'이것이 리눅스다' 저자의 Red Hat CentOS7 리눅스 서버&네트워크 강좌
yum대체 가능할까요>?
yum으로 받는 파일 yum으로 설치안하고 따로 파일을 받아서 mobaXterm으로 넣는것도 가능할까요?
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
node도 설치하고 nvm도 설치하시는 이유는 뭔가요?
"[1-2] 맥-IOS 환경 설정"을 보고 있습니다. 저는 node를 설치하지 않고, nvm만 설치해서 사용하고 있는데요. 강사님께서는 brew install node 이후에 nvm을 설치하시네요. 저는 이렇게 하면 글로벌 node가 있고, nvm도 있는거라 혹시 꼬일까봐 node 설치 없이 nvm만 설치했는데요. 강사님 의견도 궁금합니다.
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
피그마 파일도 직접 만드신거에요?
서버랑 피그마 파일도 직접 제작하신건가요? 강사님 정말 대단하시네요. 강사님 처럼 되려면 어떻게 해야 하나요? (어떻게 셋 다 잘하나요?)
-
미해결설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
frequency 혼용
안녕하세요 🙂[1. 질문 챕터] : eg) 몇 장, 몇 분 몇 초 쯤. or 수강생 분들이 봤을 때 어디구나?! 할 수 있게 표기 부탁 드려요.[2. 질문 내용] : eg) 질문 내용을 자유롭게 작성해주시면 되겠습니다 🙂[3. 시도했던 내용, 그렇게 생각하는 이유] : eg) 설치영상은 이렇게 시도했는데 안되더라 or 본인의 생각을 적어주세요. (실습 내용 중에 이해가 안되거나 잘못된 내용이 있는데, 이러 이러한 근거로 나는 이렇게 생각합니다.) ==================[1. 질문 챕터] : [Verilog HDL/FPGA 외전1 - 시계만들기] Chapter 1. 1초 만들기 3분~3분 25초경[2. 질문 내용] : input clock freq가 100Mhz인데 i_freq값을 10M으로 준다는거에서 둘다 freq인데 각각이 뭘 의미한다는건지 너무 헷갈립니다.[3. 시도했던 내용, 그렇게 생각하는 이유] : i_freq가 현재 입력되는 clock의 freq값이라고 설명하셨는데 그럼 현재 입력되는 clock의 freq가 input clock freq와 달라질 수 가 있나요?개인적으로 input clock freq는 실제 Clock 주파수 즉 Clock이 1초에 몇번 진동하는지를 말하는 것 같고 i_freq가 1초에 tick되는 회수를 조정하기위해서 제가 입력해주는 값이라고 이해했는데 그렇다면 현재 입력되는 clock의 freq값이라고 설명하신 부분이랑 설명이 좀 달라지는 것 같습니다.