WorldStarWB / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

springmvc_rest 插件生成代码问题 #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
生成的的代码:
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 中。

Original issue reported on code.google.com by zgw06...@gmail.com on 17 Nov 2009 at 6:37

GoogleCodeExporter commented 8 years ago
用springmvc_rest时因为spring3.0还没有发布,所以WEB-INF/lib下面你就
算没有安装插件,但是已
经存在v2.5.6的spring.jar,造成与spring3.0冲突,所以你需要删除sprin
g v2.5的相关jar

Original comment by bad...@gmail.com on 18 Nov 2009 at 4:15