묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[구버전] 웹 애플리케이션 개발을 위한 IntelliJ IDEA 설정 (2020 ver.)
tomcat manager 로그인이 안됩니다.ㅠㅠ
안녕하세요!강의 너무 잘 봤습니다!! 쉽게 설명해주셔서 실습도 무난하게 잘 따라했는데 마지막 실습에서 막히는데 바쁘시겠지만 한 번 봐주시면 너무 감사할것같습니다! 1. 실습을 하던중 톰캣 매니저에서 롤을 생성 2. cmd 에서 톰캣 서버 다시 시작 3. manager 접속해서 아이디와 비번을 치면 다시 로그인창이 뜹니다. 아이디와 비번 스펠링을 틀리게 입력한것도 아닌데ㅠㅠㅠ왜 안되는지 의문입니다. <?xml version='1.0' encoding='cp949'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="admin"/> <user username="admin" password="tomcat" roles="manager,manager-gui,manager-script,manager-jmx,manager-status,admin"/> </tomcat-users>
-
미해결실습 UI 개발로 배워보는 순수 javascript 와 VueJS 개발
학습내용 정리 관련 질문입니다!
안녕하세요 강사님! 좋은 강의 감사드리며 너무나도 잘 수강하고있습니다. 현재 제가 강의를 진행하면서 실습한 코드들을 제 개인 github public repo에 올려 따로 정리하고있습니다 혹시 실습한 코드들을 제 개인 저장소에 따로 올려도 괜찮을까요? 만약 문제가 된다면 바로 삭제하도록 하겠습니다.
-
해결됨코딩은 실전이다! - Git알못을 위한 깃린이코스(Git, Github 실습위주)
슬랙 초대 부탁드립니다!
baeksh0330@naver.com 입니다. 좋은 강의 잘 들었습니다. 감사합니다!
-
미해결Axure RP 9,10 - 서비스 기획자를 위한 최적의 프로토타이핑 툴
클라우드에 저장된 이전버전 파일을 확인방법이 있을지요?
고객센터를 이리저리 보아도 클라우드에 저장된 이전 버전의 파일을 다운로드 받을 수 있는지 궁금합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
members/membersList.html
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 Member클래스가 구현되어있는 것을 보면 id와 name은 private으로 구현되서 밖에서 접근하지 못하게 되어있습니다. members/membersListhtml에서 body내에 템플릿 문법으로 구성된 반복문에서 ${member.id} 와 ${member.name} 이렇게 되서 member의 id와 name에 바로 접근해서 값을 가져오는 것처럼 보이는데 어떻게 getter와 setter로 값을 가져오는 것인지 궁금합니다. 감사합니다.
-
해결됨설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)
Vivado 다운로드 중인데 여기서 넘어가질 않아요 ㅠ
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
4분 25초 질문있습니다.
강사님 강의 친절하게 설명해주셔서 열심히 잘 듣고 있습니다! 그런데 혹시 4분 27초 쯤에 연관관계 편의 메소드 만드신 다음에 원래는 member.setTeam(team) 부분을 member.changeTeam(team)으로 바꿔줘야 메소드가 적용되어 더 좋게 되는 거 맞나요?
-
미해결실전! Querydsl
Querydsl의 사용
강의를 듣다가 문득 궁금한 점이 생겨 질문드립니다. 실무에서는 Querydsl을 사용하여 대부분의 쿼리를 작성하나요? 아니면 스프링 데이터 jpa와 조합하여 사용하나요? ex: 스프링 데이터 jpa로 간단히 구현가능한 쿼리는 스프링 데이터 jpa를 쓰고 검색 기능과 같은 동적쿼리가 필요한 부분만 Querydsl을 사용하는지??
-
미해결파이썬을 활용한 데이터분석과 IT보안
윈도우 커넥트 불가
3. Sysmon 윈도우 이벤트 강화 - 침투 시나리오와 로그 분석 영상에서 Kali linux에서 만든 악성 사이트?에 윈도우로 접속 시도하는데, 강의 영상과 다르게 연결이 안되고 있습니다...왜 이런걸까요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
연관관계 편의 메소드 질문 있습니다.
강사님 혹시 영상의 13:19에서 연관관계 편의 메소드 setTeam에서 this.team = team; team.getMembers().add(this); 로 되어 있는 부분을 두 코드의 순서를 바꿔서 team.getMembers().add(this); this.team = team; 으로 코드를 작성해도 상관이 없는 건가요? 마찬가지로 17:29에 나오는 addMember 메소드에서도 member.setTeam(this); members.add(member); 두 코드의 순서를 바꿔도 되는 건가요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
강의중에 사용하신 소스코드는 어디서 참조가능할가요?
안녕하세요. 강의중에 사용하신 소스코드는 어디서 참조가능할가요? github주소가 있을가요?
-
미해결화이트해커가 되기 위한 8가지 웹 해킹 기술
; cat/etc/passwd
; cat/etc/passwd 이렇게 적으면 저는 왜 아무것도 안뜰까요..?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
임베디드타입이 엔티티를 갖도록 하는 것 질문드립니다.
강의 15분쯤에 임베디드타입이 엔티티를 가질 수 있다고 하는 부분이 나와서 실습 해보려는데 잘 안되서 문의드립니다. Address 임베디드 타입에 Person 이라는 Entitiy를 가지도록 하려고 하는데요. Address는 Member Entitiy에 속해있구요. 아래처럼 실행하면 에러가 나네요. Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on jpabook.start.Member.homeAddress.person references an unknown entity: jpabook.start.Person Address 에서 Person을 참조할 때 어노테이션을 @OneToOne, @JoinColumn 을 사용하였는데 맞나요? 어쨋든 어노테이션을 빼도 에러가나고 다 에러가 납니다. ㅠㅠ @Entity@Table(name="member")public class Member { @Id @Column(name = "id") private String id; @Column(name = "name") private String username; private Integer age; @Embedded private Address homeAddress; @Embedded private Period workPeriod; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; }} @Embeddablepublic class Address { private String city; private String street; private String zipcode; @OneToOne @JoinColumn(name = "person_id") private Person person; public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getZipcode() { return zipcode; } public void setZipcode(String zipcode) { this.zipcode = zipcode; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; }} @Entitypublic class Person { @Id @GeneratedValue private Long id; private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }}
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
Card.Meta 오류 질문드립니다!
삭제된 글입니다
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
ㅜ,ㅜ 인텔리제이에 어떤 문제가 있는지 모르겠습니다.
강의들으며 잘 되던게 며칠있다가 다시 들어오니 SDK가 없다면서 에러가 떠서 초기에 지정해준 SDK경로를 다시 잡아줬습니다. 그 후 import를 못받아서 에러가 발생하는것 같아요.. 어떤식으로 이 오류를 잡아야 할지 감을 못잡겠습니다. ;ㅁ;
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part6: 웹 서버
lifecycle에 관하여 질문있습니다.
안녕하세요 좋은 강의 잘 듣고 있습니다. 강의를 듣던 중 궁금한 점이 생겨 질문드리게 되었습니다. 질문1) 영상 마지막 부분에서 MVC와 Razor Page 같은 경우에는 Traditional Page Lifecycle 이라고 하셨는데 Blazor Server의 경우에는 SPA Lifecycle인가요? 질문2) Blazor Client의 경우에는 최초 접속했을 때의 정보가 계속해서 유지되는것이 맞나요? 즉, 처음 접속하고 1분뒤 서버에서 데이터를 수정하였다면 Blzor Client의 경우에는 처음 접속 이후 통신을 하지 않기 때문에 해당 수정된 데이터는 다시 접속해야만 확인가능한것이 맞는지요?
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
feign client 실행 오류
안녕하세요 user-service 실행 시 feign client 관련 에러가 나는 것 같아 질문 드립니다. 먼저 강의에서 나온 대로 디펜던시 추가 시 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/SAMSUNG/.m2/repository/org/springframework/spring-core/5.3.7/spring-core-5.3.7.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.cloud.sleuth.instrument.web.client.feign.TraceRetryableFeignBlockingLoadBalancerClient.<init>(TraceRetryableFeignBlockingLoadBalancerClient.java:60) The following method did not exist: org.springframework.cloud.openfeign.loadbalancer.RetryableFeignBlockingLoadBalancerClient.<init>(Lfeign/Client;Lorg/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClient;Lorg/springframework/cloud/client/loadbalancer/LoadBalancedRetryFactory;)V The method's class, org.springframework.cloud.openfeign.loadbalancer.RetryableFeignBlockingLoadBalancerClient, is available from the following locations: jar:file:/C:/Users/SAMSUNG/.m2/repository/org/springframework/cloud/spring-cloud-openfeign-core/3.0.2/spring-cloud-openfeign-core-3.0.2.jar!/org/springframework/cloud/openfeign/loadbalancer/RetryableFeignBlockingLoadBalancerClient.class The class hierarchy was loaded from the following locations: org.springframework.cloud.openfeign.loadbalancer.RetryableFeignBlockingLoadBalancerClient: file:/C:/Users/SAMSUNG/.m2/repository/org/springframework/cloud/spring-cloud-openfeign-core/3.0.2/spring-cloud-openfeign-core-3.0.2.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.springframework.cloud.openfeign.loadbalancer.RetryableFeignBlockingLoadBalancerClient Process finished with exit code 0 위와 같은 오류가 호출 됩니다. 그 후 feign client의 버전을 3.0 이하로 내려서 실행하였더니 feign client 가 빈으로 생성시 오류가 생기 며 No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon or spring-cloud-starter-loadbalancer? 해당 오류가 호출 됩니다 답변 부탁드립니다.
-
해결됨파이썬 무료 강의 (활용편1) - 추억의 오락실 게임 만들기 (3시간)
세 번째 공부터 바닥에 튕기지 않습니다.
코드를 다 작성하고 게임을 진행했습니다. 그런데 세 번째 공만 바닥에 튕기지 않고 사라집니다. 어느 코드가 잘못 입력되었는지 찾아보려고 노력은 했습니다만 찾지 못했습니다. 혹시 어디가 잘못 입력 되었는지 알려주실 수 있으신가요? import os import pygame ############################################################################### # 기본 초기화 (반드시 해야 하는 것들) pygame.init() # 화면 크기 설정 screen_width = 640 # 가로 크기 screen_height = 480 # 세로 크기 screen = pygame.display.set_mode((screen_width, screen_height)) # 화면 타이틀 설정 pygame.display.set_caption("Nado Pang") # 게임 이름 # FPS clock = pygame.time.Clock() ############################################################################### # 1. 사용자 게임 초기화 (배경 화면, 게임 이미지, 좌표, 속도, 폰트 등) current_path = os.path.dirname(__file__) # 현재 파일 위치 변환 image_path = os.path.join(current_path, "images") # images 폴더 반환 # 배경 만들기 background = pygame.image.load(os.path.join(image_path, "backgroung.png")) # 스테이지 만들기 stage = pygame.image.load(os.path.join(image_path, "stage.png")) stage_size = stage.get_rect().size stage_height = stage_size[1] # 스테이지의 높이 위에 캐릭터를 두기 위해 사용 # 캐릭터 만들기 character = pygame.image.load(os.path.join(image_path, "character.png")) character_size = character.get_rect().size character_width = character_size[0] character_height = character_size[1] character_x_pos = (screen_width / 2) - (character_width /2) character_y_pos = screen_height - character_height - stage_height # 방향 character_to_x = 0 # 속도 character_speed = 5 # 무기 만들기 weapon = pygame.image.load(os.path.join(image_path, "weapon.png")) weapon_size = weapon.get_rect().size weapon_width = weapon_size[0] # 무기는 한번에 여러발 발사 가능 weapons = [] # 무기 이동 속도 weapon_speed = 10 # 공 만들기 ball_images = [ pygame.image.load(os.path.join(image_path, "ball1.png")), pygame.image.load(os.path.join(image_path, "ball2.png")), pygame.image.load(os.path.join(image_path, "ball3.png")), pygame.image.load(os.path.join(image_path, "ball4.png"))] # 공 크기에 따른 최초 스피드 ball_speed_y = [-18, -15, 12, -9] # index 0, 1, 2, 3에 해당하는 값 # 공들 balls = [] # 최초 발생하는 큰 공 추가 balls.append({ "pos_x" : 50, # 공의 x 좌표 "pos_y" : 50, # 공의 y 좌표 "img_idx" : 0, # 공의 이미지 인덱스 "to_x": 3, # x축 이동방향, -3이면 왼쪽, 3이면 오른쪽 "to_y": -6, # y축 이동방향 "init_spd_y": ball_speed_y[0]}) # y 최초 속도 # 사라질 무기, 공 정보 저장 변수 weapon_to_remove = -1 ball_to_remove = -1 # Font 정의 game_font = pygame.font.Font(None, 40) total_time = 100 start_ticks = pygame.time.get_ticks() # 게임 종료 메시지 # Time Out(시간 초과 실패) # Mission Complete(성공) # Game Over (캐릭터가 공에 맞아서 실패) game_result = "Game Over" running = True while running: dt = clock.tick(30) # 2. 이벤트 처리 (키보드, 마우스 등) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: character_to_x -= character_speed elif event.key == pygame.K_RIGHT: character_to_x += character_speed elif event.key == pygame.K_SPACE: # 무기 발사 weapon_x_pos = character_x_pos + (character_width / 2) - (weapon_width / 2) weapon_y_pos = character_y_pos weapons.append([weapon_x_pos, weapon_y_pos]) if event.type == pygame.KEYUP: if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT: character_to_x = 0 # 3. 게임 캐릭터 위치 정의 character_x_pos += character_to_x if character_x_pos < 0: character_x_pos = 0 elif character_x_pos > screen_width - character_width: character_x_pos = screen_width - character_width # 무기 위치 조정 # 100, 200 -> 180, 160, 140, ... # 500, 200 -> 180, 160, 140, ... weapons = [ [w[0], w[1] - weapon_speed] for w in weapons] # 무기 위치를 위로 # 천장에 닿은 무기 없애기 weapons = [ [w[0], w[1] - weapon_speed] for w in weapons if w[1] > 0] # 공 위치 정의 for ball_idx, ball_val in enumerate(balls): ball_pos_x = ball_val["pos_x"] ball_pos_y = ball_val["pos_y"] ball_img_idx = ball_val["img_idx"] ball_size = ball_images[ball_img_idx].get_rect().size ball_width = ball_size[0] ball_height = ball_size[1] # 가로벽에 닿았을 때 공 이동 위치 변경(튕겨나오는 효과) if ball_pos_x < 0 or ball_pos_x > screen_width - ball_width: ball_val["to_x"] = ball_val["to_x"] * -1 # 세로 위치 # 스테이지에 튕겨서 올라가는 처리 if ball_pos_y >= screen_height - stage_height - ball_height: ball_val["to_y"] = ball_val["init_spd_y"] # 씨발 키 하나때문에 시간 잡아먹게 하지 마라 else: # 그 외의 모든 경우에는 속도를 증가 ball_val["to_y"] +=0.5 ball_val["pos_x"] += ball_val["to_x"] ball_val["pos_y"] += ball_val["to_y"] # 4. 충돌 처리 # 캐릭터 rect 정보 업데이트 character_rect = character.get_rect() character_rect.left = character_x_pos character_rect.top = character_y_pos for ball_idx, ball_val in enumerate(balls): ball_pos_x = ball_val["pos_x"] ball_pos_y = ball_val["pos_y"] ball_img_idx = ball_val["img_idx"] # 공 rect 정보 업데이트 ball_rect = ball_images[ball_img_idx].get_rect() ball_rect.left = ball_pos_x ball_rect.top = ball_pos_y # 공과 캐릭터 충돌 처리 if character_rect.colliderect(ball_rect): running = False break # 공과 무기들 충돌 처리 for weapon_idx, weapon_val in enumerate(weapons): weapon_pos_x = weapon_val[0] weapon_pos_y = weapon_val[1] # 무기 rect 정보 업데이트 weapon_rect = weapon.get_rect() weapon_rect.left = weapon_pos_x weapon_rect.top = weapon_pos_y # 충돌 체크 if weapon_rect.colliderect(ball_rect): weapon_to_remove = weapon_idx # 해당 무기 없애기 위한 값 설정 ball_to_remove = ball_idx # 해당 공 없애기 위한 값 설정 # 가장 작은 크기의 공이 아니라면 다음 단계의 공으로 나눠주기 if ball_img_idx < 3: # 현재 공 크기 정보를 가지고 옴 ball_width = ball_rect.size[0] ball_height = ball_rect.size[1] # 나눠진 공 정보 small_ball_rect = ball_images[ball_img_idx + 1].get_rect() small_ball_width = small_ball_rect.size[0] small_ball_height = small_ball_rect.size[1] # 왼쪽으로 튕겨나가는 작은 공 balls.append({ "pos_x" : ball_pos_x + (ball_width /2) - (small_ball_width / 2), "pos_y" : ball_pos_y + (ball_height /2) - (small_ball_height / 2), "img_idx" : ball_img_idx + 1, "to_x": -3, "to_y": -6, "init_spd_y": ball_speed_y[ball_img_idx + 1]}) # 오른쪽으로 튕겨나가는 작은 공 balls.append({ "pos_x" : ball_pos_x + (ball_width /2) - (small_ball_width / 2), "pos_y" : ball_pos_y + (ball_height /2) - (small_ball_height / 2), "img_idx" : ball_img_idx + 1, "to_x": 3, "to_y": -6, "init_spd_y": ball_speed_y[ball_img_idx + 1]}) break else: # 계속 게임을 진행 continue # 안쪽 for 문이 조건이 맞지 않으면 continue. 바깥 for문 계속 수행 break # 안쪽 for문에서 break를 만나면 여기로 진입 가능. 이중 for문을 한번에 # 충돌된 공이나 무기 없애기 if ball_to_remove > -1: del balls[ball_to_remove] ball_to_remove = -1 if weapon_to_remove > -1: del weapons[weapon_to_remove] weapon_to_remove = -1 # 모든 공을 없앤 경우 게임 종료 (성공) if len(balls) == 0: game_result = "Mission Complete" running = False # 5. 화면에 그리기 screen.blit(background, (0,0)) for weapon_x_pos, weapon_y_pos in weapons: # weapon_y_pos을 weapon_x_pos으로 입력한 결과 1시간 이상 낭비 screen.blit(weapon, (weapon_x_pos, weapon_y_pos)) for idx, val in enumerate(balls): ball_pos_x = val["pos_x"] ball_pos_y = val["pos_y"] ball_img_idx = val["img_idx"] screen.blit(ball_images[ball_img_idx], (ball_pos_x, ball_pos_y)) screen.blit(stage, (0 ,screen_height - stage_height)) screen.blit(character, (character_x_pos, character_y_pos)) # 경과 시간 계산 elapsed_time = (pygame.time.get_ticks() - start_ticks) / 1000 # ms -> s timer = game_font.render("Time : {}".format(int(total_time - elapsed_time)), True, (255, 255, 255)) screen.blit(timer, (10, 10)) # 시간 초과시 if total_time - elapsed_time <= 0: game_result = "Time Out" running = False pygame.display.update() # 게임화면을 다시 그리기 # 게임 오버 메시지 msg = game_font.render(game_result, True, (255, 255, 0)) # 노란색 msg_rect = msg.get_rect(center= (int(screen_width / 2), int(screen_height / 2))) screen.blit(msg, msg_rect) pygame.display.update() # 2초 대기 pygame.time.delay(2000) pygame.quit()
-
미해결대세는 쿠버네티스 (초급~중급편)
empty-dir pod 생성 오류
강의에 나와있는데로 empty-dir pod를 생성하려고 하면 아래와 같이 오류가 생깁니다. 오탈자도없고... $pod logs pod-volume-1 error: a container name must be specified for pod pod-volume-1, choose one of: [container1 container2] 이유가 무엇일까요? 재 pod 생성 yaml 파일입니다. apiVersion: v1 kind: Pod metadata: name: pod-volume-1 spec: containers: - name: container1 image: hglee0126/p8000 volumeMounts: - name: empty-dir mountPath: /mount1 - name: container2 image: hglee0126/p8000 volumeMounts: - name: empty-dir mountPath: /mount2 volumes: - name : empty-dir emptyDir: {}
-
미해결[개정판 2023-11-27] Spring Boot 3.x 를 이용한 RESTful Web Services 개발
JPA 는 무조건 spring 올라올때 table drop하나요?
로그를 보니 스프링 올라올때 jpa는 무조건 테이블 drop하는거 같은데 mysql이나 oracle사용하면 어떻게 대처해야 하나요?