Spring(17)
-
Spring Boot JSP 사용하기, 설정
Spring boot에서 JSP를 쓰려면 별도의 설정이 필요하다. 1. 의존성 추가하기 Maven pom.xml의 사이에 해당 코드 추가하기 1 2 3 4 5 6 7 8 org.apache.tomcat.embed tomcat-embed-jasper javax.servlet jstl Colored by Color Scripter cs 2. Gradle 1 2 3 4 dependencies { compile('javax.servlet:jstl') compile("org.apache.tomcat.embed:tomcat-embed-jasper") } Colored by Color Scripter cs 2. application.properties 추가하기 1 2 spring.mvc.view.prefix=/WEB..
2022.09.08 -
Failed to configure a DataSource 에러_스프링 부트(Spring Boot)오류
Console창 에러 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If y..
2022.09.07 -
org.apache.ibatis.reflection.ReflectionException 오류
오류코드 org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'authorID' in 'class com.shop.model.Criteria' 문제 원인 mapper에 써놓은 #{변수}에서 오타가 있었던 것. 원래 authorId인데 authorID로 적어 오류 발생 대소문자 제대로 구분하지 않고 parameter 변수 이름 설정하면 저런 오류 남 원인 수정 후 문제 없이 잘 돌아감 오타나지 않게 mapper 제대로 작성하자! 한 번 확인하지 말고 두 번 더 확인하기
2022.09.03 -
org.springframework.beans.factory.BeanCreationException 해결 방법
MVC project를 생성하였습니다. package를 만들어 controller, VO, DAO, Service, Mapper, Config 등을 작성하고 jsp 파일을 실행했더니 다음과 같은 오류가 나타났습니다. WARN : org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletCon..
2022.09.01 -
org.springframework.beans.factory.UnsatisfiedDepandencyException 오류 해결방법
1. 오류 발생 MVC 모델로 게시판을 만드는데 이러한 오류가 발생하였습니다. SEVERE: Context initialized 이벤트를 [org.springframework.web.context.ContextLoaderListener] 클래스의 인스턴스인 리스너에 전송하는 동안 예외 발생 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.NoSuchBe..
2022.08.19