摘要: 《= , == , 》 1.= 赋值 2.== 忽略类型,只看内容是否相等 3. 类型和内容都要相等,先比类型,类型不同返回false,否则在比较内容 在逻辑运算中,0,“”,false,null,undefined,NaN均表示false. 《&& ,|| 》 1.&&返回最后一个为true的值, 阅读全文
posted @ 2019-07-27 10:34 Mlek 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 可以实现这个接口来获取ApplicationContext. 阅读全文
posted @ 2019-07-20 13:43 Mlek 阅读(198) 评论(0) 推荐(0) 编辑
摘要: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD)//标签贴在何处 @... 阅读全文
posted @ 2019-07-19 20:16 Mlek 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 翻译过来就是“(可选)必须级联到关联目标的操作,默认情况下,没有级联操作。” 就是实体A进行变更时,与之关联的实体B也要进行更新 这个东西部能乱配置,否则会出问题的,比方说在单向的many to one 关系中,如果在many方配置了 cascade="save-update,persist",当我 阅读全文
posted @ 2019-07-17 21:09 Mlek 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 异常提示org.springframework.orm.hibernate4.HibernateSystemException: identifier of an instance of com.mi.domain.Department was altered from 2 to 1; nested 阅读全文
posted @ 2019-07-14 16:28 Mlek 阅读(1529) 评论(0) 推荐(0) 编辑
摘要: private Boolean hasLength(String str){ return str != null && !"".equals(str.trim());} 阅读全文
posted @ 2019-07-14 08:10 Mlek 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 异常 Unable to instantiate Action, employeAction, defined for 'employe' in namespace '/'employeAction 解决办法:检查struts2的配置文件strut.xml中定义的action名称和请求URL中的ac 阅读全文
posted @ 2019-07-13 20:43 Mlek 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 【异常提示】 org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.mi.domain.Department.id java.lang.IllegalArgumen 阅读全文
posted @ 2019-07-13 07:23 Mlek 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 转载自https://www.cnblogs.com/dixinyunpan/p/6004991.html 【异常提示】 TransientObjectException: object references an unsaved transient instance -save the trans 阅读全文
posted @ 2019-07-13 00:48 Mlek 阅读(311) 评论(0) 推荐(0) 编辑