inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

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

안녕하세요 JPA 조회에서 Lock관련 질문 드립니다.

미해결

실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화

H2 혹은 Mysql DB를 기준으로(Mysql의 기본 트랜잭션 격리 레벨일때) 트랜잭션이 걸린 메서드 에서 JPA에서 제공하는 findById()메서드를 통해 엔티티를 조회한다면, 별도의 락 모드를 걸지 않아도 조회시 S Lock은 걸리지 않나요? 동시성 문제를 해결하다 질문 납겨봅니다. 또 한 트랜잭션 내 에서 조회 이후 update쿼리를 발생 시키면 SLock을 걸고 조회 -> XLock을 걸고 update이렇게 발생되는걸까요...? 답변 주시면 감사하겠습니다. (__)

  • spring-boot
  • spring
  • java
  • JPA
haru 댓글 1 좋아요 0 조회수 366

안녕하세요 강사님 Lock관련 질문 드립니다.

미해결

재고시스템으로 알아보는 동시성이슈 해결방법

H2 혹은 Mysql DB를 사용할때 트랜잭션 기본 격리 수준에 의해 트랜잭션이 걸린 메서드 에서 JPA에서 제공하는 findById()메서드를 통해 엔티티를 조회한다면, 별도의 락 모드를 걸지 않아도 S Lock은 걸리지 않나요? 다른 스레드에서 수정을 위한 XLock을 걸 수 없지 않나요? 동시성 문제를 해결하다가 고민이 생겨 질문 드립니다. 또 그렇다면 select로 엔티티를 조회하고, 해당 엔티티의 재고를 update 하는 사이에 Lock이 걸리게 되는걸까요??

  • java
  • spring
  • 동시성
hiroh2ro 댓글 1 좋아요 0 조회수 248

웹뷰앱 만드는 자세한 방법이 궁금합니다.

미해결

iOS/Android 앱 개발을 위한 실전 React Native - Basic

웹뷰앱 만드는 자세한 방법이 궁금합니다. (혹시, 강의에 이미 내용이 있다면, 어느 회차 부분을 참고 할 수 있을까요~?)

  • 리액트네이티브
  • 웹뷰앱
  • react
  • 하이브리드앱
  • react-native
  • es6
tkdalsfe 댓글 0 좋아요 0 조회수 450

스프1,2 먼저 수강하여도 무방할까요?

미해결

[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]

선생님 안녕하세요 나프1,2 + 스프1,2 다 수강할 예정이긴 한데 우선 스프링쪽으로 취업이 급합니다. 하지만 전체적인 개념이 잘 안 잡혀있는 상황인데 스프1,2를 먼저 들으면 잘 이해가 안될까요? 시간이 걸리더라도 나프를 먼저 듣는게 나을까요?

  • ajax
  • pojo
  • mysql
  • jsp
  • MVC
경민 댓글 1 좋아요 0 조회수 321

안녕하세요 런타임에러 뜨는 이유좀 알수 있을까요 ??

미해결

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

import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<Character,Integer> map1 = new HashMap<>(); String str1 = sc.next(); String str2 = sc.next(); String answer = "YES"; for (char i : str1.toCharArray()){ map1.put(i,map1.getOrDefault(i,0)+1); } for (char i : str2.toCharArray()){ if (!map1.containsKey(i)|| map1.get(i)==0) { answer="NO"; } map1.put(i,map1.get(i)-1); } System.out.println(answer); } }

  • java
  • 코테 준비 같이 해요!
qheogus55 댓글 1 좋아요 0 조회수 594

Pandas 연습문제 4. apply 활용 질문

미해결

핵심만 빠르게, 입문자를 위한 파이썬(Python)과 판다스(Pandas)

안녕하세요, 학습하다가 이해가 되지 않는 부분이 있어 질문드립니다! 4. apply 활용 각 행에 대해 남성 인구의 합을 구하여 남자인구 합계 이름을 가진 컬럼을 생성해주세요. 위 문제에서, def getManPopulation(row): man = 0 for i in row.index: if "남자" in i: man += row[i] return man sample['남자인구 합계'] = sample.apply(getManPopulation, axis=1) sample.head() getManPopulation(row): 여기 row자리에 데이터프레임(sample)이 들어간다고 생각하면 for i in row.index 의 row.index 가 위에서 index로 설정해놓은 '일자' 컬럼이 될텐데 어떻게 if "남자" in i 가 성립되는건가요? 밑에서 row[i] 를 사용하는 거 보면 row는 데이터프레임이고 i는 컬럼명이 맞는 것 같은데 이해가 되지 않아 질문드립니다. 감사합니다!

  • pandas
  • python
