AOP 一、 什么是AOP AOP是面向切面编程的简称,将程序运行过程分解成各个切面,可以在不修改源码的情况下给程序方法动态地添加功能,其底层实现是使用了动态代理模式; 二、 为什么要用AOP 分离系统中的各种关注点,将核心关注点和横切关注点分离开来(例如主业务程序和一些校验、日志、安全类的程序分离 ...
分类:
编程语言 时间:
2018-01-13 14:13:31
阅读次数:
208
富文本框常见的技术用到了Frame标签,并且在Frame里面实现了一个完整的HTML网页结构。 方法一: #!usr/bin/env python #-*- coding:utf-8 -*- """ @author: sleeping_cat @Contact : zwy24zwy@163.com ... ...
分类:
其他好文 时间:
2018-01-13 12:51:47
阅读次数:
231
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:
其他好文 时间:
2018-01-13 11:12:13
阅读次数:
122
单元测试提示下面错误: 核心错误: Failed to parse mapping resource: 'file [D:\490993\安装程序\DPAP2.1\dpap_v2.0.1\dpap_v2.0.1\dpap\gis_workspaces1\gis-edi\gis-edi-cn-serv ...
分类:
其他好文 时间:
2018-01-13 11:06:31
阅读次数:
1515
最近使用TestNG有一个需求,希望在配合使用factory执行测试时,factory生成测试数据的执行顺序与生成时保持一致。 在未做任何定制时,执行顺序是随机的,如果想要一致的顺序,就得额外配置拦截器:IMethodInterceptor 具体实现方法, 如下: 工厂类: 测试类: 1 publi ...
分类:
其他好文 时间:
2018-01-13 01:17:36
阅读次数:
161
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-01-13 00:18:36
阅读次数:
112
(Color and psychological functioning: a review of theoretical and empirical work)[https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4383146/] 1. 红色会吸引注意力(人 ...
分类:
其他好文 时间:
2018-01-12 21:20:07
阅读次数:
121
问题: 你有一个数据序列,想利用一些规则从中提取出需要的值或者是缩短序列 answer: eg1:列表推导 最简单的过滤序列元素的方法就是使用列表推导。比如:>>> mylist = [1, 4, -5, 10, -7, 2, 3, -1]>>> [n for n in mylist if n > ...
分类:
编程语言 时间:
2018-01-12 18:34:42
阅读次数:
197
学习文章来自:springboot(十):邮件服务 简单使用 1、pom包配置 pom包里面添加spring-boot-starter-mail包引用 2、在application.properties中添加邮箱配置 3、编写mailService,这里只提出实现类。 4、编写test类进行测试 至 ...
分类:
编程语言 时间:
2018-01-12 15:30:00
阅读次数:
200