生成的的代码: 1.javacommon.base.BaseRestSpringController<Entity, PK> 中 The import org.springframework.web.bind.annotation.PathVariable cannot be resolved
2.org.springframework.web.servlet.view.ContentNegotiatingViewResolver 中 The import org.springframework.http cannot be resolved
下了spring-framework-3.0.0.RC2 发现在org.springframework.web-3.0.0.RC2.jar 有,于是将其导入工程中。又发现 org.springframework.web.servlet.view.ContentNegotiatingViewResolver中 233行OrderComparator.sort(this.viewResolvers);提示The method sort(List<ViewResolver>) is undefined for the type OrderComparator;252行 String filename = WebUtils.extractFullFilenameFromUrlPath(requestUri);提示 The method extractFullFilenameFromUrlPath(String) is undefined for the type WebUtils 似乎整个spring.jar 都要被替换掉了。 并且public class BaseRestSpringController<Entity,PK> extends BaseSpringController 也需手动将plugins\springmvc\src\javacommon\javacommon \base中的BaseSpringController 拷到 src\javacommon\javacommon\base 中。
Comment #1
Posted on Nov 18, 2009 by Grumpy Elephant用springmvc_rest时因为spring3.0还没有发布,所以WEB-INF/lib下面你就算没有安装插件,但是已 经存在v2.5.6的spring.jar,造成与spring3.0冲突,所以你需要删除spring v2.5的相关jar
Status: Fixed
Labels:
Type-Defect
Priority-Medium