지루한 청어 댓글 1 좋아요 0 조회수 598

+27739970300 Native Psychic healer: How to Tap Into Your Own Psychic Abilities

미해결

Native Psychic healer for Psychic Defense +27739970300 The human personality can do numerous surprising things, one of them is the capacity to heal people without medicines and can even perform a medical procedure by simply utilizing the psyche. People who can do this are called Psychic healers. The native psychic healer utilizes help and direction from the soul world in conventional ceremonies affected by a medium, to create normal healing energy to treat the entire individual – psyche, body, and soul. Since physical and otherworldly wellbeing is personally associated, body and soul should recuperate together. Life Power energy is receptive to our considerations and feelings. It is effortlessly upset when we acknowledge negative considerations or emotions, either intentionally or intuitively. Along these lines, blockages create in the stream of Life Power energy. With the end goal to expel these blockages, psychic healing is required which works at the intuitive dimension. The individual can likewise protection psychically by utilizing his healing powers. https://alovespells.com/native-psychic-healer/

spellcaster30 댓글 0 좋아요 0 조회수 124

+27739970300 Powerful Sangoma: Traditional Healer and herbalist that really works

미해결

+27739970300 The powerful sangoma gets to counsel and direction from the precursors through ownership by a progenitor, diverting or tossing of bones. This powerful sangoma is the special case that recuperates and takes care of all fizzled or incomplete issues from other customary healers and sangomas. On the off chance that you have attempted numerous healers with no advancement, simply visit the powerful sangoma to encourage you and he won’t fall flat. The powerful sangoma ‘s works are a blend of African conventional mysticism, clairvoyant forces, ceremonies, local mending, spell throwing, which are all intended to deal with whatever affliction you may confront. Is it accurate to say that you are scanning all over for an expert and genuine spell caster ? At that point, you have gone to the ideal place! The powerful sangoma is resolved to offer what you are looking for. The powerful sangoma gives the most credible spells you’ve ever experienced. He was set up in the art of regular retouching through a long apprenticeship after his basic getting back to decades back to be a standard healer and sangoma. For all standard medicine, ordinary herbs, and standard spells for patching. Restore physical prosperity, significant prosperity and cleanse your soul with the help of this amazing sangoma. Indigenous remedial taking in was transmitted from his ancestors in the midst of his presentation. He similarly insight and collaborates with others like normal pros, sangomas, traditional healers, and cultivators. This has achieved him to acquire immense data of fruitful home-developed answers for a wide grouping of diseases and conditions. https://alovespells.com/powerful-sangoma/

spellcaster30 댓글 0 좋아요 0 조회수 186

쪽지 기능 문의 드립니다.

미해결

Do It! 장고+부트스트랩: 파이썬 웹개발의 정석

강의 구매하고 아직 학습하기 전입니다 저는 커뮤니티 웹사이트를 만들고 싶습니다 장고로 사이트를 만들면 장고 기본기능에 쪽지 기능이 있는기 궁금합니다. 질문그대로 제가 쪽지기능을 구현하는게 아닌, 장고 의 기본기능에 쪽지 기능이 있는지 혹은, 쪽지기능 모듈이 있는지 궁금해서 문의드립니다 알려주시면 감사하겠습니다~

  • javascript
  • bootstrap
  • HTML/CSS
  • django
  • aws
  • docker
  • tdd
  • python
가후 댓글 1 좋아요 0 조회수 560

MemberForm과 MemberController 코드관련 질문

미해결

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

[질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예) [질문 내용] 만약 제가 localhost:8080 , 회원가입에 들어가서 이름 칸에 spring을 치고 등록을 누르면 MemberForm.java에서 name이 private으로 선언되었으까 setName을 통해 name에 spring이 들어가야 하는데 MemberController의 create메소드의 member.setName(form.getName()); 로직은 getName으로 꺼낸 값을 setName에 넣는다고 되어있습니다. 이게 작동하려면 이미 name에 spring이 들어가있어야 하는거 아닌가요? setName을 미리 해주는 곳이 따로 있는건가요?

  • spring-boot
  • java
  • MVC
  • spring
공태성 댓글 1 좋아요 0 조회수 409

빌드시 오류

미해결

만들면서 배우는 프론트엔드 DO IT 코딩 (Next.js, Typescript)

