
S2SH
文章平均质量分 63
个人知识管理布道师
这个作者很懒,什么都没留下…
展开
-
Extjs与Struts2交互,返回JSON数据的两种实现方式
方案1 需要配置jar包:json-lib-2.3-jdk15.jar, struts.xml不需要配置json result. Action不支持return返回结果. 返回JSON方式:response.getWriter().write("xxxx"); struts.xml配置案列原创 2016-07-10 00:16:43 · 1252 阅读 · 0 评论 -
Hibernate中关于hibernate hql select new map的用法详解
使用案例 String queryStr = "select new Map(c.id as id,c.name as name,c.pycode as pycode,c.postcode as postcode," + "c.areacode as areacode,c.sProvince.name as pname) from City c where c.sProvince.nam原创 2016-07-10 00:51:28 · 4204 阅读 · 0 评论 -
hibernate调用oracle存储过程案列
create or replace procedure province_test(pro_name in varchar,pro_count out int) is begin select count(id) into pro_count from s_city where pid=(select id from s_province where name=pro_name); end原创 2016-07-11 22:46:08 · 1504 阅读 · 0 评论