묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
gradle vs maven
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]구글 트렌드에서 검색을 했을 때 maven 사용이 gradle보다 현저히 높게 사용된다고 나오는데 gradle을 사용하는 이유가 있을까요?!또한 둘에 대해 검색하면 gradle이 스펙상 좋다고 하는데 왜 gradle이 maven보다 사용이 더 적은건가요??
-
미해결PZM기반 실무중심 백엔드 부트캠프(프리트레이닝)
root-context가 다르게 나와서 복사하려는데 깃허브 어디로 들어가야 하나요?
root-context가 다르게 나와서 복사하려는데 깃허브 어디로 들어가야 하나요?
-
해결됨스프링 시큐리티 OAuth2
oauth2 적용시 cors 에러
안녕하세요 디테일한 강의 어렵지만 조금씩 잘 보고 있습니다.좋은 강의 만들어주셔서 감사합니다. 제가 실무에서 oauth2 로 google , naver 로그인 연동에 진행중에 있습니다.spring boot 3.x 버전이고 kotlin 으로 진행중에 있습니다. 현재 cors 에러가 나서 검색하다가https://www.inflearn.com/questions/1064449/authenticationentrypoint-%EB%A5%BC-%EA%B8%B0%EB%B3%B8-%EC%84%A4%EC%A0%95%EB%90%9C-login%EC%9D%B4-%EC%95%84%EB%8B%8C-react-%EC%9B%B9-%ED%8E%98%EC%9D%B4%EC%A7%80%EB%A1%9C-%EC%84%A4%EC%A0%95-%EC%8B%9C-cors-%EB%AC%B8%EC%A0%9C%EA%B0%80-%EC%A7%80%EC%86%8D%ED%95%B4%EC%84%9C-%EB%B0%9C%EC%83%9D%ED%95%A9 여기서말씀하신CorsConfigurationSource corsConfigurationSource() 적용해보았고정말 많은 수정을 하였지만 계속 cors 에러가 나고 있는상황입니다.현재 local 에서 작업테스트중이며front : localhost:3000backend : localhost:8080 현재 api 서버입니다. 인증이 필요없는 페이지에서는 axios 로 호출된 데이터가 잘 호출이됩니다.아래는 kotlin 으로만든 securityConfig 입니다.혹시 추가할 사항이 있을까요? 봐주셔서 감사합니다.( 별도의 WonCoinfig 클래스에 corsRegistry 도 추가되어 있습니다. ) package hurryup.hukbizibbackend.config import hurryup.hukbizibbackend.service.CustomOAuth2UserService import hurryup.hukbizibbackend.utils.JWTFilter import hurryup.hukbizibbackend.utils.JWTUtil import hurryup.hukbizibbackend.utils.OAuth2SuccessHandler import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity import org.springframework.security.config.http.SessionCreationPolicy import org.springframework.security.web.SecurityFilterChain import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter import org.springframework.security.web.authentication.logout.CookieClearingLogoutHandler import org.springframework.web.cors.CorsConfiguration import org.springframework.web.cors.CorsConfigurationSource import org.springframework.web.cors.UrlBasedCorsConfigurationSource @Configuration @EnableWebSecurity class SecurityConfig( private val customOAuth2UserService: CustomOAuth2UserService, private val oAuth2SuccessHandler: OAuth2SuccessHandler, private val jwtUtil: JWTUtil ) { // // private fun configureCors(corsCustomizer: CorsConfigurer<HttpSecurity>) { // corsCustomizer.configurationSource(corsConfigurationSource()) // } // // @Bean // fun corsConfigurationSource(): CorsConfigurationSource { // println("corsConfigurationSource") // val configuration = CorsConfiguration() // configuration.allowedOrigins = listOf("http://localhost:3000") // //configuration.addAllowedOrigin("*") // configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS") // //configuration.allowedHeaders = listOf("*") // configuration.allowedHeaders = listOf("Origin", "Content-Type", "Accept", "Authorization", "X-Requested-With", "X-XSRF-TOKEN", "X-Auth-Token", "X-Auth-Token-Expire", "X-Auth-Token-Refresh") // //configuration.exposedHeaders = listOf("Set-Cookie", "Authorization") // configuration.maxAge = 3600L // configuration.allowCredentials = true // // return CorsConfigurationSource { configuration } // } @Bean fun corsConfigurationSource(): CorsConfigurationSource { val config = CorsConfiguration() config.allowCredentials = true config.allowedOrigins = listOf("http://localhost:3000") config.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS") config.allowedHeaders = listOf("*") config.exposedHeaders = listOf("*") val source: UrlBasedCorsConfigurationSource = UrlBasedCorsConfigurationSource() source.registerCorsConfiguration("/**", config) return source } @Bean fun securityFilterChain(http: HttpSecurity): SecurityFilterChain { http //.cors { configureCors(it) } .cors { it.configurationSource(corsConfigurationSource()) } http .csrf { it.disable() } http .formLogin { it.disable() } http .httpBasic { it.disable() } http .addFilterAfter(JWTFilter(jwtUtil), UsernamePasswordAuthenticationFilter::class.java) http .oauth2Login { oauth2 -> oauth2.userInfoEndpoint { endpoint -> endpoint.userService(customOAuth2UserService) } .successHandler(oAuth2SuccessHandler) } http .logout { it.deleteCookies("Authorization") // 단순 쿠키삭제 // 이 메소드는 LogoutHandler 인터페이스를 구현한 CookieClearingLogoutHandler 객체를 로그아웃 핸들러로 추가합니다. // CookieClearingLogoutHandler는 생성자에서 받은 쿠키 이름들을 로그아웃 시 삭제합니다. // 이 메소드는 여러 개의 쿠키를 한 번에 삭제할 수 있으며, 추가적인 로그아웃 로직을 구현할 수 있습니다. .addLogoutHandler(CookieClearingLogoutHandler("Authorization")) } http .authorizeHttpRequests { auth -> auth.requestMatchers("/", "/login", "/swagger-ui/**", "/v3/**","/api/v1/users/" + "").permitAll() // root 경로는 모두허용 .anyRequest().authenticated() // 나머지는 인증 필요 } http .sessionManagement { session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS) } return http.build() } }
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
세션 만료 후 로그인 페이지로 자동 리다이렉트 설정 질문
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]안녕하세요?김영한님께서 만들어주신 로드맵 덕분에 스프링을 잘 이해하고 현업에서 잘 활용하고 있어서 너무 감사드립니다. 현업에서 스프링으로 개발을 하다가 한가지 궁금한게 있어서 문의 드립니다.세션이 만료가 되면 자동으로 로그인 페이지로 리다이렉트 해주는 스프링 내부 셋팅이 어디에 있나요?컨트롤러에서 직접 하고 있지는 않고요, 스프링 내부 어디에선가 해 주고 있는데요... 경험치가 부족해서 찾을 수가 없네요. jdk 1.8을 사용하면서 Spring Framework 4.3.12 를 사용하는것 같네요. 감사합니다.
-
해결됨[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)
3유형 데이터 전처리에 대해
예를 들어 회귀분석에서 설명변수 표준화, 이상치 처리, 반응변수 로그변환 등 전처리를 통해 모델 성능을 높일 수 있잖아요.전처리에 따라 계수추정치, p value가 달라질 수 밖에 없는데, 계수추정치와 p value를 묻는 문제에서는 전처리한 결과를 바탕으로 정답 작성하면 오답처리 되나요?3유형은 정답이 있다고 들었습니다. 사람마다 전처리 과정이 다 다를텐데 정답이 있을 수 있다는게 잘 이해가 안돼요. 아니면 3유형은 무조건 전처리 없이 풀어야 하나요??
-
미해결윤재성의 자바 기반 안드로이드 앱개발 Part 1 - UI Programming
New Project 생성 시 에러
안녕하세요. 본 강의 수강하고 있는 수강생입니다.New Project 생성 시 사진과 같은 에러가 발생하는데요제가 구글링으로 찾은 방법 다 해봐도 해결이 되지않습니다..도와주세요ㅜㅠ<error msg>Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=androidx.activity:activity:1.8.0, variantName=null, artifactFile=C:\Users\USER\.gradle\caches\modules-2\files-2.1\androidx.activity\activity\1.8.0\4266e2118d565daa20212d1726e11f41e1a4d0ca\activity-1.8.0.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=C:\Users\USER\Android_project\ViewBasic}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@630a097a)
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
인텔리제이 오류
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.버젼은 다 맞게 깔렸으며인텔리제이 커뮤니티 버젼으로 설치.2020년 3월 버전으로 설치.오류 해결 부탁드려요!
-
미해결처음 만난 리액트(React)
JSX인지 어떻게 알 수 있나요?
JavaScript 코드와 XML/HTML 코드가 결합된 JSX라는걸 어떻게 알 수 있나요? 자료형이나 변수를 통해 할 수 있는건가요?
-
미해결따라하며 배우는 리액트 A-Z[19버전 반영]
list컴포넌트 생성하기
List 컴포넌트 생성하기에서 props로 key={data.id}를 넘겨주는데 저기서는 사용하지 않는데 넘겨주어야 하나요? 빼도 상관 없나요??
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
로그에 traceId, spanId 모두 잘 찍히는데 traceId로 조회가 안 됩니다.
로그에 traceId, spanId 모두 잘 찍히는데 브라우저의 zipkin에서 traceId로 조회를 하면 no trace가 뜨네요. 스프링부트 3에 맞춰서 깃허브에 올려주신 자료 참조해서 디펜던시 맞게 설정하고 yml에도 올려주신 자료대로 수정했는데 이런 문제가 생기면 어떤 부분이 잘못된 걸까요?
-
해결됨코딩테스트 [ ALL IN ONE ]
스택 안에 왜 -1과 1이 들어가는지 궁금합니다.
안녕하세요 코딩 테스트를 공부하고 있는데 이해가 안 되는 부분이 있어 글을 올립니다.5행에 있는[-1]이 cur_day를 가리키고[1]이 cur_temp를 가리키는 걸로 이해를 하고 있습니다.궁금한 점: 제가 이해한 부분이 맞는다면 왜 스택 부분에 -1과 1이 들어가는지 궁금합니다.
-
미해결
Overseeing Nursing Instruction: Looking at the Impact of Distance Schooling on Vital Tests
Presentation:In the domain of nursing training, the mix of web based learning stages has become progressively pervasive, offering understudies adaptability and openness more than ever. Among the bunch of appraisals inside nursing educational plans, Nurs FPX 4050 Evaluation 3, NHS FPX 4000 Evaluation 4, and Nurs FPX 4030 Appraisal 3 stand apart as critical achievements in assessing understudies' capability and comprehension of fundamental nursing ideas. In this paper, we dive into the extraordinary impacts of web based learning on these appraisals, looking at how virtual stages improve growth opportunities, advance joint effort, and eventually shape the fate of nursing schooling. Through a far reaching examination, we mean to reveal insight into the diverse effects of web based learning in exploring the intricacies of nursing the scholarly world.Smoothing out Nursing Instruction: Take Your Class On the webWith the appearance of take my online nursing class, the conventional obstructions to getting to quality nursing courses have been altogether diminished. Presently, understudies have the potential chance to take their nursing classes web based, offering a degree of comfort that was up 'til now unfathomable. Whether it's adjusting work, family responsibilities, or different obligations, internet nursing classes give adaptability, permitting understudies to tailor their advancing around their bustling timetables.Additionally, taking nursing classes online doesn't mean thinking twice about the nature of instruction. Numerous legitimate organizations offer thorough web based nursing programs, highlighting drawing in satisfied, intelligent conversations, and active growth opportunities. Through sight and sound assets, computer experiences, and constant educator criticism, understudies can get vigorous schooling that sets them up for the difficulties of the nursing calling.By embracing web based nursing classes, understudies can expand their learning potential while limiting the calculated obstacles related with conventional homeroom settings. With simply a dependable web association and a committed mentality, hopeful medical caretakers can set out on their instructive excursion from the solace of their own homes, enabling them to accomplish their intellectual and expert objectives.Investigating the Elements of Nurs FPX 4050 Appraisal 3Nurs FPX 4050 Assessment 3 is a pivotal component in nursing education, focusing on the intricacies of patient care management. This nurs fpx 4050 assessment 3 delves into the multifaceted aspects of nursing practice, requiring students to demonstrate their ability to assess, plan, implement, and evaluate patient care strategies effectively. With an emphasis on critical thinking and clinical decision-making, students are challenged to navigate complex scenarios and apply evidence-based practices to address diverse patient needs.One of the notable features of Nurs FPX 4050 Assessment 3 is its interactive nature, which simulates real-world healthcare settings. Through virtual patient simulations and case studies, students are immersed in dynamic clinical scenarios, enabling them to refine their clinical reasoning skills and enhance their confidence in handling diverse patient populations. Additionally, the assessment fosters collaborative learning opportunities, as students engage in discussions, peer evaluations, and reflective exercises, fostering a supportive learning environment conducive to professional growth.Moreover, Nurs FPX 4050 Assessment 3 is designed to align with current healthcare trends and standards, ensuring that students are equipped with the knowledge and skills necessary to thrive in today's healthcare landscape. By incorporating contemporary topics, such as patient safety, interprofessional collaboration, and healthcare technology, the assessment prepares students to adapt to evolving healthcare challenges and emerge as competent and compassionate nursing professionals.Transformative Impact of Online Platforms in NHS FPX 4000 Assessment 4The emergence of online platforms has revolutionized the landscape of nursing education, and nowhere is this transformation more evident than in nhs fpx 4000 assessment 4. Through the utilization of virtual classrooms and interactive modules, students are presented with a dynamic learning environment that transcends the limitations of traditional methods. This innovative approach not only facilitates greater engagement but also fosters collaborative learning among students, enriching their educational experience.Moreover, the integration of online platforms in NHS FPX 4000 Assessment 4 enables instructors to employ diverse assessment techniques, catering to the individual needs and learning styles of students. From quizzes and simulations to case studies and discussions, the versatility of online tools empowers educators to design assessments that promote critical thinking, problem-solving, and clinical decision-making skills essential for nursing practice.Furthermore, by embracing online platforms in NHS FPX 4000 Assessment 4, nursing programs can ensure the continuous development and adaptation of curricula to meet the evolving demands of the healthcare landscape. Through real-time feedback mechanisms and data analytics, educators can assess student progress effectively, identify areas for improvement, and tailor instructional strategies accordingly, ultimately enhancing the quality of nursing education and preparing students for success in their future careers.Maximizing Learning Outcomes: Nurs FPX 4030 Assessment 3Nurs FPX 4030 Assessment 3 presents a unique opportunity for nursing students to delve into complex case studies and apply theoretical knowledge to practical scenarios. This assessment focuses on critical thinking, clinical reasoning, and decision-making skills essential for nursing practice. Through the utilization of online class services, students can engage in interactive case discussions, collaborate with peers, and receive real-time feedback from instructors, thus enhancing their learning experience.The integration of online platforms in nurs fpx 4030 assessment 3 facilitates a dynamic learning environment where students can access resources, participate in virtual simulations, and conduct self-assessments at their own pace. Additionally, the asynchronous nature of online classes allows for greater flexibility, accommodating the diverse schedules and learning preferences of nursing students. By leveraging these technological tools, educators can optimize student engagement and foster a deeper understanding of complex nursing concepts.Moreover, online class services offer a repository of educational materials, including multimedia resources, journal articles, and practice quizzes, augmenting the learning resources available to nursing students for Nurs FPX 4030 Assessment 3. This comprehensive approach not only enriches the educational experience but also empowers students to take ownership of their learning journey, ultimately preparing them for the dynamic challenges they will encounter in their nursing careers.In conclusion, the integration of online nursing class services has revolutionized the landscape of nursing education, offering a myriad of benefits for both students and educators alike. Through the examination of assessments such as Nurs FPX 4050 Assessment 3, NHS FPX 4000 Assessment 4, and Nurs FPX 4030 Assessment 3, it is evident that online platforms have facilitated an enriched learning experience characterized by flexibility, interactivity, and accessibility. These assessments have provided nursing students with opportunities to develop critical thinking, clinical reasoning, and decision-making skills essential for their future practice. By harnessing the power of technology, educators can create dynamic learning environments that cater to the diverse needs of students, while also fostering collaboration, engagement, and self-directed learning. Moving forward, continued exploration and utilization of online class services will be paramount in advancing nursing education and preparing future generations of nurses to meet the evolving demands of healthcare.
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
안드로이드에서만 테마별 색상이 적용안되는 이유
안드로이드 기기에서, 테마에 해당하는 색상을 못읽는 에러가 발생합니다!!iOS 같은 경우는 정상적으로 다크모드가 잘 동작합니다!!! 어떤 부분이 문제인지 알고 싶습니다. https://github.com/dydals3440/MatZip
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
useEffect 의존성 배열 문제
해당 강좌 그대로 진행하다가, 의존성 배열 문제로 인해 무한 렌더링이 발생했습니다.강사님의 깃허브 코드를 바탕으로, 강좌와 다르게 전역 상태로 관리를 진행하여 해결을 하긴 했습니다.어떠한 문제로 인해, 무한 렌더링이 발생되고, 이럴 경우에 어떤 방식으로 접근해서 해결하는지에 대한 접근 방식에 대해 알고 싶습니다!!!web과 다르게 RN은 디버깅하기가 생각보다 쉽지않네요... ㅠㅠ
-
미해결설계독학맛비's 실전 Verilog HDL Season 2 (AMBA AXI4 완전정복)
m_valid와 m_ready의 OR처리 질문입니다.
=================현업자인지라 업무때문에 답변이 늦을 수 있습니다. (길어도 만 3일 안에는 꼭 답변드리려고 노력중입니다 ㅠㅠ)강의에서 다룬 내용들의 질문들을 부탁드립니다!! (설치과정, 강의내용을 듣고 이해가 안되었던 부분들, 강의의 오류 등등)이런 질문은 부담스러워요.. (답변거부해도 양해 부탁드려요)개인 과제, 강의에서 다루지 않은 내용들의 궁금증 해소, 영상과 다른 접근방법 후 디버깅 요청, 고민 상담 등..글쓰기 에티튜드를 지켜주세요 (저 포함, 다른 수강생 분들이 함께보는 공간입니다.)서로 예의를 지키며 존중하는 문화를 만들어가요.질문글을 보고 내용을 이해할 수 있도록 남겨주시면 답변에 큰 도움이 될 것 같아요. (상세히 작성하면 더 좋아요! )먼저 유사한 질문이 있었는지 검색해보세요.잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.================== 안녕하세요 handshake module에서 ~m_valid와 m_ready가 or처리 되어있는데 이부분이 궁금합니다.m_valid가 0이라면 master에서 data를 전송할 준비가 안되었다는것이고m_ready는 slave side에서 data의 전송준비를 나타내는것으로 알고있는데, m_valid와 m_ready가 or로 묶여있어도 되지 않나요?m_valid가 1이고 m_ready가1일때 s_ready로 1이 전송되도 handshake가 일어날수있고, 기능적으로 문제가 없을듯 한데 왜 or 처리를 하는지 궁금하고, 왜 m_valid에 인버터를 붙인지 궁금합니다.또한 학습을 하며 이해를 돕기위해 작성하였는데 제가 만든것인데 이처럼 동작하는것이 맞나요??
-
미해결견고한 결제 시스템 구축
테스트 시 오류
안녕하세요 강사님테스트 진행 시에 오류가 발생해서강사님께서 올려주신 샘플 프로젝트에서도 똑같이 테스트 진행해보았으나 동일한 오류가 발생합니다혹시 테이블 제약조건 변경이 필요한건가요..?제가 테이블 생성 시 사용했던 스크립트와 오류메세지 전달드립니다감사합니다 could not execute statement [Cannot add or update a child row: a foreign key constraint fails (`test`.`ledger_entries`, CONSTRAINT ledger_entries_ibfk_1 FOREIGN KEY (`transaction_id`) REFERENCES ledger_transaction (`id`))] [insert into ledger_entries (account_id,amount,transaction_id,type) values (?,?,?,?)]; SQL [insert into ledger_entries (account_id,amount,transaction_id,type) values (?,?,?,?)]; constraint [null]
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
db 컬럼 이름 형식
JPA 관련 질문 드립니다.db 테이블의 컬럼 이름을 만들 때 isSold 라는 컬럼을 케멀케이스 형식으로 만들었습니다.그런데 이러한 함수를 만들어서 사용할려고 하니 계속 에러가 떴습니다.이러한 에러가 나와서 살펴보니 is_sold라는 컬럼을 찾는 것 같은데 저는 IsSold라고 컬럼명을 지어서 오류가 나는 거라고 생각이듭니다.제가 궁금한점은1. jpa가 스네이크케이스 형식으로 컬럼명을 자동으로 찾는 것 같아 오류가 나오는 걸로 생각이 드는데 이게 맞을까요?2. 그럼 db의 컬럼 명을 처음 만들 때 컬럼명이 길 경우 스네이크케이스 형식으로 만들어야 할까요? 보편적으로 어떻게 하는지 궁금합니다.
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
의존성 배열에 filterItems를 넣으면 무한렌더링이 발생합니다.
import {useEffect, useState} from 'react'; import {queryKeys, storageKeys} from '@/constants'; import type {Marker} from '@/types'; import {getEncryptedStorage, setEncryptedStorage} from '@/utils'; import queryClient from '@/api/query-client'; const initialFilters = { RED: true, YELLOW: true, GREEN: true, BLUE: true, PURPLE: true, '1': true, '2': true, '3': true, '4': true, '5': true, }; function useMarkerFilterStorage() { const [filterItems, setFilterItems] = useState<Record<string, boolean>>(initialFilters); const set = async (items: Record<string, boolean>) => { queryClient.invalidateQueries({ queryKey: [queryKeys.MARKER, queryKeys.GET_MARKERS], }); await setEncryptedStorage(storageKeys.MARKER_FILTER, items); setFilterItems(items); }; const transformFilteredMarker = (markers: Marker[]) => { return markers.filter(marker => { return ( filterItems[marker.color] === true && filterItems[String(marker.score)] === true ); }); }; useEffect(() => { (async () => { const storedData = (await getEncryptedStorage(storageKeys.MARKER_FILTER)) ?? initialFilters; setFilterItems(storedData); })(); }, [filterItems]); return {set, items: filterItems, transformFilteredMarker}; } export default useMarkerFilterStorage;의도대로 items의 값을 set으로 변경하면 필터링이 정상적으로 동작하지만 무한렌더링이 발생합니다.무한 렌더링을 막기 위해 의존성 배열을 지우고 쿼리키를 무효화하는 방법등 많은 시도를 해봤지만 제대로 동작하지 않네요. 혹시 현재 진행된 강의에서 무한 렌더링을 해결할 수 있는 방법이 있을까요?
-
미해결[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core
Part 1
Part1 수강중인데 혹시 이까지만 해도 초기에 나온 로드맵을 다 다루게 되는건가요? Part1은 어느 범위까지를 다루게 되는건지요 @.@?
-
미해결견고한 결제 시스템 구축
JpaLedgerTransactionMapper.class
강사님 샘플 프로젝트에서 발견한 오타 제보드립니다!!referenceType = ledgerTransaction.referenceType,referenceType = ledgerTransaction.referenceType.name,