빌드시에 다음과같은 오류가 나오는데 구글링으로 해결을 못했습니다ㅠㅠ

  • Next.js
Jinho KIM 댓글 1 좋아요 0 조회수 334

블로그 정리에 사용해도 괜찮나요?

미해결

풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]

안녕하세요~! 수강중인 학생입니다. 강의 내용을 학습하고 이것저것 내용들을 정리하며 블로그 작성을 하고 싶은데 강의 출처를 남기고 블로그 정리에 활용해도 괜찮을까요? 감사합니다.

  • docker
  • linux
  • network
강우석 댓글 1 좋아요 0 조회수 312

children의 타입질문

해결됨

배달앱 클론코딩 [with React Native]

DismissKeyboardView 컴포넌트에 React.FC타입을 추가해주어도 children props에 지속적으로 에러표시가 떠서 해결책을 찾다가 아래와 같이 수정해두었는데 별다른 문제가 없을지 궁금합니다. 그리고 혹시 제로초님께서 제작하신 타입스크립트 강좌들에는 강의중에 보여주신 오래된 라이브러리의 타입을 정의하는 방법들까지도 배워볼 수 있을까요? 타입스크립트 학습이 너무 부족한게 느껴져서요. import React from "react"; import { Keyboard, StyleProp, TouchableWithoutFeedback, ViewStyle, } from "react-native"; import {KeyboardAwareScrollView} from "react-native-keyboard-aware-scrollview"; type Component = { style?: StyleProp<ViewStyle>; children: JSX.Element[] | JSX.Element; }; const DismissKeyboardView: React.FC<Component> = ({children, ...props}) => ( <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}> <KeyboardAwareScrollView {...props} style={props.style}> {children} </KeyboardAwareScrollView> </TouchableWithoutFeedback> ); export default DismissKeyboardView;

  • react-native
김영욱 댓글 1 좋아요 0 조회수 385

전자지갑 실습 1 질문

미해결

장박사의 블록체인 이해와 구조

안녕하세요 블록체인 강의 잘 듣고 있습니다. 오늘 전자지갑 실습 1을 진행 하였는데.. 계정 생성은 정상인데.. 잔액 조회시 크롬에서 CORS 문제가 있는거 같습니다. 해결 방법이 있는지 알수 있을까요? 아래 크롬 디버깅 캡쳐한 부분입니다. 감사합니다~!!

  • blockchain
  • dapp
spinut14 댓글 2 좋아요 0 조회수 367

BooleanExpression 모든 조건이 null 일 때

미해결

실전! Querydsl

이 경우 where절이 빠짐에 따라 테이블의 모든 데이터가 나오는 건 이해했습니다. 테이블 데이터가 많을 경우 select를 많이 하느라 장애가 난다까진 알겠는데, 그렇다면 이걸 해결할 수 있는 게 페이징뿐인가요? 어떠한 사정이나 목적 때문에 페이징 적용이 되지 않은 쿼리의 경우, 이걸 방지하기 위한 방법이 있는지 궁금합니다.

  • JPA
  • java
박민호 댓글 1 좋아요 0 조회수 601

regions값들을 실제 db에 저장할 때 궁금한점이 있습니다.

미해결

스프링 MVC 2편 - 백엔드 웹 개발 활용 기술

화면에서 서울, 부산을 클릭해서 item 엔티티 List로 담은 후 save()를 하는 것 같은데, 실제 db에 저장할 때는, item 테이블에 region이라는 컬럼에 서울,부산값이 같이 들어가는 구조로 만드는게 합리적인가요?

  • MVC
  • spring
qkrwnstns52 댓글 1 좋아요 0 조회수 302

상품 주문 후 주문내역 리스트가 보이지 않습니다.

미해결

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

