自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 jsp加载jquery报错:Failed to load resource: the server responded with a status of 404 (Not Found)

昨天页面疯狂报错,一直提示无法加载jquery文件。今天才反应过来,项目是用springmvc的框架,忘记设置静态资源放行导致报错。 在springmvc配置文件加上如下一段话,放行对js文件夹下jquery的请求,页面就能正常使用了! <mvc:resources location="/js/" mapping="/js/**"></mvc:resources> ...

2019-10-03 21:49:14 1783

原创 使用springmvc 的编码过滤器后,数据库仍然乱码

当使用了springmvc 的编码过滤器: <filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param&g...

2019-09-30 19:48:02 248

原创 报错:Expected MultipartHttpServletRequest: is a MultipartResolver configured?

springmvc 配置文件中: <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"></bean> 其中bean id 的值一定要写成multipartResolver 否则就会报错 ...

2019-09-26 10:24:26 129

原创 Spring 配置文件报错:Bean property 'xxx' is not writable or has an invalid setter method

错误原因:在生成属性的get set 方法时,eclipse默认为protected,由于跨包导致spring配置文件不能获取到set方法,因此注入失败!浪费一小时找bug 错误代码: protected void getTid() { return tid; } protected void setTid(int tid) { this.tid = tid; } protec...

2019-09-07 11:16:16 712

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除