
java
leishen1989
这个作者很懒,什么都没留下…
展开
-
Null value was assigned to a property of primitive
Null value was assigned to a property of primitive type setter of gnnt.MEBS.espot.mgr.model.delivery,报这个错误是hibernate 字段 设置成int 或long型,而数据库设置成可为空,该数据在数据库为空。第一种该法,把该字段设置成不可为空。第二种该法,实体类改成 private Integer...原创 2014-09-05 09:32:14 · 138 阅读 · 0 评论 -
java 基础常用知识
1,action中传数组对象request.setAttribute("m",m); 在jsp页面取值 String m[]=(String[])request.getAttribute("m");2,判断一个list是否有值 list.size()>0;3,标签 <c:set var="add" value="1"/>, <c:forEach items=&qu原创 2014-09-15 09:10:40 · 144 阅读 · 0 评论 -
meta-inf下context-xml加载tomcat数据库连接xml
context-xml内容<!-- The contents of this file will be loaded for each web application --><Context> <!-- Default set of monitored resources --> <WatchedResource>WEB-INF/w...原创 2014-09-26 16:34:40 · 358 阅读 · 0 评论 -
导入项目个别包不能使用
在导入项目的时候报包或者类不存在的时候,右键项目buildpaht -configure buildpath 选中source 点击addfolder选中未选中的Java源码即可。原创 2014-09-26 16:39:51 · 127 阅读 · 0 评论