안녕하세요 영한팀장님. 기본키 매핑 어노테이션 관련하여 궁금한 점이 있어 질문드립니다. 기본키 매핑 방법으로는 - IDENTITY - SEQUENCE - TABLE - AUTO 가있는 것을 알았는데 TABLE방법은 성능이슈때문에 많이 사용하지 않고 "AUTO가 어차피 알아서 DB에 맞게 알아서 정책을 해줄텐데 나머지 어노테이션이 굳이 필요할까"라는 생각이 들었습니다. 실무에서도 AUTO가 가장 많이 사용되고 권장되는 방법인가요?
질문 함수형 인터페이스는 추상 메서드가 무조건 한개인게 규칙인가여? 그런 규칙은 왜 있는것일까여? 내용 정리 질문: 람다 표현식을 사용하는 이유: 답변: 함수형 인터페이스를 다음과 같이 만들고 // src\main\java\me\whiteship\java8to11\RunSomething.java package me.whiteship.java8to11 ; @FunctionalInterface public interface RunSomething { void doIt (); } 이걸 foo 클래스의 내부 클래스로 만들어서 구현한뒤 호출한다고 치자 람다 표현식 없이 다음과 같이 구현 가능 ex) // 람다 표현식을 이용해 인터페이스를 구현 + 실행 package me.whiteship.java8to11; public class Foo { public static void main(String[] args) { RunSomething runSomething = new RunSomething() { @Override public void doIt() { System.out.println("함수형 인터페이스 구현해 보기 doit!!"); } }; // 뒤에 ; 붙여야 함 runSomething.doIt(); } } 그러나 람다 표현식을 사용하면 좀더 간단하게 구현 가능 ex) 람다 표현식을 사용해서 좋은점: 내부 구현 클래스를 좀더 간단하게 작성 가능 즉 new 키워드 없이 내부 구현 클래스 및 구현 함수를 작성 가능
학교에서 동아리 자유탐구주제로 지도서비스를 제작하고 있는 고등학교 3학년입니다. 지도 서비스 강좌 1편, 2편 모두 청강을 했는데... 이 강의에서 배운 내용으로 만든 프로젝트를 학급 친구들에게 공유하고 싶은데 강의에서는 localhost:3000을 입력하고 웹서버에 접속하였는데 친구들이 접속할 때는 localhost:3000을 입력하면 접속이 안되어서 학교 선생님께 여쭈어 보았더니 apache라는 것과 같은 것을 이용해서 웹페이지를 만들고 거기에 올려야 다른 친구들이 제 프로젝트를 접속해서 볼 수 있다고 하는데 이것은 어떻게 해야 하나요??
[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part2: 게임 수학과 DirectX12
장치초기화 부분을 듣는데 뭔가 갑자기 훅 들어온 느낌이라고 해야하나요.. 지금 이게 뭘 하고 있는건지 와닿지가 않았는데 이게 windows 데스크탑 프로그램이에 대한 개념이 없어서 그런가라는 생각이 들더군요. 루나 책에도 부록에 win32 프로그래밍에 대해 간략히 있기는 하던데 일단 rookiss님 말씀대로 쭉쭉 듣고 넘어가는게 나을까요?
npm i 설치 시 , 추가적으로 설치해야하는 프로그램들이 더 있을까요? python 경로 오류로 삭제 후 다시 설치하니 VS에러가 발생합니다 ㅠ ahnju@DESKTOP-U5A4ULH MINGW64 ~/Downloads/VUE-ENDGAME/vue-til-server (master) $ npm i > bcrypt@3.0.8 install C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ************************************************************** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ************************************************************** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) gyp ERR! System Windows_NT 10.0.19042 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt gyp ERR! node -v v14.15.4 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19042 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt node-pre-gyp ERR! node -v v14.15.4 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\nodemon\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ahnju\AppData\Roaming\npm-cache\_logs\2021-04-18T00_42_06_418Z-debug.log
npm install sequelize sqlite3 npm install -g sequelize-cli 까지는 진행되는데 sequelize init 가 되지 않습니다. seqelize : 'seqelize' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다 위와 같은 에러가 뜨면서 폴더들도 생성되지 않습니다.
어노테이션 적용할때 class까지만 하신 이유가 궁금합니다. aspectJ 가 바이트코드 자체를 변경하는 기술이기때문에 class까지만 가져가도 된다는 의미로 생각하면될까요? 추가적으로 Spring 기반의 aop를 적용한다면 reflection 기반이기 때문에 runtime으로 해야지 작동하는건가요?
안녕하세요, 질문이 있습니다. 3분쯤에 첫번째 자리는 무조건 첫번째 마구간이라고 하셨는데, 만약 첫번째하고 두번째 마굿간 사이에 거리가 멀고 오히려 2번째 3번째 4번째 마굿간의 거리가 더 가까우면 첫번째가 안들어가지 않나요?! 어떻게 첫번째가 기준이 되는지 잘 모르겠습니다.
풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
문제 상황 : mysql과 mongodb를 flask에 연동하려고 했습니다. 문제는 mongodb와 mysql을 먼저 띄우면 문제가 되지 않지만, docker-compose로 mysql과 mongodb를 flask와 함께 띄우면 아래와 같은 에러 메시지가 뜹니다. 물론 depends_on옵션도 줬습니다. 아래와 같은 경우, 몽고 db가 제대로 뜨기 전에 flask에서 접속을 시도해서 생긴 문제인가요?