问题1:
Eclipse中关于导入Web项目时,提示HttpServletRequest 找不到的解决办法
解决办法:
选中项目-->properties-->Targeted Runtimes-->在右边窗口中选择你使用的服务器即可
———————————————————————————————————————————————————————
问题2:
Cannot convert value of type [com.sun.proxy.$Proxy3 implementing com.wjb.shop.service.CategoryService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.wjb.shop.service.impl.CategoryServiceImpl] for property 'categoryService': no matching editors or conversion strategy found
产生这个错误的原因:Spring代理需要实现接口。
—————————————————————————————————————————————————————
用JSTL的<c;url></c:url>传中文参数到后台乱码,后台项目均为utf-8,后来修改了tomcat的server.xml文件:
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"/>
添加了URIEncoding="UTF-8",乱码问题解决。