" Before you merge this PR Create an ssh key-pair. Open this utility . Select: RSA and 4096 and leave Passphrase blank. Click the blue button Generate-SSH-Keys . Navigate to this link and click New repository secret . Copy and paste the Private Key into the Value field. This includes the "---BEGIN RSA PRIVATE KEY---" and "--END RSA PRIVATE KEY---" portions. In the Name field, name the secret SSH_DEPLOY_KEY . Navigate to this link and click the Add deploy key button. Paste your Public Key from step 1 into the Key box. In the Title , name the key anything you want, for example fastpages-key . Finally, make sure you click the checkbox next to Allow write access (pictured below), and click Add key to save the key." 여기에서 "Open this utillity"를 클릭하면 ssh Key를 획득하는 과정에서 "522 connection time out" 에러가 지속 발생합니다. 인터넷 검색을 해 보니 크롬을 재 설치 하거나, 복구, 기타 삭제등을 통해서 해결해 보라고 해서 시도해 보았으나 해결이 되지 않아 문의 합니다.
Q1. 강의를 보니, 배포는 벡엔드 쪽에서 담당하는 것같은데요. 그런데, 프론트엔드 면접시에 배포에 관한 이해를 요구하는 이유가 뭔가요?? Q2. 큰 기업같은 경우는 배포만 담당하는 부서가 따로 있다고 들었는데요. 그런게 아니라면, 일반적으로 프론트엔드 개발자가 실무에서 배포를 다루는 경우가 있나요?? Q3. 저는 현재 프론트엔드 취준생인데요. "파이어베이스"나 "헤로쿠" 정도만 사용하고 있습니다. 근데, 많은 곳에서 AWS 사용량이 압도적이다보니, 취업을 위해 AWS 사용법을 필수적으로 알아야할지 여줘보고 싶습니다. Q4. 간혹 프론트엔드 개발자 뽑는다면서, 리엑트 네이티브나 스위프트를 이용한 앱 개발까지 같이할 수 있는 능력을 요구하는 곳이 있는데요. 요즘은 프론트엔드 개발자가 웹 + 앱 개발을 둘다 하는게 당연한 추세인가요??
안녕하세요. 올려주신 강의 잘 듣고 있습니다! mongoDB 관련 질문은 아닙니다만, 앞서 강의를 듣다 궁금한게 생겨서요. req.params, req.query 와 같은 변수에 대한 에러처리 관련 질문인데요, 변수가 1-2개일 땐 하나씩 에러 처리를 해도 괜찮다 생각했는데, req.body와 같은 곳에 많은 변수가 들어오게 될 때도 하나 하나씩 에러처리를 해줘야 하는건가요? 아니면 또 다른 방법이 있는건지 궁금합니다.
[하루 10분|Web Project] HTML/JS/CSS로 나만의 심리테스트 사이트 만들기
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요! 강의 잘 듣고 있습니다 문제마다 이미지를 넣고 있습니다 이미지가 뜨긴하는데 첫번째사진만 계속 떠요 다음으로 안넘어갑니다ㅠㅠ 혹시 <img src="./img/question/" class="card-img-top"> 이미지경로가 틀렸을까요??
명령형으로만 코드를 작성해와서 이런 방식으로 사고하는게 아직은 많이 미숙한것 같습니다. 명령형으로 작성할 수 있는 모든 코드를 함수형으로 동일하게 표현할 수 있나요?? 가르쳐주신데로 명령형은 상태를 정의하고 변화시키는 방식으로 사용하는데 함수형은 그렇지 않기 때문에 질문드립니다!
안녕하세요. 질문드립니다. 강의 0:51 부분에 댓글의 갯수를 가져올 때 post.Comments.length로 가져오셨는데 만약 전체 댓글이 10만개가 있다고 가정하면 이렇게 많은 댓글 갯수를 셀 때는 post.Comments.length를 통해 댓글 갯수를 세서 가져오는 것보다 백엔드에서 ORM의 도움을 받아서 count같은 메서드를 써서 DB에서 전체 댓글 갯수를 백엔드로부터 받아서 가져오는 방법이 더 성능적으로 효율적인 방법일까요?
이것저것 에러는 잡았는데 정확히 어디서 에러가 발생해서 안되는지 모르겠습니다. 2022-06-08 00:52:56.897 WARN 1532 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2022-06-08 00:52:57.389 WARN 1532 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : Unable to start LiveReload server 2022-06-08 00:52:57.540 INFO 1532 --- [ restartedMain] o.s.c.openfeign.FeignClientFactoryBean : For 'order-service' URL not provided. Will try picking an instance via load-balancing. 2022-06-08 00:52:58.184 INFO 1532 --- [ restartedMain] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@24caec5a, org.springframework.security.web.context.SecurityContextPersistenceFilter@d9e9a64, org.springframework.security.web.header.HeaderWriterFilter@7e87d99f, org.springframework.security.web.authentication.logout.LogoutFilter@65879726, com.example.userservice.security.AuthenticationFilter@796d03f1, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@91adcab, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@224e4c1, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@227c9777, org.springframework.security.web.session.SessionManagementFilter@15c61b3f, org.springframework.security.web.access.ExceptionTranslationFilter@569dde37, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2c7bf90a] 2022-06-08 00:53:03.870 WARN 1532 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointWebMvcHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionsEndpoint' defined in class path resource [org/springframework/cloud/function/context/config/FunctionsEndpointAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionsEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionCatalog' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionCatalog' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser 2022-06-08 00:53:03.904 INFO 1532 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2022-06-08 00:53:04.061 INFO 1532 --- [ restartedMain] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down' 2022-06-08 00:53:04.084 WARN 1532 --- [ restartedMain] o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-176] 2022-06-08 00:53:04.085 INFO 1532 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2022-06-08 00:53:04.103 INFO 1532 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 2022-06-08 00:53:04.116 INFO 1532 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2022-06-08 00:53:04.387 INFO 1532 --- [ restartedMain] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-06-08 00:53:04.560 ERROR 1532 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointWebMvcHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionsEndpoint' defined in class path resource [org/springframework/cloud/function/context/config/FunctionsEndpointAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionsEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionCatalog' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionCatalog' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.19.jar:5.3.19] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.19.jar:5.3.19] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.7.jar:2.6.7] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) ~[spring-boot-2.6.7.jar:2.6.7] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) ~[spring-boot-2.6.7.jar:2.6.7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-2.6.7.jar:2.6.7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) ~[spring-boot-2.6.7.jar:2.6.7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[spring-boot-2.6.7.jar:2.6.7] at com.example.userservice.UserServiceApplication.main(UserServiceApplication.java:19) ~[classes/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.6.7.jar:2.6.7] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionsEndpoint' defined in class path resource [org/springframework/cloud/function/context/config/FunctionsEndpointAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionsEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionCatalog' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionCatalog' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.19.jar:5.3.19] ... 24 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionsEndpoint' defined in class path resource [org/springframework/cloud/function/context/config/FunctionsEndpointAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionsEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionCatalog' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionCatalog' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) ~[spring-context-5.3.19.jar:5.3.19] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.lambda$createEndpointBean$1(EndpointDiscoverer.java:145) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean.getBean(EndpointDiscoverer.java:447) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getFilterEndpoint(EndpointDiscoverer.java:307) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isFilterMatch(EndpointDiscoverer.java:295) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isEndpointFiltered(EndpointDiscoverer.java:270) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isEndpointExposed(EndpointDiscoverer.java:254) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.convertToEndpoints(EndpointDiscoverer.java:181) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.discoverEndpoints(EndpointDiscoverer.java:125) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getEndpoints(EndpointDiscoverer.java:117) ~[spring-boot-actuator-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.autoconfigure.health.HealthEndpointWebExtensionConfiguration.getHealthEndpoint(HealthEndpointWebExtensionConfiguration.java:80) ~[spring-boot-actuator-autoconfigure-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.autoconfigure.health.HealthEndpointWebExtensionConfiguration.access$000(HealthEndpointWebExtensionConfiguration.java:70) ~[spring-boot-actuator-autoconfigure-2.6.7.jar:2.6.7] at org.springframework.boot.actuate.autoconfigure.health.HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.healthEndpointWebMvcHandlerMapping(HealthEndpointWebExtensionConfiguration.java:92) ~[spring-boot-actuator-autoconfigure-2.6.7.jar:2.6.7] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.19.jar:5.3.19] ... 25 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'functionCatalog' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.class]: Unsatisfied dependency expressed through method 'functionCatalog' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.19.jar:5.3.19] ... 52 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avroSchemaMessageConverter' defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1607) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1571) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1460) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1347) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.19.jar:5.3.19] ... 66 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter]: Factory method 'avroSchemaMessageConverter' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.19.jar:5.3.19] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.19.jar:5.3.19] ... 83 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/apache/avro/Schema$Parser at org.springframework.cloud.function.context.converter.avro.AbstractAvroMessageConverter.<init>(AbstractAvroMessageConverter.java:52) ~[spring-cloud-function-context-3.2.4.jar:3.2.4] at org.springframework.cloud.function.context.converter.avro.AbstractAvroMessageConverter.<init>(AbstractAvroMessageConverter.java:56) ~[spring-cloud-function-context-3.2.4.jar:3.2.4] at org.springframework.cloud.function.context.converter.avro.AvroSchemaMessageConverter.<init>(AvroSchemaMessageConverter.java:53) ~[spring-cloud-function-context-3.2.4.jar:3.2.4] at org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration$AvroSchemaMessageConverterConfiguration.avroSchemaMessageConverter(ContextFunctionCatalogAutoConfiguration.java:180) ~[spring-cloud-function-context-3.2.4.jar:3.2.4] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.19.jar:5.3.19] ... 84 common frames omitted Caused by: java.lang.ClassNotFoundException: org.apache.avro.Schema$Parser at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na] ... 93 common frames omitted
안녕하세요! 이번 실습에서 axios를 통해 상품데이터를 받아와서 화면에 보이게 하는 과정을 하다보니 기존에 products 변수에 직접 객체들을 작성하여 화면에 나타내는 것 보다 느리게 화면에 올라오는 것을 볼 수 있는데요. 이건 그냥 mock server를 통해 받아와서 그런거라고 이해하면 될까요? 상품이 세가지 밖에 없는데, 로딩 속도가 현저히 떨어지는 것이 의아하여 질문드립니다!
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 비슷하면서도 slice와 map을 이용해서 문제를 풀었는데 시간복잡도상으로 slice가 들어가면서 더 좋지 않은 방식으로 풀게 된걸까요? function solution ( arr1 , arr2 ){ let answer =[]; let n = 0 , m = 0 ; while ( true ){ if ( arr1 [ n ]< arr2 [ m ]) { answer . push ( arr1 [ n ]) n ++ if ( n >= arr1 . length ){ arr2 . slice ( m ,). map ( data => answer . push ( data )) break ; } } else { answer . push ( arr2 [ m ]) m ++ if ( m >= arr2 . length ){ arr1 . slice ( n ,). map ( data => answer . push ( data )) break ; } } } return answer ; }
#include <iostream> #include <vector> using namespace std; int n = 0, ch[11], l[11]; vector<int> v; void DFS(int L) { if (L == n + 1) { int sum = 0; for (int i = 1; i <= n; i++) { if (ch[i] == 1) { sum += l[i]; } } v.push_back(sum); } else { ch[L] = 1; DFS(L + 1); ch[L] = 0; DFS(L + 1); } } int main() { //FILE* fp = nullptr; //freopen_s(&fp, "input.txt", "rt", stdin); cin >> n; for (int i = 1; i <= n; i++) { cin >> l[i]; } v.push_back(0); DFS(1); int s = v.size(); for (int i = 1; i <= s/2; i++) { int l = v[i]; int r = v[s - i]; if (l == r) { cout << "YES"; return 0; } } cout << "NO"; return 0; } 트리의 정가운데를 기준으로 나눠서 생각해보면 반대편에 있는 값이 서로 겹치지 않는 값이더라구요. 위 특성을 활용하면 이런 풀이도 가능한 것 같습니다.
바보같은 질문일 수 있겠지만 용기내어 해보겠습니다. 일단 저는 슬리액 백, 프론트 둘 다 구매해서 듣고있습니다. 슬리액 프론트 백을 참고해서 다른 프로젝트에 적용시켜보고 있는 과정에서 궁금한점이 생겼습니다. 여기서 mutate에 데이터를 넣고 swr data에 로그인 된 데이터가 들어가는걸로 이해를 했고, http://localhost:1010/auth/ 에서 GET 으로 API를 요청해서 데이터를 받아와서 페이지에서 유저가 로그인 되어있음을 알 수 있다고 이해했습니다. 그런데 서버단에서는 위에 있는 코드로 GET 요청을 해서 유저 정보를 가지고 오는건데 유저를 찾는 부분도 없는데 어떻게 들고 온다는 건지 모르겠습니다.
안녕하세요, 강의 잘 보고 있습니다. BlockOperation 자체는 Operation에 등록된 block들이 concurrent하게 실행된다고 나와 있고, 이걸 serial하게 실행하고 싶으면 이 BlockOperation을 maxConcurrentOperationCount를 1로 설정한 OperationQueue에 넣으면 된다고 하신 걸로 이해했습니다. 그래서 다음과 같이 코드를 작성하고 돌려봤는데, 등록한 block의 순서대로 print되지 않는 걸 봐서는 serial하게 실행되지 않는 것 같습니다. let operation = BlockOperation() for i in 0 ..< 1000 { operation.addExecutionBlock { print(i, Thread.current) } } let queue = OperationQueue() queue.maxConcurrentOperationCount = 1 queue.addOperation(operation) 이 코드를 실행하면 i가 0부터 999까지 순서대로 프린트되지 않고 랜덤하게 프린트됩니다. let queue = OperationQueue() queue.maxConcurrentOperationCount = 1 for i in 0 ..< 1000 { queue.addOperation { print(i, Thread.current) } } 반면에 위처럼 BlockOperation을 사용하지 않고 maxConcurrentOpreationCount가 1인 OperationQueue에 block을 순서대로 추가하면, 이전에 설명해주신 대로 serial하게 실행되어 0부터 999까지 차례대로 프린트됩니다. Thread.current의 프린트 결과를 봐도 두 번째 코드보다 첫 번째 코드에서 더 많은 쓰레드를 사용하는 것으로 보입니다. (질문과는 관계 없긴 한데, 이 과정에서 OperationQueue가 항상 동일한 쓰레드를 사용해서 Operation을 실행하지는 않는다는 것을 확인했습니다. 반면 serial하게 동작하는 커스텀 DispatchQueue는 항상 동일한 쓰레드를 사용하는 것으로 확인했습니다. maxConcurrentOperationCount가 1인 OperationQueue는 항상 동일한 쓰레드를 사용하지는 않더라구요. 사실 maxConcurrentOperationCount가 말 그대로 concurrent하게 실행될 수 있는 Operation의 개수를 말하는 것이지, 실행될 수 있는 쓰레드의 개수를 말하는 건 아니니까 이건 이것 나름대로 이해한 것 같습니다.) executionBlocks를 얻어서 좀 더 봐보려고 했는데 잘 안되더라구요. 혹시 이 부분 관련해서 제가 잘못 이해한 부분이 있는지, 아니면 추가 설명을 부탁드릴 수 있을까요? 감사합니다.