上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 43 下一页
摘要: 一:首先看一下struts2中action的实现方式: 1.建立普通的pojo类:这种方式能够实现简单的action功能,但struts2内自带的一些验证和其他功能不能够实现 2.继承ActionSupport类实现action,因为ActionSupport已经实现了Action接口,还实现了Validateable接口,提供了数据校验功能。通过继承该ActionSupport类,可以简化St... 阅读全文
posted @ 2017-01-08 09:36 ATJAVA 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 演示:http://www.h5-share.com/articles/201701/createqr.html 阅读全文
posted @ 2017-01-08 09:15 ATJAVA 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 语法: 阅读全文
posted @ 2017-01-08 08:48 ATJAVA 阅读(186) 评论(0) 推荐(0) 编辑
摘要: package com.etc.test; import java.util.Iterator; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.junit.Test; import com.etc.dao.HibernateSessionFactory;... 阅读全文
posted @ 2017-01-07 14:59 ATJAVA 阅读(172) 评论(0) 推荐(0) 编辑
摘要: /** * 对JSON对象转换为字符串. * @param {json对象} json * @return {json字符串} */ function jsonObj2Str(json) { var str = "{"; for (prop in json) { str += prop + ":" +... 阅读全文
posted @ 2017-01-06 20:04 ATJAVA 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 第一天: 1 oracle的安装 a 卸载 b 安装服务器软件及数据库(orcl) --OracleServiceOrcl c 执行网络配置--配置监听1521,本地net服务名(创建1个外部连接的url) --OracleHomeTnsListener 2 oracle的概述 甲骨文。最好的商用数据库。可以稳定的处理百万级别的数据吞吐量,中型数据库。 特点:a 稳... 阅读全文
posted @ 2017-01-06 19:59 ATJAVA 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 序列 sequence oracle特有。实现“自增”或“自减”的逻辑对象。 2 同义词 synonym 对表取别名,该别名被永久存储。 比视图更省资源。 私有同义词和公有同义词。 3 索引 index 概念:起到“目录”的作用。加快查询的速度。 a 额外占用空间 b 当对数据进行修改时,需要更新索引。 主键... 阅读全文
posted @ 2017-01-06 19:58 ATJAVA 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 第一天: -- 创建book表 create table book ( bid number primary key, bname varchar2(20) not null, price number(10,2) not null ) -- 插入数据 insert into book(bid,bname,price)values('20','西游记','170.5'); insert into... 阅读全文
posted @ 2017-01-06 19:56 ATJAVA 阅读(169) 评论(0) 推荐(0) 编辑
摘要: --1 没有入参的函数.返回字符串 create or replace function get_time return varchar2 as v_time varchar2(20); --声明1个局部变量 begin select to_char(sysdate,'hh24:mi:ss') into v_time from dual; return v_time; end; ... 阅读全文
posted @ 2017-01-06 19:55 ATJAVA 阅读(177) 评论(0) 推荐(0) 编辑
摘要: --1 无入参最简单的存储过程 create or replace procedure hello_proc as v_name varchar2(20); v_age number; begin v_name:='bai'; v_age:=18; dbms_output.put_line('你好'||v_name||',你今年'||v_age); end... 阅读全文
posted @ 2017-01-06 19:54 ATJAVA 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 43 下一页