项目笔记记录
1、HQL语句 :select t from RepNewsUsers t where t.runUserId=:userId? <=对应传值=>map<k,v>
??????????????? select t from RepNewsUsers t where t.runUserId=? <=对应传值=> value? (但要标注?顺序)
2、判断某字符串 是否为 空,或者为 "" ? ====>可以使用 StringUtils.hasText(string) 来判断;
org.springframework.utiljava.lang.Object org.springframework.util.StringUtils相关链接:http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/util/StringUtils.html#hasText%28java.lang.String%29 StringUtils.hasText(null) = false StringUtils.hasText("") = false StringUtils.hasText(" ") = false StringUtils.hasText("12345") = true StringUtils.hasText(" 12345 ") = true