본문 바로가기
Development/Java

Class 'org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver' not found

by 버들도령 2019. 7. 9.
728x90

Class 'org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver' not found

servlet-context.xml에 아래와 같이 설정했는데... 위와 같은 에러가 발생한다면?

<bean id="dynamicTilesViewResolver" class="org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver">
    <property name="viewClass" value="org.springbyexample.web.servlet.view.tiles2.DynamicTilesView"/>
    <property name="prefix" value="/WEB-INF/jsp/"/>
    <property name="suffix" value=".jsp"/>
    <property name="tilesDefinitionName" value="root" />
    <property name="tilesBodyAttributeName" value="content" />
    <property name="tilesDefinitionDelimiter" value="-" />   <---- tilesDefinitionDelmiter의 Default Value 는?   .   (dot)
</bean>

 

Multiple annotations found at this line:
 - Class 'org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver' not found
 - Class 'org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver' not found [config set: XXXXXXX/web-context]

 

Maven을 사용중이라면 다음과 같이 pom.xml에 다음을 추가해준다.

Spring 3.1.x 버전 사용시... sbe-dynamic-tiles2의 버전은 1.2.1

Spring 3.2.x 버전 사용시... sbe-dynamic-tiles2의 버전은 1.2.2

  
 <dependencies>
.
.
.
  <dependency>
   <groupId>org.springbyexample</groupId>
   <artifactId>sbe-dynamic-tiles2</artifactId>
   <version>1.2.1</version>
  </dependency>
 </dependencies>

 <repositories>
  <repository>
   <id>springbyexample.org</id>
   <name>Spring by Example</name>
   <url>http://www.springbyexample.org/maven/repo
  </repository>
 </repositories>

728x90

댓글