묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 핵심 원리 - 기본편
애러 질문이 있습니다.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService' defined in class path resource [appConfig.xml]: Cannot resolve reference to bean 'discountPolicy' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'discountPolicy' available 이렇게 애러가 발생하네요,,다시 코딩 해보면서 실수한거 없는지 살펴봤는데.. 잘 모르겠습니다 ㅠ_ㅠ
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
UI 접근 질문이요.!!
강사님 강의도 듣고 다른 강의도 들어보면서 UI관련 궁금한점이 생겼습니다.!! 예를들어 총을발사 후 총알수보여주는 UI에서 총알수를 변경을 하고싶은데요. 어떤식으로 접근해야하는지 궁금합니다. 예를들어 총 관련스크립트{ 총알 발사 => 총알숫자감소 총알관련 UI접근 =>감소 } UI스크립트{ Update() { 총관련스크립트에서 총알 수를 읽어 온 후 UI변경 } } 주로 첫번째 방법을 이용했었는데요. 첫번째 방법처럼한다면 Manager.UI. 이런식으로 어떻게 접근을 해야할것같은데 어떻게 접근을 해야하는지 궁금합니다. 이런 총알 관련 UI가 UI_Scene을 상속받은 후 접근을 해야하는지.. 아니면 UI_HpBar.cs 코드처럼 2번째 방법을 이용하는게 나중에 코드들이많아지면 이방법이 더 좋은방법인가요?.이방법도 옵저버패턴인지도 궁금합니다.!
-
미해결[NarP Series] MVC 프레임워크는 내 손에 [나프1탄]
JDBC와 DB(오라클기반)수업 연계
수업 잘 듣고 있습니다. JDBC와 DB(오라클기반)수업 교육도 해 주실 수 있는지요??
-
미해결스프링 핵심 원리 - 기본편
궁금한점이 있어서 질문드립니다.
안녕하세요 강의 잘 보고 있습니다, 영상을 3번 들어도 이해가 조금 안되는 문제가 있습니다. 영상 18:20쪽에 보시면 생성자에서 MemberRepository , DisconuntPolicy 타입으로 스프링 빈 저장소에서는 -> memoryMemberRepository 와 rateDiscountPolicy 을 가지고 와서 주입시킨다라고 이해를 하였습니다. 그런데 궁금한점은 AutoAppConfig에서 AppConfig 를 필터를 걸어서 제외를 시켰는데, 어떤방식으로 스프링 빈 저장소에서 rateDisCountPolicy하고 memoryMemberRepository 를 주입시켰는지 궁금합니다.. 간단하게 말씀드리자면 AppConfig 에선 Bean등록 한건 제외시킨걸로 이해를 하였는데.. Appconfig도 실행이 되는거 같아서 질문드립니다.
-
미해결해커를 위한 iOS 앱 모의 해킹 전문 과정
탈옥 버전 질문드립니다.
아이폰 6s ios 14.4.2 버전으로 탈옥 하려는데요. checkra1n 0.12.2 beta 버전을 써도 ios 14.3 버전까지만 지원하네요. unc0ver도 마찬가지고요. 다운그레이드 하려고 보니 ipsw.me 에서도 14.4.2 버전밖에 구할수가 없는데 실습진행이 불가할까요??
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
통합 컨트롤러에서 핸들러의 기준은 컨트롤러인가요? 메서드인가요?
안녕하세요. 먼저 좋은 강의 감사합니다. MVC 패턴을 구현할 때에는 handlerMapping 정보에 key로 URL과 value로 controller 객체를 담고 실행했는데요. 통합된 컨트롤러를 하게되면 URL 정보가 메서드마다 매핑되는데 handler Mapping에 controller를 handler로 담고 있다면 어떻게 해당 메서드를 찾는지 궁금합니다. 감사합니다.
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
actuator 인증 관련
안녕하세요 선생님, actuator 관련해서 질문이 있습니다. 실습에서 actuator 관련해서 user-service의 WebSecurity에는 아래와 같은 코드를, http.authorizeRequests().antMatchers("/actuator/**").permitAll(); apigateway-service의 application.yml 파일에서는 아래와 같은 코드를 추가했습니다. - id: user-service uri: lb://USER-SERVICE predicates: - Path=/user-service/actuator/** - Method=GET, POST filters: - RemoveRequestHeader=Cookie - RewritePath=/user-service/(?<segment>.*), /$\{segment} 제가 궁금한 것은, actuator로 누구나 접근할 수 있게 permitAll() 설정을 해주었고, 인증 필터 또한 설정하지 않았는데 포스트맨으로 actuator 접근할 시 토큰이 필요한 이유에 대해 잘 모르겠습니다. (8분 15초 이후 관련)
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
patch명령어 질문입니다.
현재 스프링은 아니고 javax.servlet.http 기반으로 was를 구축해서 사용중입니다. 최신버전(?)을 사용중인데도 patch명령어가 없는데 스프링 rest api개발할때는 있는 건가요? https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
-
미해결1:1채팅 만들기(Android + Kotlin + Firebase)
4강 회원가입 강의중입니다 오류납니다.
조인 버튼 눌렀는데 실패라고 뜹니다. package com.example.chatting108import android.content.Intentimport android.nfc.Tagimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.util.Logimport com.google.firebase.auth.FirebaseAuthimport kotlinx.android.synthetic.main.activity_main.*class MainActivity : AppCompatActivity() { private val TAG : String? = MainActivity :: class.simpleName private lateinit var auth: FirebaseAuth private val IAG:String = MainActivity::class.java.simpleName override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) auth = FirebaseAuth.getInstance() join_button.setOnClickListener { val email =email_area.text.toString() val password = passwordarea.text.toString() auth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(this) { task -> if (task.isSuccessful) { Log.d(TAG,"성공") } else { Log.d(TAG, "실패") } } } login_button_main.setOnClickListener{ val intent = Intent(this, LoginActivity::class.java) startActivity(intent) } }} // Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { ext.kotlin_version = "1.4.32" repositories { google() jcenter() } dependencies { classpath "com.android.tools.build:gradle:4.1.3" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.3.5' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { google() jcenter() }}task clean(type: Delete) { delete rootProject.buildDir} plugins { id 'com.android.application' id 'kotlin-android'}apply plugin: 'kotlin-android-extensions'apply plugin: 'com.google.gms.google-services'apply plugin: 'com.android.application'apply plugin: 'kotlin-kapt'android { compileSdkVersion 29 defaultConfig { applicationId "com.example.chatting108" minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' }}dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'com.google.firebase:firebase-auth:20.0.4' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' //로그인 kapt 'com.google.dagger:dagger-compiler:2.8' kapt 'com.android.databinding:compiler:2.3.1' //파이어베이스 implementation platform('com.google.firebase:firebase-bom:27.0.0') implementation 'com.google.firebase:firebase-analytics'}
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
Post, Comment, User 및 dispatch 함수 타이핑
안녕하세요. 리액트-타입스크립트 강좌에서 배운 걸 이 강좌에도 적용하면서 진행중인데요. 우선 Post, Comment, User를 타이핑하면서 궁금한 점이 생겼습니다. 현재 Post, Comment, User를 위해 아래와 같은 인터페이스를 작성하였는데요. User의 경우 Post에도 들어있고, 구현에 따라 Comment에도 들어있고요. Post의 경우에도 구현에 따라서 Comment 안에도 들어갈 수도 있고, 아니면 그냥 현재처럼 postId라는 속성을 만들어서 사용할 수도 있을 것 같습니다. User 안에 있는 Followings나 Followers 같은 경우에도 현재는 User의 array로 했지만 user들의 id들의 array를 쓸 수도 있을 것 같고요. 이렇게 서로 다른 타입 간에 관계가 있을 때 타입 설계를 어떤 식으로 하는 게 바람직한지 궁금합니다. 아래처럼 최대한 작성된 인터페이스를 활용하는 경우에는 타입 관리를 하기에는 좋을 것 같지만 불필요하게 많은 데이터를 컴포넌트에 전송하거나 하는 건 아닌가 하는 생각이 들고요. 컴포넌트 내에서 필요한 정보만 간략하게 전달하는 방향으로 작성하면 대신에 타입을 관리하는 게 복잡해지는 것 같습니다. 이런 경우는 어떤 식으로 처리하는 게 좋을까요? export interface User { id: number; nickname: string; Posts: Post[]; Followings: User[]; Followers: User[]; } export interface Comment { User: User; //userId: number; content: string; postId: number; } export interface Post { id: number; User: User; content: string; Images: { src: string }[]; Comments: Comment[]; } 그리고 dispatch 함수나 redux-saga의 put함수의 경우 동적 액션 함수를 쓰지 않고 액션 객체를 바로 주는 경우에 dispatch<LoginRequestAction>({ type: LOG_IN_REQUEST, data }) 혹은 put<LoginSuccessAction>({ type: LOG_IN_SUCCESS, data: action.data }) 이런 식으로 작성하였는데 이런 식으로 하면 괜찮은 것인가요?
-
미해결WEB2 - Node.js
강의를 듣는 2021년 지금.. parse가 deprecated 되어 줄이가서 약간 변형해야되는 것 같아요!
var http = require('http'); var fs = require('fs'); var url = require('url'); var app = http.createServer(function(request,response){ var _url = request.url; const myURL = new URL('http://localhost:3000'+_url); var queryData = myURL.searchParams.get('id'); if(!queryData) { queryData = undefined; } if(_url == '/'){ _url = '/index.html'; } if(_url == '/favicon.ico'){ return response.writeHead(404); } response.writeHead(200); response.end(queryData); }); app.listen(3000);
-
미해결리액트로 나만의 블로그 만들기(MERN Stack)
npm run start 에러질문
PS C:\Users\KHS\Desktop\web_class\mern\client> npm run start > client@0.1.0 start > react-scripts start There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "webpack": "4.44.2" Don't try to install it manually: your package manager does it automatically. However, a different version of webpack was detected higher up in the tree: C:\Users\KHS\Desktop\web_class\mern\node_modules\webpack (version: 5.27.2) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if C:\Users\KHS\Desktop\web_class\mern\node_modules\webpack is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls webpack in your project folder. This will tell you which other package (apart from the expected react-scripts) installed webpack. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! npm ERR! code 1 npm ERR! path C:\Users\KHS\Desktop\web_class\mern\client npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c react-scripts start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\KHS\AppData\Local\npm-cache\_logs\2021-04-15T20_44_19_476Z-debug.log 이렇게뜨는데요 저기서 제시해준 1~4번부터는 시도해봤습니다만 같은에러가 뜹니다
-
미해결[NLP] IMDB 영화리뷰 감정 분석을 통한 파이썬 텍스트 분석과 자연어 처리
has no attribute 'syn0'
word2vec 모델이 syn0 라는 특성을 갖지 않는다고 나오는데 어떻게 해결해야 하나요 ?
-
미해결초보자도 만들 수 있는 스크롤 인터렉션. 1편 자바스크립트
수정사항과 질문 ( delay , queue )
1. 스펠링 수정하셔야될것같습니다~ * conuntBox --> countBox 2. delay와 queue 펑션을 사용하는 대신에 바닐라 자바스크립트에서는 어떻게 구현하는게 좋을까요? 여러번 setTimeOut을 쓰기에는 조금 불편해보이고, 자바스크립트로 이런구현을 하는데 고민을 해본 사람으로써, 혹시 방법이 있는지 여쭤봅니다. 예전에 저는 gsap의 staggerTo 펑션을 이용해서 구현했는데, 다른방법이 있는지요?
-
해결됨유니티(Unity)로 시작하는 게임개발: Part 2. C# 프로그래밍 입문
제공 함수는 실제 구현하는 몸체가 없다
제공 함수는 실제 구현하는 몸체가 없는데 이걸 쓸 수 있는 이유는 네임스페이스 덕분이라고 하셨잖아요 구현하는 몸체가 없다라고 하신건, 현재 사용자가 Random.Range()를 불러다 쓸 스크립트 상에 몸체가 없다라는 말씀이시죠?
-
해결됨[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
오류가 떴는데 뭐가 문제인지 모르겠어요
Assets\Script\Managers\Managers.cs(16,19): error CS0246: The type or namespace name 'UIManager' could not be found (are you missing a using directive or an assembly reference?) 이런 오류가 떴는데요 Managers 스크립트에서 UIManager _ui = new UIManager(); public static UIManager UI { get { return Instance._ui; } } 이 두 줄이 문제라고 떴습니다. 문제를 찾고 싶어서 강사님이 올려놓은 코드+정리와 비교해봤는데 도저히 못찾겠어서 질문적어봅니다.. 아래는 오류난 유니티 파일 링크입니다. https://drive.google.com/file/d/16Ayu9tOwC4CKTQcAKrsrTuPx1Sa3Rh_5/view?usp=sharing
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL 문제풀이
SET3_문제4번_Top Competitors 질문입니다.
저는 INNER JOIN 대신 LEFT JOIN으로 쿼리를 짰는데요. 정답은 맞게 나왔으나, 어떤 경우에 INNER JOIN 대신 LEFT JOIN 으로 했을 경우 문제가 나타나는지에 대해서 여쭙고 싶습니다. (실무에서) ㅡㅡ LEFT JOIN 대신 INNER JOIN 을 사용했을 경우 생길 수 있는 문제에 대해서도 함께 말씀해주시면 감사하겠습니다. INNER JOIN은 JOIN구문에서 해당 컬럼이 양쪽 테이블에 모두 존재하는 경우만 추출해서 LEFT JOIN을 사용해야 할 경우에, inner join을 사용하면 누락건이 발생할 수 있을 것 같은데요 제가 이해한 것이 맞나요? 이외에 또 어떤 문제가 발생할 수 있는지 궁금합니다. ㅡㅡ SELECT H.hacker_id, H.name FROM Submissions S LEFT JOIN Hackers H ON S.hacker_id = H.hacker_id LEFT JOIN Challenges C ON S.Challenge_id = C.Challenge_id LEFT JOIN Difficulty D ON C.difficulty_level = D.difficulty_level WHERE S.score = D.score GROUP BY H.hacker_id, H.name HAVING COUNT(S.submission_id) > 1 ORDER BY COUNT(S.submission_id) DESC, H.hacker_id ASC;
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part2: 게임 수학과 DirectX12
수업자료 질문
안녕하세요 선생님 수업자료를 다운받아 실행하면 아래 사진처럼 에러가 뜨는데요 1강의 프로젝트설정처럼 일일히 다 설정을 해줘야하는건가요?
-
미해결[백문이불여일타] 데이터 분석을 위한 중급 SQL 문제풀이
SET3_ 문제 2번_Weather Observation Station 11 질문.
안녕하세요, 저는 아래와 같이 쿼리를 짰는데요, 중간에 OR를 쓰면 (A AND B AND C AND D) OR (E AND F AND G AND H) 식으로 연산되는 것인지 궁금합니다. 괄호와 같은 것을 해주지 않아도 중간에 OR 해주면, 거기서부터 앞에 (A 조건과 B조건과 C조건과 D조건) 이거나 (E조건과 F조건과 G 조건과 H조건) 인 것을 출력하라. 라는 식이 되는 것인지 궁금합니다. 이렇게 중간에 끊어주는 것이 가능할지 고민이 됐었는데, 다행히 답은 맞았다고 나왔어요. 그런데 혹여 우연히 맞았을까봐 체킹합니다. OR 문구만 '이거나'로 연산되고 그 이후에 나오는 'AND'조건들은 다시 앞서 나온 조건들과 '이고'의 형태로 연산되진 않을지요? NOT LIKE 로 더 깔끔하게 푸는 방법이 있다면 그것도 알려주시면 감사하겠습니다. --------- SELECT DISTINCT city FROM station WHERE city NOT LIKE 'a%' AND city NOT LIKE 'e%' AND city NOT LIKE 'i%' AND city NOT LIKE 'o%' AND city NOT LIKE 'u%' OR city NOT LIKE '%a' AND city NOT LIKE '%e' AND city NOT LIKE '%i' AND city NOT LIKE '%o' AND city NOT LIKE '%u'
-
해결됨mongoDB 기초부터 실무까지(feat. Node.js)
isLive 역할
안녕하세요 강의 항상 잘 듣고 있습니다! blog모델의 isLive가 어떤 역할을 하는지 잘 이해가 가질 않는데 설명 부탁드려도 될까요? 감사합니다!