묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
오류
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-08-03 16:23:18.841 ERROR 14112 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPLICATION FAILED TO START*************************** Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐| initDb defined in file [C:\Users\pkl46\OneDrive\Desktop\spring\jpashop\jpashop\out\production\classes\jpabook\jpashop\InitDb.class]↑ ↓| jpabook.jpashop.InitDb$InitService└─────┘ Action: Despite circular references being allowed, the dependency cycle between beans could not be broken. Update your application to remove the dependency cycle. Process finished with exit code 1 이런 오류가 뜨면 어느 부분을 놓친 걸까요? ㅜㅜ
-
해결됨파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
project 폴더 설정 관련 질문
안녕하세요, askcompany 프로젝트 폴더 설정하는 부분에서 몇가지 질문이 있습니다. 1. DEBUG 모드일때만 프로젝트 폴더의 urls.py에 media 관련 url을 추가해주는 이유가 있을까요? 해당 url은 어떤 역할을 하게 되는 것인가요? 2. 프로젝트 폴더의 urls.py에서 사용한 from django.conf import settings과 django github의 django.conf.global_settings.py의 차이가 궁금합니다. 3. 2번의 settings와 프로젝트 폴더에 자동으로 생성된 settings.py의 차이가 궁금합니다. 4. settings를 개발과 운영으로 나눴는데 그렇다면 settings/prod.py에 DEBUG=False와 같은 설정을 바꿔야 하는게 아닌지 궁금합니다. 감사합니다.
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
관리자 도메인이 존재 할때의 서비스 구조
안녕하세요. 강의 잘 봤습니다. 혹시 관리자 도메인이 존재할 시에는 어떻게 구조가 나눠지는지 참고 할 사례가 있을가요? 일반적으로 클라이언트에서 구매가 이루어진다면 상품에 대한 소비(클라이언트)와 구성을 담당하는 도메인(관리자 도메인)이 있을건대 이럴때는 어떤게 분리 되는지 궁금합니다. 클라이언트에서 접근하는 상품 영역과 관리자에서 접근하는 상품 영역은 하나의 상품 서비스 서버로 구성하는지, 분리해서 별도의 서비스 봐야되는지 궁금합니다. 실제 서비스에 녹이고 있는대 이부분을 적용하는 게 가장 어렵내요. 소비에서의 서비스 트래픽과 구성에서의 서비스 트래픽이 다르다 보니 서버의 구성을 잡는게 고민되내요 혹시 참고할 만한 사례가 있다면 부탁 드립니다.
-
미해결
Travis Scott Sneakers thousands of items
It's a new year and old notions of gendered fashion are firmly in the past. The proof is not only on the runways but in the outfits worn by guests outside. Debuting with a six-piece collection of fashion-forward, functional essentials, these styles can be used for layering or standalone wardrobing. The seamless fabrics are made in a factory that specializes in knitting processes which minimize waste, further demonstrating the brand's sustainable use of resources. The season was not without a little flair. Moon boots also made a handful of appearances, coupled with plaid midi skirts, fashionable fleeces, and acid wash jeans. Because there are millions of choices on Amazon and going through the results for even a single inquiry can be exhausting, we went through tens of Travis Scott Sneakers thousands of items and put together a definitive list of the best gifts you can shop this year with Prime. Our non-negotiable criteria? Items had to be unique, high-quality, practical, and chic, because nobody has time for anything else these days. The good news is that getting out of a winter style rut is easier than you may think. Moon boots also made a handful of appearances, coupled with plaid midi skirts, fashionable fleeces, and acid wash jeans. Light blue lug soled Chelsea boots were used as a pop of color to brighten up looks made up of grey tailoring, and ocean blue rubber ankle boots contrasted pastel trousers. Moon boots also made a handful of appearances, coupled with plaid midi skirts, fashionable fleeces, and acid wash jeans. Unbalanced III is centered around New Balance's 1080v11 model, a Travis Scott Shoes shoe highly favored among marathon runners for its comfort and support. Across the collection is a larger theme of asymmetry that poses the concept of running as a measure of personal growth, rather than a simple start-to-finish achievement. Now he's putting those materials to work on those party pants and a matching slip dress, as well as on contrast linings that elevate his tailoring and as fabric covered stone appliques on an evening dress. It is no surprise that designers consistently find ways of incorporating the heritage pattern into their spring and summer offerings. Let's be honest, Coachella is all about fashion - risk-taking fashion that is. Whether it's trending, outdated or never-before-seen (like this top made from Instax photographs), festivalgoers are slightly more blase toward Travis Scott x Nike Shoes the rules. In a palette of off-white neutrals paired with charming accessories, it's a look that anyone, man or woman, would be happy to sport this season. Light blue lug soled Chelsea boots were used as a pop of color to brighten up looks made up of grey tailoring, and ocean blue rubber ankle boots contrasted pastel trousers. The front pockets, once visible, were hidden on the side seam. During couture week in the '90s, the grand reveals of Atelier brides were always a highlight. Willow recognizes that systemic change is needed. That doesn't mean having to simplify it to the point of reducing its impact.
-
해결됨스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
WebServerFactoryCustomizer
스프링 부트 없이 Legacy Project 에서 @Overridepublic void customize(ConfigurableWebServerFactory factory) { ErrorPage errorPage404 = new ErrorPage(NOT_FOUND, "/error-page/404"); ErrorPage errorPage500 = new ErrorPage(INTERNAL_SERVER_ERROR, "/error-page/500"); ErrorPage errorPageEx = new ErrorPage(RuntimeException.class, "/error-page/500"); factory.addErrorPages(errorPage404, errorPage500, errorPageEx);}웹서버커스터마이저같은 공통처리부를 만들려면 ErrorPageController 와 인터셉터를 사용하는 수 밖에 없나여?? import org.springframework.boot.web.server.WebServerFactoryCustomizer;부트를 사용하지 않았을 때용
-
해결됨스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
HelloBean에 빈 이름을 지정해야 하는 이유
안녕하세요 단순한 질문이긴 한데.. 제가 뭔가 착각하고 있나 싶어 질문 드립니다 ㅠ @Component 어노테이션을 붙이면 빈으로 등록이 되죠 그리고 등록될 때 이름을 지정하지 않으면 해당 클래스 이름의 첫글자를 소문자로 바꿔 등록된다고 이해하고 있는데요 강의 1분 24초에 HelloBean 이라는 클래스를 하나 만들어서 빈으로 등록해 사용하는데 이 때 @Component static class HelloBean{ } 이렇게만 등록해도 helloBean 이라는 이름으로 빈이 등록되 않나요? @Conponent("helloBean") 이라고 이름을 지정해 주어야만 정상적으로 코드가 동작하고 이름을 지정해 주지 않으면 빈을 찾을 수 없다는 에러가 발생하던데 결과적으로 빈의 이름을 지정하지 않아도 타임리프에서 사용된 빈의 이름과 일치할 텐데 빈 이름을 지정해야 코드가 정상적으로 동작하는 이유를 모르겠습니다..
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
임베디드 타입 내에서 엔티티 타입을 지정할 수 있다고 하셨는데, 정확한 방법이 궁금합니다.
1. MailMan이라는 Entity를 만들었습니다. package hellojpa; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class MailMan { @Id @GeneratedValue private Long id; } 2. Address에서 해당 Entity를 사용해보기로 했습니다. package hellojpa; import javax.persistence.*; @Embeddable // 임베디드 타입, 해당 타입을 쓰는 엔티티의 DB 테이블에는 Address 로 들어가는 게 아닌, 각자의 필드가 스키마로 들어가게 된다. 임베디드 타입은 엔티티의 값일 뿐이다! public class Address { private String city; private String street; @Column(name = "ZIPCODE") private String zipcode; @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "MY_MAILMAN_PK", insertable = false, updatable = false) private MailMan mailMan; // 임베디드 타입에서 엔티티 타입을 들고 있을 수 있다! 근데 안되네..? public Address() { } ...이하 생략 3. insertable = false, updatable = false 를 해제하면 코드가 돌지 않습니다. 4. 해당 설정을 제외하고서도 돌릴 수 있는 방법이 있을 것 같은데, 제가 어떠한 부분을 빼먹은건지 알 수 있을까요?
-
미해결우디의 포토샵 강좌
배경색
전체적으로 작업 마무리해봤는데 혹시 배경색이 너무 어두워서 조금더 밝게 하고싶으면 복사한레이어에서 다시 휴/새터레이션 설정을 다시해도 되는 부분인가요?(다시 설정해보니 너무 밋밋한거같기두 하고 설정을 조금 밝게 해야되는것 같더라구요)
-
미해결
mobile App development cost in Australia
mobile App development cost in Australia:- Likewise, there are situations when during the time spent improvement, with a developing profundity of understanding, a reconsidering of the first errand happens, which can influence the last expense. That is, there are subtleties that already couldn't be predicted, and choices are made to eliminate something from the essential rundown as superfluous or add anything to it. This present circumstance can happen when you make one of a kind applications that have no analogs. It is likewise consistently challenging to foresee an application improvement cost ahead of time for this situation. Read More:- https://omninos.com.au/mobile-App-development-cost-in-Australia Follow Us On Facebook:- https://www.facebook.com/omninosTechnologies Follow Us On Twitter:- https://twitter.com/omninoss Follow Us On Instagram:- https://www.instagram.com/omninosinsta/ Follow Us On Linkedin:- https://www.linkedin.com/company/omninos-solutions/ Follow Us On Behance:- https://www.behance.net/omninos Follow Us On Dribble:- https://dribbble.com/iapp_omninos
-
해결됨스프링 핵심 원리 - 기본편
ApplicationContext와 static inner class 관련
안녕하세요. 테스트 코드 작성 중 궁금한 점이 생겨서 질문합니다. hello.core.beanfind 패키지의 ApplicationContextSameBeanFindTest 클래스 안에 선언된 아래 코드에서 SameBeanConfig 클래스를 static 내부 클래스로 만드셨는데요, 나름 추측한 이유가 맞는지 궁금해서 질문합니다. AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(SameBeanConfig.class); ... 테스트 코드 ... @Configuration static class SameBeanConfig { ... } SameBeanConfig 클래스의 static 키워드를 없애고(instance 내부 클래스) 실행을 했을 때 org.springframework.beans.factory.UnsatisfyedDependecnException 에러가 뜨고, 해당 에서는 빈 의존관계가 주입되지 않았을 때 나타납니다. instance 내부 클래스로 하는 경우 ac 인스턴스가 생성되는 시기보다 늦게 생성되어 빈 의존관계 주입이 실패하는게 아닌가.. 라고 추측을 해봤습니다. (static 키워드가 붙은 경우 클래스가 메모리가 올라갈 때 생기므로 ac 인스턴스보다 먼저 생성된다고 생각합니다.) 제 추측이 맞는걸까요? 이유가 너무 궁금합니다!!
-
해결됨호돌맨의 요절복통 개발쇼 (SpringBoot, Vue.JS, AWS)
컨트롤러 테스트시 size 없이 전달할때 npe
안녕하세요 호돌맨님! 이번 영상을 다 실습하고 컨트롤러 테스트시에 size값을 주지 않는 경우를 테스트 해봤더니 npe가 발생하더라구요 오류는 PostSearch 클래스에 @NoArgsConstructor @AllArgsConstructor 두 어노테이션을 붙여서 해결했는데요 정확한 오류의 원인이 무엇인지 궁금해서 질문드립니다 서비스 테스트에서는 @Builder.Default 어노테이션을 사용한 초기값 설정이 잘 됐습니다 컨트롤러 테스트에서만 이 오류가 발생하는 원인이 궁금합니다 서비스 테스트에서는 postSearch 객체 생성 후 postService.getList() 메서드에 전달했는데요 빌더로 객체 생성시 클래스내에 생성자가 없었으니 롬복이 @Builder 어노테이션이 붙은 클래스에 암묵적으로 @AllArgsConstructor를 만들고 필드 값을 주입하는 시점에 초기화가 된건가요? 이유가 궁금합니다!
-
미해결
2D에서 Y축 크기를 구하는 법...
Debug.Log(transform.localScale.Y); 제가 작성한 코드는 이렇습니다 Assets\Script\LongNot.cs(12,40): error CS1061: 'Vector3' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'Vector3' could be found (are you missing a using directive or an assembly reference?) 이게 에러 메세지인데 어떻게 해야하는지 도와주세요
-
미해결모의해킹 실무자가 알려주는, SQL Injection 공격 기법과 시큐어 코딩 : PART 1
질문 있습니다.
강의 내용에서 (select * from ex_member where 1=1)의 추론구문으로 하면된다고 하셨는데 Oracle 한정인거죠?? Mysql 이나 MSSQL 같은 경우에는 어떠한 추론 구문으로 진행하면 되는 걸까요? 위 구문으로 Mysql Mssql 두가지에서 했는데 오류만 나더라고요.
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
mmdetection (mask_rcnn) 인퍼런스 관련 질문입니다.
안녕하세요. 좋은강의 잘 듣고 있습니다. 얼마전에 mmd-to-tensorrt 질문을 올렸었는데요. 사실 해당 라이브러리를 사용해보려 한 목적이 Inference의 속도를 향상시키려는 시도의 일환이었습니다. 혹시 mmdetection을 이용한 mask_rcnn 의 추론 속도를 향상시키는 다른 방안을 알고계신가 싶어 질문 드립니다. mmdetection에 포함된 다른 instance segmentation 검출 로직인 yolact를 사용하면 미세하게 속도의 향상이 있으나 검출 정확성 측면에서 mask rcnn이 더 낫더라구요. 항상 좋은 강의 감사드립니다.
-
해결됨따라하며 배우는 리액트 A-Z[19버전 반영]
이 강의 수강 도중 오류가 발생했어요!
파란색 선으로 표시한 부분의 코드를 치니까 에러 때문에 막혀서 진행을 전혀 못하고 있습니다. 구글링 해봤는데도 해결이 안 되네요. 친구가 로더 문제 같다고 해서 바벨을 지우고 재설치해봤지만 변화가 없었습니다. 혹시 해결 방법을 제시해주실 수 있을까요?.. ㅠㅠ
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
스프링 빈 메시지 직접 등록 국제화 질문
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. 안녕하세요 강의를 듣다 질문이 생겨서 글 올립니다. @Bean public MessageSource messageSource() { ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); messageSource.setBasenames("messages", "errors"); messageSource.setDefaultEncoding("utf-8"); return messageSource; } 여기서 국제화를 하려면 위와 같이 messages_en.properties, messages_ko.properties와 같이 파일명 마지막에 언어 정보를 주면 된다고 하셨는데 어떤식으로 마지막에 적어줘야하는지 이해가 안되서 질문드립니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
test오류 발생
오류가 발생합니다. JUnit5를 사용하였으며 testMember()에서 Unsatisfied dependency expressed through field 'memberRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'jpabook.jpashop.MemberRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jpabook.jpashop.MemberRepositoryTest': Unsatisfied dependency expressed through field 'memberRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'jpabook.jpashop.MemberRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 의 에러가 발생합니다. 구글링 시 @Repository 또는 @Service 애노테이션을 빼먹으면 발생하는 오류라고 하지만, 애노테이션은 모두 작성하였습니다.
-
미해결Django REST Framework 핵심사항
The serializer field might be named incorrectly and not match any attribute or key on the `User` instance.
AttributeError at /api2/post/Got AttributeError when attempting to get a value for field `title` on serializer `PostListSerializer`. The serializer field might be named incorrectly and not match any attribute or key on the `User` instance. Original exception text was: 'User' object has no attribute 'title'.위와 같은 에러가 발생합니다.코드를 봤는데 이유를 잘 모르겠습니다...답변을 주신다면 너무 좋을 것 같습니다serializers.pyviews.pyurls.py
-
미해결부트스트랩 5(Bootstrap 5) - 기초부터 웹 프로젝트 만들기
3:10 -> 3:16 코드 질문 있습니다^^
<div class="container-xxl"> <div class="row align-items-center"> <div class="col-md-9 welcome"> <h1 class="welcome-title fw-light">Welcome to <span class="text-warning fw-bold"> my first website.</span> Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellendus, officiis.</h1> <div class="divider"></div> <div class="row welcome-desc"></div> </div> <div class="col-md-3 letsgo"></div> </div> </div> 3:10 쯤 Lorem 텍스트를 넣고 난 후에 저 코드(85번줄)가 없어진것 같습니다^^ + 그리고 새로운 코드인 <div class="row welcome-desc"></div> 가 (84번줄)생긴 것 같구요 제 에디터 emmet에 문제가 있는걸까요? 모르는 기능이 있는걸까요? 아니면 뭘 놓친걸까요ㅠㅜㅜ
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
python .\test.py
비주얼 스튜디오코드 뉴 터미널에서 python .\test.py를 입력하여도 python이라는 값만 나옵니다 테스트파일이 실행이 되지 않습니다.