상품 주문을 하고 난 뒤에 바로 /orders로 이동하면서 화면까지는 정상적으로 나오는데 주문한 상품 목록이 리스트로 뿌려지지가 않습니다. 브라우저나 서버 쪽 콘솔에도 아무런 오류도 뜨지 않고요. 왜 이런 것일까요..? ${orderSearch} 와 ${memberName} 와 ${orderStatus} 부분에 밑줄이 쳐지긴 하네요. <div> <div> <form th:object="${orderSearch}" class="form-inline"> <div class="form-group mb-2"> <input type="text" th:field="*{memberName}" class="form-control" placeholder="회원명"/> </div> <div class="form-group mx-sm-1 mb-2"> <select th:field="*{orderStatus}" class="form-control"> <option value="">주문상태</option> <option th:each="status : ${T(jpabook.jpashop.domain.OrderStatus).values()}" th:value="${status}" th:text="${status}">option </option> </select> </div> <button type="submit" class="btn btn-primary mb-2">검색</button> </form> </div> public List<Order> findAllByString(OrderSearch orderSearch) { String jpql = "select o from Order o join o.member m"; boolean isFirstCondition = true; //주문 상태 검색 if (orderSearch.getOrderStatus() != null) { if (isFirstCondition) { jpql += " where"; isFirstCondition = false; } else { jpql += " and"; } jpql += " o.status = :status"; } //회원 이름 검색 if (StringUtils.hasText(orderSearch.getMemberName())) { if (isFirstCondition) { jpql += " where"; isFirstCondition = false; } else { jpql += " and"; } jpql += " m.name like :name"; } TypedQuery<Order> query = em.createQuery(jpql, Order.class) .setMaxResults(1000); if (orderSearch.getOrderStatus() != null) { query = query.setParameter("status", orderSearch.getOrderStatus()); } if (StringUtils.hasText(orderSearch.getMemberName())) { query = query.setParameter("name", orderSearch.getMemberName()); } return query.getResultList(); }

  • java
  • 웹앱
  • spring
  • JPA
  • spring-boot
비가싫어요 댓글 2 좋아요 0 조회수 754

Bean 이닛메서드 지정할 때 질문

미해결

스프링 핵심 원리 - 기본편

빈 생명주기 콜백 강의에서 @Bean(initMethod = "init", destroyMethod = "close") public NetworkClient networkClient(){ NetworkClient networkClient = new NetworkClient(); networkClient.setUrl("http://hello-spring.dev"); return networkClient; } 위 코드처럼 빈 설정으로 하는 방법을 쓰는 경우는 내가 코드를 수정할 수 없는 외부 라이브러리에서 init, destroy 메서드를 지정하기 위해서라고 하셨습니다. 그런데 위 코드를 보면 메서드 지정에 클래스 없이 메서드 이름만 입력하도록 되어있어서, 해당 빈 메서드에서 반환되는 객체에서 해당 이름의 메서드를 지정하게 되는 것 같습니다. 외부 라이브러리의 경우 해당 라이브러리 클래스에 있는 메서드 중 하나를 init, close 메서드로 지정하기 위한 것인가요? 아니면 다른 클래스에서 정의가 가능한가요?

  • spring
  • oop
김찬양 댓글 1 좋아요 0 조회수 277

tomcat 관련 질문드립니다.

미해결

Jenkins를 이용한 CI/CD Pipeline 구축

안녕하세요 강사님 강의 잘 듣고 있습니다. 다름이 아니라 tomcat을 설치하는 과정에 있어서 잘 되지 않아 이렇게 문의드립니다. 현재 제 노트북 사양은 m1 macbook 입니다. 기존에 한번 강의를 들으며 tomcat 설치를 진행했었습니다. (추가적으로 8080port , 접근 권한 수정도 하였습니다.) 그러다 다시 찬찬히 진행을 하려고 하여 기존의 tomcat을 삭제한 후 강의를 수강하며 설치를 진행했는데 잘 되지 않아 질문드립니다. 다운로드 파일 : 9.0.68 버전 Core tar.gz 문제 상황 : 다운로드 한 파일 경로에서 tomcat 실행 시 다음과 같은 문구가 뜸 그러고 tomcat을 실행하려고 localhost :8080을 주소창에 입력하면 다음과 같이 뜨고 localhost :8088을 접속하면 다음과 같이 화면이 뜹니다. 이러한 경우에는 어떻게 해결을 할 수 있는지 도와주세요..!

  • ansible
  • jenkins
  • kubernetes
  • sonarqube
  • cicd
Tommy 댓글 1 좋아요 0 조회수 772

offsetheight와 scrollheight

미해결

초보자도 만들 수 있는 스크롤 인터렉션. 1편 자바스크립트

예시코드: function getPercent(){ let scrollHeight = document.querySelector('.sec01').scrollHeight; } 질문내용: getPercent 함수 맨첫번째줄에서 offsetheight을구하는게 아닌 scrollheight을 구해도 정삭작동했는데 이렇게 했을 시 다른점이있을까요?

  • HTML/CSS
  • jquery
  • 인터랙티브-웹
  • javascript
치콩 댓글 1 좋아요 0 조회수 421

인기 태그

인프런 TOP Writers

주간 인기글