묻고 답해요
161만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨비전공자의 전공자 따라잡기 - 데이터베이스,SQL
외래키 On Delete SET NULL 관련
안녕하세요~ 타임어택 2주차 수강하고 있습니다~"섹션2의 처음 만나는 DDL" 강의 9분 32초에서employee 테이블에서 외래키 생성에 필요한role_id 컬럼 만드실 때 NOT NULL을 체크하셨는데요~그 다음 강의(on update, on delete)에서는 이게 해제되었더라구요.외래키 설정에서 On Delete - SET NULL을 하면NOT NULL 속성이 문제가 되는데 강의에서는 그 설명이 없어 보이더라구요.아마 강의 편집 과정에서 NOT NULL을 적용하면 중간에 서로 모순되어 에러가 나는 부분을 덜어낸 것으로 보여집니다.SET NULL을 하면 employee.role_id의 값만 지워지는 점을 강의시간 때 설명 해주셨기 때문에 NOT NULL을 선택하면 안되는 게 맞을거라 생각합니다.제가 맞게 알고 있는지 궁금해서 질문 드립니다. 감사합니다!
-
미해결[리뉴얼] 처음하는 SQL과 데이터베이스(MySQL) 부트캠프 [입문부터 활용까지]
mysql프로젝트 관련 크롤링 질문
https://davelee-fun.github.io/ 이 사이트 크롤링을 1번 사진처럼 4파트로 분리해서 크롤링후 2번 사진 처럼 만들어놓은 DB 테이블에 insert하는 코드를 작성해보았는데, (3번사진) 크롤링부분에서 잘못된건지 코드가 잘 돌아가지 않습니다. 혹시 어느부분이 잘못됬는지 알수있을까요?import requests from bs4 import BeautifulSoup import re pg=1 if pg==1: #1페이지 크롤링시 res = requests.get('https://davelee-fun.github.io/') #웹사이트 get request 1페이지 soup = BeautifulSoup(res.content, 'html.parser') #html 파싱 items = soup.select('div.card h') product_id=17890001 #promary key 임의설정 page_num=pg for item in items: recom_info=item.select_one('a.text-dark') #추천 product_name=item.select_one('h4.card-text') #상품명 provider=item.select_one('a[target="_blank"]') #제공자 -> teddy register_date=item.select_one('span.post-date') #등록일자 -> 05 jun 2020 SQL = """INSERT INTO product_info VALUES('"""+product_id+"""', '""" + str(recom_info.get_text()) + """','""" + str(product_name.get_text()) + """','""" + str(provider.get_text()) + """', '""" + str(register_date.get_text()) + """','""" +page_num+ """'); """ print(SQL) cursor.execute(SQL)우선 1페이지를 크롤링한 값을 넣어보려고 했습니다.
-
해결됨자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
entity 객체에 기본생성자를 넣어주는 이유
안녕하세요User객체에 기본생성자를 넣어야 작동하는 이유가 궁금합니다혹시 필드에 아무값도 넣지않을때를 대비해서 기본생성자를 사용하는건가요?
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
자바 스프링부트 버전 선택
스프링부트 버전이 2.7x 버전은 없는데 무엇으로 선택해야 하나요?
-
미해결백엔드 개발자 성능 개선 초석 다지기
nGrinder 성능테스트 질문이 있습니다.
현재 서버를 aws 같은거로 띄우진 않아서 로컬로 성능테스트를 진행하고 있는데 원래 서버를 띄운 후 성능테스트를 진행해야 하는건가요? 아니면 로컬로 해도되는건지..성능테스트 돌릴때마다 성능이 다르고 어떨땐 아예 실패하고 어떨땐 성공하고 그러네요..그래서 성능개선 전후 비교가 힘듭니다
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
오류로 인해 실행 안됨
이 에러가 발생합니다.설정에서 Gradle을 jdk로 바꿔봤습니다.아래 3가지를 선택 취소 후 다시 선택했습니다.java 폴더 -> Sources Tab 선택test 폴더 -> tests Tab 선택resource 폴더 -> resource Tab 선택그래도 해결이 안되기에 이렇게 글을 적습니다. 해결: 우측 상단에 Main으로 되어있었는데 이것을 LibraryAppApplication으로 바꾸니 해결되었습니다.
-
미해결백엔드 개발자 성능 개선 초석 다지기
이미 퇴사한 시점에서의 최선의 선택
현재 말씀하시는 대상이 완전 저에게 일치하는데 이미 퇴사를 한 시점이라 주니어 개발자로써 적용하기가 쉽지 않을 것 같은데 이럴때 는 어떻게 하는 게 좋을까요? 강의 내용대로 실무내에서는 문제 없이 기능들을 구현하였는데 이직을 위한 이력서 작성 시 성능 개선 부분에서 작성할 부분이 없네요
-
미해결[개정3판] Node.js 교과서 - 기본부터 프로젝트 실습까지
참조 테이블 생성시 카멜케이스 형태로 , 테이블이 생성이 됬는데 상관없을까요?
참조 테이블 : Follow , PostHashtag 관계를 맺을때 throught 테이블에 카멜 케이스로 테이블을 작성해서 그런거 같은데 , git 소스 원본에도 해당 내용으로 작성되어 있습니다. 영상 가의 마지막 31:53에 테이블이 소문자로 작성된 내용을 보고 질문드립니다 .
-
미해결[개정3판] Node.js 교과서 - 기본부터 프로젝트 실습까지
app.js 데이터 베이스 연결시 질문 있습니다 ( sync 옵션 )
[제로초 강좌 질문 필독 사항입니다]app.js 에서 데이터 베이스 연결시 sync에 ({force:false} ) 를 안붙였는 데도 테이블이 새로 생성이 안되더라구요 기본값이 아무것도 입력안하면 기본값이 false 로 생각하면 되나요?
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
[스토리 그 자체, 실적 테이블](9:51)max_recursive_iterations
안녕하세요.heidiSQL 또는 mysql워크벤치이든 접속을 해서SET SESSION max_recursive_iterations = 10000 ;를 실행해보면 해당 variables 이 없다고 나오는데요. "Error Code: 1193. Unknown system variable 'max_recursive_iterations' " 혹시 인스톨하는 버전에 따라서 제공되는 시스템변수들이 달라지는 걸까요??mysql 은 윈도우용으로 버전은 8.0.36을 사용중입니다.
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
@Configuration에 대해서 궁금합니다
안녕하세요@Configuration 과 @Bean은 세트라고 하셨는데요제가 프로젝트를 하나 하고있는데요implements WebMvcConfigurer를 구현하면메서드에 @Bean을 안붙여도 잘 동작을 하는데요 이유가 뭔지 궁금합니다..
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
urlcodemap 쿼리 파일 확인요청
안녕하세요. [대사와 액션, 회차정보테이블]의 '특정요일 과거일자' 부분에서 나오는 'urlcodemap' 쿼리문 파일이 수업자료에 없는 것 같습니다. 인터넷 구글링 또는 예전 강사님강의자료에는 있긴한데요.그래도 수업자료로는 올려주시는 게 나을 듯 하여 글을 올립니다.
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
[공유][대사와 액션, 회차정보테이블]contents2 생성관련
안녕하세요. mysql 버전이 8.0 대라서 그런지 contents2 테이블 생성하는 명령어(create or replace TABLE ... ) 가 실행이 안되서 다른 방식으로 수행하였습니다. 혹시 저와 동일한 에러가 나시는 분은 참고하세요. 우선 테이블을 만들고, group_concat() 이 selec까지는 잘 되는데 생성시에는 에러가 나서, /* SQL 오류 (1260): Row 6 was cut by GROUP_CONCAT() */ 구글링을 해보니 max length를 수정해줘야 한다고 하네요. SET group_concat_max_len=150000; 강사님이랑 같은 소스데이터를 사용하는데 왜 에러가 나는 지는 모르겠으나, 관련 명령어를 수행하고 나니 돌아갑니다.
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
[주인공과 등장인물의 집합채, 웹소설정보테이블]작가명 생성관련
안녕하세요. [주인공과 등장인물의 집합채, 웹소설정보테이블](4:13) 작가명과 회원아이디를 랜덤하게 생성함에 있어서, 작가명하나에 회원아이디가 여러개로 생성이 될 소지가 있는데요. 실제로 돌려보니 중복이 나오네요. ㅡㅡ;혹시.. 묶어서 작가명하나에 회원아이디 하나로만 매핑되도록 생성하려면 어떻게 하면 될까요? 샘플로 하는 거라 중복이 이슈거리는 아니지만.. 좀 더 배우고자 하는 마음에 문의드립니다. ㅡㅡ;
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
[주인공과 등장인물의 집합체,웹소설정보테이블]wn_novel테이블 생성
안녕하세요. wn_novel테이블 생성 (1:54) 의 수행을 위한 쿼리문이 수업자료로 다운받은 pdf 파일에는 링크가 안보이는데요.혹시 어디에서 확인할 수 있을까요??[강의화면][pdf] 03-2 DATA 생성-웹소설 정보.pdf
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
아직도 시작을 못하고 있어요,,,,,
다음과 같은 오류가 나와서 어떻게 해야할 지 모르겠네요 따로 건든건 없는데요... A problem occurred configuring root project 'library-app'.> Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.1. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.1 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.1 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but: - Variant 'apiElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.1 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'javadocElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'mavenOptionalApiElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.0.1 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'mavenOptionalRuntimeElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.0.1 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'runtimeElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.1 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'sourcesElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.
-
미해결도대체 왜? 도대체 어떻게! DB 설계와 데이터 다루기
[ERD로 보는 스토리와 테이블이라는 등장인물]태그정보 테이블 설계관련
[ERD로 보는 스토리와 테이블이라는 등장인물](17:53) 부분관련 문의드립니다. 안녕하세요. db설계에 대한 개념이 별로 없어서 질문드립니다. 태그정보의 경우, 연재요일과 같이 실적성으로 만들어야 한다고 하셨는데요. 태그정보의 코드/태그정보 테이블외에 작품번호/태그정보 테이블을 추가로 만들어야 할 지, 아니면 연재요일 테이블과 같이 작품번호/태그정보 테이블 하나만 만들면 되는 것일까요? 그리고 연재요일 테이블과 같이, 이런 류의 테이블은 별도의 요일에 대한 정보(코드/요일)테이블이 따로 없이 바로 실적테이블 형태로 구성을 하나요?
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]
화질이 계속 720p인데 1080은 안되는건가요?
계속 720p로 나와서 눈이 아픈데 1080p설정은 안되는건가요??
-
미해결자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]
자바 버젼이 안맞는거같은데 어떻게 해야할지 모르겠네요 ㅜㅜ
No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.1 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but:위와같은 오류가 나오면서 오류가 나서 그레이들이 멈추는데 해결을 못해서 강의 시작을 못하고 있어요 ㅠㅠ 어떻게 해야하나요
-
해결됨백엔드 개발자 성능 개선 초석 다지기
안녕하세요. 아직 강의를 듣지 않았지만 질문이 있습니다.
백엔드 개발자로서성능 개선과 부하 테스트 등은 어느 시점에 하는 것이 좋나요?제가 사이드 프로젝트를 하면서 필요할 때 듣고 바로 적용해보며 정리를 하려고 하는데 프로젝트 시작 전에 먼저 들어 놓고 신경 쓰며 개발을 해야 할 지, 개발 중에 적용 해야 할 지 개발 완료 후에 해야 할 지 감이 안 잡히네요.