这里,我做一个整合。 这里前期要极其注意修饰符之间的关系。 1.Main调用方法,其实我也不知道叫什么,大家看代码吧。 using System; using System.Collections.Generic; using System.Linq; using System.Text; usin ...
1 . timeCountIntecetor implements handlerInterceptor { preHandle(); postHandle(); afterComplete(); } 2 . 动态代理 by implement InvocationHandler (对接口) cla ...
分类:
编程语言 时间:
2016-12-04 07:44:54
阅读次数:
210
123 foo45 biz6 foo7 baz89 foo10 biz1112 foo1314 baz15 foo biz161718 foo1920 biz21 foo baz222324 foo25 biz2627 foo28 baz2930 foo biz313233 foo3435 biz ...
分类:
编程语言 时间:
2016-12-04 07:00:45
阅读次数:
849
@decorator可以动态实现函数功能的增加,但是,经过@decorator“改造”后的函数,和原函数相比,除了功能多一点外,有没有其它不同的地方? 在没有decorator的情况下,打印函数名: 输出: 有decorator的情况下,再打印函数名: 输出: 可见,由于decorator返回的新函 ...
分类:
编程语言 时间:
2016-12-03 18:14:06
阅读次数:
182
1. 搭建项目环境 2. 新建lib文件夹,添加spring依赖jar包: spring-beans.jar、spring-context.jar、spring-core.jar、spring-expression.jar、【spring-aop.jar】 添加依赖包: commons-loggin ...
分类:
编程语言 时间:
2016-12-03 15:52:16
阅读次数:
209
1. 删除mysql 上面的其实有一些是多余的,建议还是按照顺序执行一遍2. 清理残留数据 3. 安装 mysql 一旦安装完成,MySQL服务器应该自动启动。您可以在终端提示符后运行以下命令来检查 MySQL 服务器是否正在运行:4. 检查Mysql是否正在运行 当您运行该命令时,您可以看到类似下 ...
分类:
数据库 时间:
2016-12-03 15:04:26
阅读次数:
208
效果图: 前台发送 - 后台查看 - 发送页面代码: 1 <%@ Page Title="" Language="C#" MasterPageFile="~/UserMainPage.master" AutoEventWireup="true" CodeFile="User_LiuYppp.aspx ...
分类:
其他好文 时间:
2016-12-02 19:08:08
阅读次数:
225
Spring框架下自带了丰富的工具类,在我们开发时可以简化很多工作: 1.Resource访问文件资源: 具体有: 2.文件操作 FileCopyUtils 具体有: 3.属性文件操作 PropertiesLoaderUtils 具体有: 4.EncodedResource(Resource对象,” ...
分类:
编程语言 时间:
2016-12-02 13:56:35
阅读次数:
365