08 2017 档案

摘要:Hibernate 1.数据持久化 2.ORM 3.使用Hibernate实现数据持久化 Struts2 1.MVC 2.使用Struts2实现MVC 3.拦截器 设计模式 1.工厂模式 2.代理模式 企业级系统 大规模:用户数量多、数据规模大、功能模块多 性能和安全要求高 业务复杂 灵活多变 Ja 阅读全文
posted @ 2017-08-31 21:15 Interface代码 阅读(118) 评论(0) 推荐(0)
摘要:001、用yum安装 命令:yum install subversion002、svn的相关配置:1、创建一个svn仓库(所有的项目都在仓库里。命令:mkdir -p /svndata/SLSaleSystem)2、创建项目(生成配置文件) 命令:svnadmin create /svndata/S 阅读全文
posted @ 2017-08-21 16:20 Interface代码 阅读(178) 评论(0) 推荐(0)
摘要:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %><%String path = request.getContextPath();String basePath = request.getScheme()+": 阅读全文
posted @ 2017-08-21 15:32 Interface代码 阅读(123) 评论(0) 推荐(0)
摘要:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %><%String path = request.getContextPath();String basePath = request.getScheme()+": 阅读全文
posted @ 2017-08-21 15:31 Interface代码 阅读(100) 评论(0) 推荐(0)
摘要:SQL映射的XML文件 1.MyBatis 真正的力量是在映射语句中,专注于SQL,功能强大,SQL映射的配置却是相当简单 2.SQL映射文件的几个顶级元素(按照定义的顺序) 1.cache-配置给定命名空间的缓存 2.cache-ref-从其他命名空间引用缓存配置 3.resultMap-用来描述 阅读全文
posted @ 2017-08-09 09:43 Interface代码 阅读(180) 评论(0) 推荐(0)
摘要:数据源:DataSource 创建连接交给连接池! javax.sql.DataSource建立与数据库的连接! 数据库连接池:Connection Poll 01.负责管理和释放数据库连接的一个缓冲池技术! 02.连接池配置到Tomcat中的conf文件夹下面的context.xml文件 JNDI 阅读全文
posted @ 2017-08-09 09:42 Interface代码 阅读(120) 评论(0) 推荐(0)
摘要:MyBatis简介 1.MyBatis的前身是iBatis,本是Apache的一个开源的项目 后来加入谷歌 之后改名MyBatis 2.MyBatis是一个数据库持久层(ORM)框架,把实体类和SQL语句之间建立了映射关系,是一种半自动的ORM实现。搭建MyBatis开发环境 使用MyBatis的开 阅读全文
posted @ 2017-08-06 16:36 Interface代码 阅读(221) 评论(0) 推荐(0)
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2017-08-05 20:57 Interface代码 阅读(174) 评论(0) 推荐(0)
摘要:lplus /nolog conn system/1234@orcl create tablespace aries logging datafile 'e:\oracle\oradata\orcl\aries.dbf' size 32m autoextend on next 32m maxsize 阅读全文
posted @ 2017-08-05 20:55 Interface代码 阅读(127) 评论(0) 推荐(0)
摘要:1.整合Spring和Hibernate框架JBOA数据库设计1.部门表2.雇员表3.职位表4.报销单表5.报销单明细表6.审核记录表2.SSH架构 1.Struts 2+Spring+Hibernate 2.以Spring作为核心框架,数据持久化使用 Hibernate完成,表现层使用Struts 阅读全文
posted @ 2017-08-05 20:52 Interface代码 阅读(133) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2017-08-05 20:51 Interface代码 阅读(329) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2017-08-05 20:50 Interface代码 阅读(132) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2017-08-05 20:49 Interface代码 阅读(118) 评论(0) 推荐(0)
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2017-08-05 20:47 Interface代码 阅读(155) 评论(0) 推荐(0)
摘要:Spring MVC 1.结构最清晰的MVC Model2实现 2.Controller 3.ModelAndView 1.HTTP请求 SpringMVC核心是前端控制器DispatcherServlet 在web.xml <servlet-name>-servlet.xml配置 2.Handle 阅读全文
posted @ 2017-08-05 20:45 Interface代码 阅读(186) 评论(0) 推荐(0)
摘要:Spring MVC 1.结构最清晰的MVC Model2实现 2.Controller 3.ModelAndView 1.HTTP请求 SpringMVC核心是前端控制器DispatcherServlet 在web.xml <servlet-name>-servlet.xml配置 2.Handle 阅读全文
posted @ 2017-08-04 15:32 Interface代码 阅读(140) 评论(0) 推荐(0)
摘要:package cn.bdqn.test; public class FatherClass { // 外部类 private static int age = 5; private int num = 5000; class Son { // 成员内部类 int age = 50; private 阅读全文
posted @ 2017-08-04 15:30 Interface代码 阅读(100) 评论(0) 推荐(0)
摘要:package cn.bdqn.inner; public class ThreadTest { public static void main(String[] args) { // 匿名内部类 Thread thread = new Thread(new Runnable() { @Overri 阅读全文
posted @ 2017-08-04 15:30 Interface代码 阅读(68) 评论(0) 推荐(0)
摘要:内部类: 将一个类写在了另一类或者方法中! 内部类的分类01.成员内部类 可以访问我们外部类的所有属性和方法! 如果我们想访问内部类!必须要有外部类! 只能通过外部类来访问内部类! 001.创建外部类对象 FatherClass father=new FatherClass(); 002.通过外部类 阅读全文
posted @ 2017-08-04 15:28 Interface代码 阅读(122) 评论(0) 推荐(0)