he method setAttribute(String,object)in the type HttpSession is not appl
来源:互联网 发布:大数据掌握的技术 编辑:程序博客网 时间:2024/06/08 02:27
这个错误的意思是你在绑定的时候,绑定的值不是一个Object,产生这个问题的原因主要是JDK版本的问题。有的JDK版本,是支持直接从int转换为Integer,编译可以通过。你的JDK应该不支持这个。解决的办法有两个:
方案一:忽略掉JDK版本,比如你原来是session.setAttribute("count",count);,count是int类型, 那你可以采用Integer countObj = Integer.valueOf(count);这样,在绑 定:session.setAttribute("countObj",countObj);
方案二:项目文件夹,右键,properties,Java Compiler 修改Compiler compliance lever 为1.6
方案一:忽略掉JDK版本,比如你原来是session.setAttribute("count",count);,count是int类型, 那你可以采用Integer countObj = Integer.valueOf(count);这样,在绑 定:session.setAttribute("countObj",countObj);
方案二:项目文件夹,右键,properties,Java Compiler 修改Compiler compliance lever 为1.6
0 0
- he method setAttribute(String,object)in the type HttpSession is not appl
- he method get(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments
- he method isEmpty() is undefined for the type String/String
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the,
- The method setValue(String) in the type ParamTag is not applicable for the arguments (long)
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable...
- Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not
- The method find(String, Object[]) is ambiguous for the type
- Eclipse中使用printf报错 提示参数类型不对 已解决The method printf(String, Object[]) in the type PrintStream is not ap
- c:forTokens 报错 The method setItems(String) in the type ForTokensTag is not applicable for the argume
- 编译错:The method createSqlQuery(String, List<Object>) is ambiguous for the type
- The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK
- 报错 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK>
- The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK>错误解决方法
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- 前台登录账号改变时迅速清空记录的登录密码
- iOS中NSString自适应宽高
- 八种排序算法
- Windows下使用DOS命令进入MySQL数据库
- C#将文件转成16进制码流写入数据库存起来,访问的时候再还原成PDF文件
- he method setAttribute(String,object)in the type HttpSession is not appl
- Codeforces Round #382 (Div. 2) C
- EF框架(一)搭建过程
- Unity3d与Android交互总结
- java中length,length(),size()区别
- android Studio中preview 的显示、固定与隐藏
- 802.1P和IP Precedence及DSCP优先级的分类和对应
- 实现字符串右循环移位函数
- Swift-存储属性