묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 핵심 원리 - 기본편
생성자 주입을 선택해라! 하면서 static 오류 질문드립니다.
먼저 오류 메시지 보여 드리겠습니다. C:\Tool\core\core\src\test\java\hello\core\order\OrderServiceImplTest.java:21:35 java: non-static method createOrder(java.lang.Long,java.lang.String,int) cannot be referenced from a static context 위의 클래스에서 createOrder를 할때 non- static으로 하면 오류가 납니다. OrderService 클래스에 가서 static인지 확인해 봤는데 non - static 인데 어느부분이 잘못되었는지 모르겠습니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
hibernate질문
해당 파일에서 hibernate가무엇인지궁금하고 hibernate는왜자동완성이 ddl-auto밖에안뜨는걸까요?
-
미해결스프링 핵심 원리 - 기본편
uuid 오류가 나서 질문드립니다.
사진을 보시는바와 같이 17번째 줄에 uuid 변수를 String으로 표시하고 init 안에 있는 uuid는 위에 MyLogger 안에 있는 uuid를 가리키는 것이니 타입을 표시 안했는데도 콘솔에 있는 init 결과와 close 메소드의 결과를 보시면 localhost:8080 이 안뜹니다. 혹시 제가 잘못한게 있을까봐 꼼꼼히 봤는데도 저렇게 뜹니다. 그래서 init 안에 있는 uuid를 this.uuid로도 바꿔봤는데도 안됍니다. 혹시 알 수 있을까요?
-
미해결
Do you want to make your career in Yoga, then YTTC is the better opportunity for you?
Om Yoga International has developed a 200-hour yoga teacher training Rishikesh. It is suitable for both beginners and more experienced yogis who wish to improve their physical and emotional well-being via Yoga. We will introduce 200 hours YTTC Rishikesh as a wonderful blend of theory and practice for developing their knowledge and proficiency in Yoga! for individuals who desire to advance their careers.
-
미해결
Why do People Like Branded Watches?
People buy watches because watches are excellent. But actually, people buy watches because they are under the impression that the straps watches for men are "branded" somehow. Branded watches are widely loved because they are expensive, stylish, and trendy. Because Adamo Design has an identity that people like, they like it because another brand does not easily replace them. Designer watches for women buy because they want a durable, functional piece of jewellery that they can wear every day. Branded trending men watches are popular because they are costly, stylish, and trendy.
-
미해결[리뉴얼] 처음하는 파이썬 머신러닝 부트캠프 (쉽게! 실제 캐글 문제 풀며 정리하기) [데이터분석/과학 Part2]
분류 모델 질문입니다.
분류 모델은 타이타닉의 생존자가 살았다 or 죽었다 처럼 2가지의 답중에 하나만 예측하는것만 가능한가요? 예를들어 날씨가 맑음, 흐림, 비, 눈 처럼 4가지 범주에서 예측하지는 못하나요? 할수있다면 어떤 모델을 공부하면될까요?
-
미해결Slack 클론 코딩[실시간 채팅 with React]
CRA와 직접세팅에 관해
강의 잘 듣고 있습니다. 한번더 강의를 복습겸 듣고 있다가 갑자기 든 의문입니다. 혹시 실무에서는 CRA보다 웹팩 바벨을 직접 세팅하는 방식으로 프로젝트를 진행하나요 ? 초보자의 시선으로 봤을때는 직접 세팅하는 방식이 더 좋다고 생각되는데 (제대로 하지는 못하지만) ...제대로 왜 좋은지에 대해서는 자세히 모르겠습니다 ㅠ 물론 기업에따라 다르겠지만 직접했을때 장점, cra를 썻을때의 단점 간단히 여쭤봐도 되겠습니까 ㅠㅠ
-
미해결
Are you finding the best place to buy kid's fashion apparel online?
Sweethommers is well-known for offering the finest deals on all children's products. So you can be Buying kids and fashion apparels at this convenient location, and we always go out of our way to make sure the best fit and high-quality products are provided. On our website, you can also buy kids and babies toys for your adorable children.
-
미해결
Which IPTV Services are Beneficial to You?
IPTV or Internet Protocol Television is a digital television service that broadcasts over the Internet. It is a new form of broadcasting that allows you to watch live TV shows on your computer, laptop, mobile phone and tablet. Parivar IPTV has been around for quite some time now, and it has been steadily gaining popularity among people. This is because IPTV Service offers excellent convenience to its users as they don't need to wait for the television show to be aired to watch it. They can stream it right away from the comfort of their homes and enjoy watching their favourite TV shows on their own time. The best IPTV Provider in USA also comes with many other advantages: lower cost, no commercials, easy access from anywhere and anytime, etc.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
혹시 강의에 올려주신 html 파일 관련해서
안녕하세요 강의를 거의 다 완강해가서 질문남기게 되었습니다 ! 스프링 MVC2편을 몇강 안남겨두었는데 아직도 여러가지 애노테이션 (@Autowired 랑 @Required ArgsConstructor) 등이 쓸 때마다 어떤 차이가 있는지 왜 사용하는지 등 머릿속에 개념이 희미해져서 부족한 내용들 강의 찾아보면서 DB랑 JPA 강의전에 스프링을 복습해보려고 하는데 데이터베이스를 사용하지 않으면서 스프링을 공부할만한 html 파일들이 없더라구요 그래서 김영한 선생님이 최종본으로 올려주신 파일들중 html만 베껴서 기록도 남길겸 깃헙에 공유하면서 저만의 소스로 페이지를 만들어봐도 되는지 여쭤보려고 질문 남기게 되었습니다 혹시 github에 김영한 선생님이 올려주신 html파일들만 제가 사용해서 스프링 공부를 복습해봐도 될까요 ??
-
미해결함수형 프로그래밍과 JavaScript ES6+
객체리터럴 형식은 어떻게 전개연산이 가능 한건가요??
객체에는 Symbol.iterator가 정의 되어 있지 않은데 어떻게 전개 연산을 할 수 있는건지 궁금합니다! 또 전개연산과 더불어 Symbol.iterator가 정의 되어 있어야지만 구조분해할당 도 가능 한건가요??
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문
형변환 질문입니다.
class Player { public int hp; public int attack; public void Move() { Console.Write("Player Move");} } class Knight : Player { public void Move() { Console.Write("Knight Move");} } Knight knight = new Knight(); Player player = knight; player.Move(); // Player Move 출력 위 코드에서 마지막 player.Move(); 할 때 Player Move가 출력이 되는 이유는 Player 타입으로 데이터 분석을 하고있기 떄문인가요? Knight타입이었던 knight를 player에 넣어줘서 knight Move가 나올 것을 기대하고 있었습니다. 그래서 제가 이해한 바로는 Player 타입으로 형변환이 일어나서 player move가 출력된다 이것이 맞나요?
-
미해결데브옵스(DevOps)를 위한 쿠버네티스 마스터
sessionAffinity 동작관련
실습에 보여주신 것처럼 kubectl edit svc http-go-svc 를 해서 ........ selector: app: http-go sessionAffinity: ClientIP sessionAffinityConfig: clientIP: timeoutSeconds: 10800 '''''''' sessionAffinity를 ClientIP로 수정하고 root@master0:~/network# kc run -it --rm --image=busybox sh 실행을 하고 선생님께서 하신것처럼 wget을 실행하면 If you don't see a command prompt, try pressing enter. / # wget -O- -q 10.106.148.16 Welcome! v3 http-go-5dc4cdbff7-czrd7 / # wget -O- -q 10.106.148.16 Welcome! v3 http-go-5dc4cdbff7-czrd7 / # wget -O- -q 10.106.148.16 Welcome! v3 http-go-5dc4cdbff7-jk5gr / # wget -O- -q 10.106.148.16 Welcome! v3 http-go-5dc4cdbff7-jsxrg / # wget -O- -q 10.106.148.16 Welcome! v3 http-go-5dc4cdbff7-czrd7 보여주신 것처럼 pod가 고정이 안되고 로드밸런싱이 이루어지는데, 제가 잘못 한 곳이 있을까요? kubectl version: v1.24.0 pod와 svc 정보는 아래와 같습니다. # pod 정보 root@master0:~/network# kc get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES bash 1/1 Running 1 (21m ago) 21m 10.0.1.46 node0 <none> <none> http-go-5dc4cdbff7-czrd7 1/1 Running 0 30m 10.0.1.106 node0 <none> <none> http-go-5dc4cdbff7-f75n5 1/1 Running 0 30m 10.0.1.94 node0 <none> <none> http-go-5dc4cdbff7-jk5gr 1/1 Running 0 31m 10.0.1.153 node0 <none> <none> http-go-5dc4cdbff7-jsxrg 1/1 Running 0 30m 10.0.1.174 node0 <none> <none> http-go-5dc4cdbff7-mk4fm 1/1 Running 0 30m 10.0.1.223 node0 <none> <none> # svc 정보 root@master0:~/network# kc get svc -o wide NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR http-go-svc ClusterIP 10.106.148.16 <none> 80/TCP 31m app=http-go kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 36m <none>
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
질문 있습니다!
이 문제를 큐를 생각 못하고 원형 연결 리스트를 통해 풀었는데 원형 연결리스트와 큐 중 어느 것이 알고리즘 상 효율적인 풀이가 되는 건지 여쭙고 싶습니다! 또 유사한 문제가 나오면 큐, 원형 중 어느 것을 선택해야 하는지에 대한 기준이 있을까요??
-
미해결우리를 위한 프로그래밍 : 파이썬 중급 (Inflearn Original)
asyncio.get_event_loop, getName 오류
코딩을 똑같이 했는데 실행을 시키면 아래와 같은 오류? 가 발생하는데 결과는 결과는 정상적으로 출력 됩니다. 무엇이 잘못 됐는지 잘 모르겠습니다. C:\p_study\p_chapter07_01.py:54: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() C:\p_study\p_chapter07_01.py:29: DeprecationWarning: getName() is deprecated, get the name attribute instead print('Thread Name : ', threading.current_thread().getName(), 'Start', url)
-
미해결쉽게 처음하는 파이썬 고급 크롤링 [Scrapy, Selenium, Headless Chrome]
start_urls = ['']가 제공해주신 것과 다르게 작동합니다.
영상의 8분 즈음에서 cmd 창에서, C:\Users\junyo\잔재미코딩\최종 복습\mynaverapi\mynaverapi>scrapy genspider navershopapi openapi.naver.com/v1/search/shop.json 작성하면, cmd 창에 Created spider 'navershopapi' using template 'basic' in module: mynaverapi.spiders.navershopapi 이렇게 뜨고, navershopapi.py가 생성됩니다. navershopapi.py 파일을 보면 class NavershopapiSpider(scrapy.Spider): name = 'navershopapi' allowed_domains = ['openapi.naver.com'] start_urls = ['http://openapi.naver.com/'] 이렇게 뜹니다. 제공해주신 파일의 navershopapi.py 에서는 class NavershopapiSpider(scrapy.Spider): name = 'navershopapi' allowed_domains = ['openapi.naver.com/v1/search/shop.json'] start_urls = ['https://openapi.naver.com/v1/search/shop.json'] 처럼 start_urls가 다르게 나옵니다. 물론, 제공한 파일의 start_urls로 변경해서 저장한 뒤에 실행하면 문제 없습니다. 다만, 왜 start_urls에 제가 cmd 창에서 명령한 대로 작동되지 않는 지 궁금합니다.
-
미해결모의해킹 실무자가 알려주는, SQL Injection 공격 기법과 시큐어 코딩 : PART 1
문의 드립니다.
VM에 윈도우를 설치하고 APM Setp 설치하고, 게시판도 설치 예저이고 한데요 burp로 패킷을 잡으려 고하면 어떻게 해야 할까요? http://192.168.158.129/ http://127.0.0.1/ 정상 접속은 되고, 그외로 vm 크롬에서 naver.com 접속 시 패킷이 정상적으로 잡히고 있습니다. 제가 뭘 놓치고 있는건가요?
-
해결됨[리뉴얼] React로 NodeBird SNS 만들기
안녕하세요.
안녕하세요. 강의를 듣는 도중 조언을 구하고자 글 남깁니다. 현영님 강의를 지금 쭉 따라하고 있는데 vsc에서 몇몇 오류를 안잡아주는걸 발견했습니다. 그래서 강의에 사용하시는 웹스톰은 다운 받고 확인해보니 잘 잡아줘서 한번 사용해보려 합니다. 저는 주로 프론트 개발을 하고 현영님 강의하시는 노드강의를 곧 들을거 같은데 웹스톰 정도면 충분할까요?? 가끔 파이썬을 사용하긴 하는데 파이참CE로도 잘 쓰곤 있어서 웹스톰이 나을지 얼티메이트로 가는게 나을지 궁금합니다. 감사합니다.
-
미해결[개념은 호옹~, 실습 빡] 스프링 부트, 입문!
19강 다시 질문 입니다
안녕하세요 ^^ 강의력은 최고!!!!! @PostMapping("/api/articles") public Article create(@RequestBody ArticleDTO dto) { Article article = dto.toEntity(); return articleRepository.save(article); } 테스트결과는 여전히 { id:4, title: null, content: null } 나와구글 돌려봐도 안되어서 질문 드립니다.
-
미해결스프링 시큐리티
로그아웃 커스텀 처리
아래처럼 securityConfig에 커스텀 로그아웃 경로에 대해 어떠한 permitAll 같은 권한 설정을 하지 않았는데도 제가 작성한 컨트롤러까지 잘 들어가서 로그아웃처리가 됩니다. 왜 허용이 되어있는거죠? 별도로 로그아웃 경로에 대해 permitAll 하지 않으면 접근이 막혀야 하는 것 아닌가요? @Configuration@EnableWebSecurity@RequiredArgsConstructorpublic class SecurityConfig extends WebSecurityConfigurerAdapter { private final UserDetailsService userDetailsService; @Bean public AuthenticationProvider authenticationProvider() { return new FormAuthenticationProvider(userDetailsService, passwordEncoder()); } @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.authenticationProvider(authenticationProvider()); } @Bean public PasswordEncoder passwordEncoder() { return PasswordEncoderFactories.createDelegatingPasswordEncoder(); } @Override public void configure(WebSecurity web) throws Exception { web.ignoring().requestMatchers(PathRequest.toStaticResources().atCommonLocations()); } @Override protected void configure(final HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/", "/users").permitAll() .antMatchers("/myPage").hasRole("USER") .antMatchers("/messages").hasRole("MANAGER") .antMatchers("/config").hasRole("ADMIN") .anyRequest().authenticated() .and() .formLogin() .loginPage("/login") .loginProcessingUrl("/login_proc") .defaultSuccessUrl("/") .permitAll(); }}