묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
LCA2
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 제발 HELP MEㅠㅠ LCA2 백준 11438 http://boj.kr/261436dc78f24a0786640c9876a6ed08 강의에 없는 것도 질문 드려도 되나 모르겠는데 너무 간절해서 올립니다. 왜 시간초과가 나는건지 백준 게시판 싹싹 뒤져서 반례 돌려봐도 다 맞는데 왜 안돼는지 제발.... 아무나 좀 도와주세요ㅠㅠㅠ 큰돌선생님이 도와주시면 더더욱 감사하구요
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
hello-static.html 로딩이 안됩니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. http://localhost:8080/hello-static.html 주소 입력시 저는 에러창이 뜹니다.. 정적 컨텐츠 입니다. 라는 글씨가 안뜨고 밑에 ERROR 47127 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : 에러창이 뜹니다. 무엇이 잘못된 것인지 모르겠습니다...
-
미해결리액트로 나만의 블로그 만들기(MERN Stack)
webpack 설정 문제입니다.
저도 이 수업에서 올려주신 ckeditor5를 설치하고 webpack 설정을 하던중 @ckeditor/ckeditor5-dev-utils 와 @ckeditor/ckeditor5-dev-webpack-plugin 이 찾을수 없다고 하여 강의를 포기하게되었습니다.. 밑에글쓴분과 똑같은 오류로요.. 해결방법이있을까요?
-
미해결윤재성의 만들면서 배우는 Spring MVC 5
44강 데이터 베이스 테이블 만들기중인데, 테이블이 안 만들어집니다,.
강사님께서주신 테이블코드 복붙해서 sql develoment에 실행하였으나 명령의 1 행에서 시작하는 중 오류 발생 - create sequence user_seq start with 0 increment by 1 minvalue 0 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 6 행에서 시작하는 중 오류 발생 - create sequence content_seq start with 0 increment by 1 minvalue 0 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 11 행에서 시작하는 중 오류 발생 - create table board_info_table( board_info_idx number constraint BOARD_INFO_PK primary key, board_info_name varchar2(500) not null ) 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 16 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (1, '자유게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 17 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (2, '유머게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 18 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (3, '정치게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 명령의 19 행에서 시작하는 중 오류 발생 - insert into board_info_table(board_info_idx, board_info_name) values (4, '스포츠게시판') 오류 보고 - ORA-00001: 무결성 제약 조건(EXAM.BOARD_INFO_PK)에 위배됩니다 커밋 완료. 명령의 23 행에서 시작하는 중 오류 발생 - create table user_table( user_idx number constraint USER_PK primary key, user_name varchar2(50) not null, user_id varchar2(100) not null, user_pw varchar2(100) not null ) 오류 보고 - ORA-00955: 기존의 객체가 이름을 사용하고 있습니다. 00955. 00000 - "name is already used by an existing object" *Cause: *Action: 명령의 30 행에서 시작하는 중 오류 발생 - create table content_table( content_idx number constraint CONTENT_PK primary key, content_subject varchar2(500) not null, content_text long not null, content_file varchar2(500), content_writer_idx number not null constraint CONTENT_FK1 references user_table(user_idx), content_board_idx number not null constraint CONTENT_FK2 references board_info_table(board_info_idx), content_date date not null ) 오류 보고 - ORA-00942: 테이블 또는 뷰가 존재하지 않습니다 00942. 00000 - "table or view does not exist" *Cause: *Action: 러한 이유로 테이블이 만들어지지 않습니다..
-
미해결윤재성의 만들면서 배우는 Spring MVC 5
pom.xml 셋팅 질문
안녕하세요. 기본적으로 jsp, servlet, jstl, spring web mvc 모두 가장 최신버전 복붙하면 된다고 생각하면 되나요?
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
getStaticProps 질문드립니다.
안녕하세요. 강의 잘 듣고 있습니다. 블로그 게시글은 빈번하게 안 바뀌니까 getStaticProps를 사용해도 된다고 이해했습니다. 그럼 수정할 때는 어떻게 동작하나요? 다시 html 파일을 만드나요?
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
itemService를 jpa 적용시 문제발생
[질문 내용]수업중에 만든 itemService에 jpa 기능을 적용해 보았는데 itemRepositoryTest 실행시 오류가 발생합니다. test에서는 메모리 DB를 사용하기위해 item-service/src/test/resources/application.yml에 아래 코드를 추가했습니다. spring: logging.level: org.hibernate.SQL: debug _________________________________________________________________ package hello.itemservice.domain.item;import org.junit.jupiter.api.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.annotation.Rollback;import org.springframework.test.context.junit4.SpringRunner;import org.springframework.transaction.annotation.Transactional;import java.util.List;import static org.assertj.core.api.Assertions.*;@RunWith(SpringRunner.class)@SpringBootTestclass ItemRepositoryTest { @Autowired ItemRepository itemRepository; @Test @Transactional @Rollback(false) public void testItem() { //given Item item = new Item("itemZ", 10000, 10); //when Item savedItem = itemRepository.save(item); //then Item findItem = itemRepository.findById(item.getId()); assertThat(findItem).isEqualTo(savedItem); }} _____________________________________________________________ * 오류내용 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244) at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259) at java.base/java.util.Optional.orElseGet(Optional.java:362) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258) at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1354) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1153) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:907) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:582) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:123) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ... 69 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 97 moreCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ... 111 moreCaused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:235) at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:48) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:90) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 112 more __________________________________________________________ *Item package hello.itemservice.domain.item;import lombok.Getter;import lombok.Setter;import javax.persistence.*;@Getter @Setter@Entity@Table(name="item")public class Item { @Id @GeneratedValue private Long id; private String itemName; private int price; private int quantity; public Item() { } public Item(String itemName, Integer price, Integer quantity) { this.itemName = itemName; this.price = price; this.quantity = quantity; }}___________________________________________________* ItemRepositorypackage hello.itemservice.domain.item;import org.springframework.stereotype.Repository;import javax.persistence.EntityManager;import javax.persistence.PersistenceContext;import java.util.List;@Repositorypublic class ItemRepository { @PersistenceContext private EntityManager em; public Item save(Item item) { em.persist(item); return item; } public void deleteById(Long id) { Item item = em.find(Item.class, id); em.remove(item); } public Item findById(Long id) { return em.find(Item.class, id); } public List<Item> findAll() { return em.createQuery("select i from Item i", Item.class) .getResultList(); } public void update(Long itemId, Item updateParam) { Item savedItem = em.createQuery("select i from Item i where i.id = :id", Item.class) .setParameter("id", itemId) .getSingleResult(); savedItem.setItemName(updateParam.getItemName()); savedItem.setPrice(updateParam.getPrice()); savedItem.setQuantity(updateParam.getQuantity()); }}
-
미해결타입스크립트 입문 - 기초부터 실전까지
tslint 플러그인
플러그인을 깔고있는데 tslint플러그인에 대해서 해당 문구가 뜹니다. 그대로 깔면 되는것인지 다른 대체 플러그인이 있는것인 궁금합니다.
-
미해결[하루 10분|Web Project] HTML/JS/CSS로 나만의 심리테스트 사이트 만들기
마지막 결과에서 뒤에 배경(?)왜 강의처럼 안나올까요? 저 회색배경이요..ㅠ.ㅠ.
나머지는 괜찮은거같은데.. 결과도 .. 잘 나오고? 근데 왜 뒷 대지 안나올까욧 ㅠㅠㅠㅠㅠ
-
미해결[초중급편] 안드로이드 데이팅 앱 만들기(Android Kotlin)
Failed to compile values file
- 섹션 2를 시작하려다 발생한 문제입니다. 가상 에뮬레이터를 통해 잘 실행이 되다가 갑자기 되지 않습니다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable > Resource compilation failed. Check logs for details. .gradle\caches\transforms-3\4a0459cf8027e878199dffe973fa9303\transformed\appcompat-1.2.0\res\values\values.xml:38:4: Invalid <color> for given resource value. => 이 부분에 대한 오류로 보입니다. 해당 코드는 <color name="highlighted_text_material_light">#66009688</color> 으로, 지우거나 대체해봐도 바로 윗 줄에서 동일한 오류가 발생합니다. 찾아보니 버전이나 이미지에 대한 오류로 보이기도 하는데 마땅한 해결되는 정보를 찾을 수 없어 질문드립니다.
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
loggerMiddleware로 morgan처럼 로깅하기 수업에서 @Injectable 부분 에러
LoggerMiddleware class를 작성하던 도중 @Injectable 데코레이터에서 2개의 에러가 납니다. 하나는 Decorator function return type 'ClassDecorator' is not assignable to type 'void | typeof LoggerMiddleware'. 데코레이터 함수 반환 유형 'ClassDecorator'은(는) 'void | typeof LoggerMiddleware' 유형에 할당할 수 없습니다. 라는 에러와 Type 'typeof LoggerMiddleware' has no properties in common with type 'ScopeOptions'. 'typeof LoggerMiddleware' 유형에 'ScopeOptions' 유형과 공통적인 속성이 없습니다. 라는 에러가 납니다 첫번째 에러는 검색하니 주로 데코레이터를 직접 만드신 분들이 내는 에러고 두번째 에러는 타입스크립트 버전을 올리신 분들이 겪는 에러로 보이는데 어떻게 해결할지 모르겠습니다.. 타입스크립트 버전을 내려야 할까요? 현재코드는 이렇습니다. import { NestMiddleware, Logger, Injectable } from '@nestjs/common'; import { Request , Response , NextFunction } from 'express'; @Injectable export class LoggerMiddleware implements NestMiddleware { private logger = new Logger('HTTP') use(req: Request, res: Response, next:NextFunction ) : void { const {ip , method , originalUrl } = req ; const userAgent = req.get('user-agent') || ''; res.on('finish', ()=>{ const {statusCode} = res; const contentLength = res.get("content-length") this.logger.log(`${method} ${originalUrl} ${statusCode} ${contentLength} ${userAgent} ${ip}`) }) next() } }
-
해결됨게임 프로그래머 취업 전략 가이드
그래픽스 포폴 관련해서
그래픽스 포폴로 왜 DirectX를 많이 사용하는지 궁금합니다 .오픈지엘이 크로스 플랫폼이라 배워두면 범용성이 더 좋을거 같아서요단순히 성능의 차이가 심해서 인가요 ? PC게임은 오픈지엘로 못 만들 수준이라던지..다른 이유가 있는 것인지 ..아직 둘다 얕게 아는정도라 잘 모르겠습니다.만약에 오픈지엘과 다렉 둘 중 하나만 만들수 있는 시간이라면 무조건 다렉 포폴이라 생각하시나요 ?
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
[질문] roboflow 사이트에서 public Datasets에서 원하는 데이터가 다운이 안됩니다.
YOLOv5 Custom Training - GPU를 위하여 roboflow 사이트에서 public Datasets에 가서 Synthetic Fruit Dataset 이미지를 다운로드 할려고 하는데 우측 상단에 있는 Download 아이콘이 눌러지지도 않고 팝업창이 뜨지를 않습니다. 이유를 모르겠습니다,
-
미해결안드로이드 모바일 앱 모의해킹과 시큐어코딩
취약한 웹 뷰 구현 필터링 코드 질문입니다!
다른 코드들은 이해가 가는데 밑의 두가지 유형의 코드는 이해 하기가 좀 힘듭니다 replace가 문자열들을 치환한다 했는데 밑의 두개는 무엇을 치환하는지 모르겠습니다..! fromText =fromText.replaceAll("eval\\((.*)\\)",""); fromText =fromText.replaceAll("[\\\"\\\'][\\s]*javascript:(.*[\\\"\\\']","\"\"");
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
질문있습니다
DFS 함수에서 if ( L == n+1) { } 안에 cnt 조건문을 끝내고 그 다음 줄에 따로 return;을 안적어도 문제없이 리턴되는데 더이상 실행할 문장이 남아있지 않기에 자동으로 리턴되어 돌아가는 건가요??
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
OSIV 질문드립니다.
OSIV가 false일때, createOrder의 param으로 맴버넣을경우에 맴버를 member.findBy로 조회하고 넣잖아요? 이때 Member엔티티에서 @OneToMany(mappedBy = "member") private List<Order> orders = new ArrayList<>(); 이렇게 오더가 프록시로 들어가있으니 선생님은 어떤식으로 초기화를 하시나요? orders could not initialize proxy - no Session 요렇게 나오는데.. 다른 Member는 겟네임으로 초기화한다고하는데 orders는 리스트니까.. 궁금해서요 ㅠㅠ
-
미해결Flutter 중급 1편 - 클린 아키텍처
클린 아키텍처에 대해
안녕하세요. 항상 친절한 답변 감사합니다. 이번 강의를 보다가 궁금증이 몇 개 생겨 질문드립니다. 1. Use Case가 MVC 패턴의(?) service와 비슷하다는 느낌을 받았는데 비슷한 개념인지 궁금합니다. 2. 기능에 따라 (강의에서는 5개(업데이트, 추가, 삭제 등)) class 별로 각자 구현하였는데 이 방식이 call 함수를 쓰기 위함인지 궁금합니다. MVC에서는 Service 계층에서 하나의 클래스 안에 필요한 메서드(Use Case)를 생성했었는데 기능 하나마다 클래스를 만드니 메모리면에서(큰 프로젝트에서는) 낭비가 되지 않나 싶습니다. 3. 모델이 여러개인 경우 use_case 안에 여러개의 모델 디렉토리를 만들어 그 모델 디렉토리 안에서 dart파일을 보통 관리하나요? 4. note_repository에서 추상클래스를 만들고, 그를 구현하는 NoteRepositoryImpl를 만들고, 구현한 그를 사용하는 db_helper를 또 만들었습니다. Impl과 helper를 합칠만하다고 생각하는데 따로 관리하는 이유가 궁금합니다.
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 기본편
command prompt 문의
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 맥북이용중입니다. command prompt가 안나오는데 이 부분은 어떻게 해결 할 수 있을까요?
-
미해결Google 공인! 텐서플로(TensorFlow) 개발자 자격증 취득
학습 실행 오류
Epoch 1/100 --------------------------------------------------------------------------- UnimplementedError Traceback (most recent call last) <ipython-input-31-4fdf12fa2786> in <module> 2 validation_data=(validation_set), 3 epochs=epochs, ----> 4 callbacks = [checkpoint] ) 1 frames /usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs) 65 except Exception as e: # pylint: disable=broad-except 66 filtered_tb = _process_traceback_frames(e.__traceback__) ---> 67 raise e.with_traceback(filtered_tb) from None 68 finally: 69 del filtered_tb /usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name) 53 ctx.ensure_initialized() 54 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, ---> 55 inputs, attrs, num_outputs) 56 except core._NotOkStatusException as e: 57 if name is not None:
-
미해결피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
콘스트레인트 사용할 때
스케일은 거의 사용하지 않나요? 여백 비율보다는 여백을 유지하는게 더 중요하지 않을까 싶어서요.. 그리고 이건 다른 질문인데, XD인 경우 도형을 만들고 이미지를 드래그하여 도형에 넣으면 도형 사이즈대로 이미지가 들어가지는데 피그마는 그런 기능이 없을까여?