전체 글 (36) 썸네일형 리스트형 [네트워크 원리] 웹 브라우저 보호되어 있는 글입니다. [Error] Field repository in required a bean of type 'xxx' that could not be found. # Error Intellij에서 @Autowired를 통해서 CrudRpository를 상속받는 인터페이스를 사용할 때 아래와 같은 error가 발생한다. Field repository in com.example.SpringDataJDBCSample.SpringDataJdbcSampleApplication required a bean of type 'xxx' that could not be found. # Solution @EnableJdbcRespositories을 통해 JDBC Repository 를 활성화 할 수 있다. @SpringBootApplication @EnableJdbcRepositories(basePackages = { "path of target package ex) com.demo.. [Error] Could not autowire. No beans of 'xxxx' type found. # Error Intellij에서 @Component를 부여한 클래스의 인스턴스를 @Autowired를 통해 사용하는 클래스의 필드에 주입하려면 'Could not autowire. No beans of 'xxxx' type found.'의 error가 발생한다. # Solution @ComponentScan을 통해 패키지의 @Component 을 스캔할 수 있다. @SpringBootApplication @ComponentScan(basePackages = { "path of package ex) com.demo" }) public class DemoApplication { public static void main(String[] args) { ... } @Autowired Sample sample;.. [JSP] JSP / Maven / Tomcat 프로젝트 생성하기 본 포스팅은 Intellij Ultimate IDEA, Tomcat 9.0.73, Java 11.0.18을 통해 진행되었습니다. Intellij Ultimate IDEA는아래의 링크에서 다운로드 받을 수 있습니다. https://www.jetbrains.com/idea/ IntelliJ IDEA – the Leading Java and Kotlin IDE IntelliJ IDEA is undoubtedly the top-choice IDE for software developers. It makes Java and Kotlin development a more productive and enjoyable experience. www.jetbrains.com # 프로젝트 생성 먼저 New Project 로.. 이전 1 2 3 4 5 다음