2021年5月10日

Mybatis的TypeHandler注册流程

摘要: 最近在项目中用到了自定义的枚举类typeHandler,参考了网上的代码,定义的枚举类处理器如下: @MappedTypes({ BaseCodeEnum.class, UserType.class, UserStatus.class, Gender.class }) public class Co 阅读全文

posted @ 2021-05-10 14:57 maoshiling 阅读(1145) 评论(0) 推荐(0) 编辑

2018年8月31日

《Spring揭秘》第十章——Spring AOP二世

摘要: 新特性 1. 可以使用POJO声明Aspect和Advice 2. 新的Pointcut表达方式 @AspectJ形式的Spring AOP 示例1:编程方式织入 执行结果如下: 示例2:自动代理织入 执行结果如下: 将springContext.xml中的内容替换为下面内容,也可以实现自动代理织入 阅读全文

posted @ 2018-08-31 16:22 maoshiling 阅读(335) 评论(0) 推荐(0) 编辑

2018年8月30日

《Spring揭秘》第九章——Spring AOP一世

摘要: AOP中的Jointpoint有很多中,如 构造方法调用、字段的设置与读取、方法调用、方法执行等,在Spring AOP中,Jointpoint仅支持方法级别的Jointpoint,更确切的说是,只支持方法执行(Method ExeCution)类型的Jointpoint。 Pointcut Adv 阅读全文

posted @ 2018-08-30 11:34 maoshiling 阅读(348) 评论(0) 推荐(0) 编辑

2018年3月10日

LomBok特性学习与使用

摘要: 1. val--自动生成泛型类的真实的数据类型 源码: package com.test.lombok.val; import lombok.val; import java.util.ArrayList; import java.util.HashMap; public class LomBokV 阅读全文

posted @ 2018-03-10 15:44 maoshiling 阅读(1681) 评论(0) 推荐(0) 编辑

2018年3月3日

Python学习与使用问题记录

摘要: 1、IndentationError:unindent does not match any outer indentation level 原因:代码缩进有问题 解决方案:notepadd++文本编辑器中可以显示空格与制表符【视图-显示符号-显示空格和制表符】 阅读全文

posted @ 2018-03-03 16:30 maoshiling 阅读(147) 评论(0) 推荐(0) 编辑

2018年1月29日

Eclipse圈复杂度插件安装

摘要: 离线安装步骤 安装包下载地址:http://melord.iteye.com/blog/1003189 1. 【help】-【install new software】,【Add】-【local】-【选择离线安装包(解压后的文件夹)】 勾选 点击【next】, 点击【next】, 点击【accept 阅读全文

posted @ 2018-01-29 14:40 maoshiling 阅读(1763) 评论(0) 推荐(0) 编辑

2018年1月25日

Eclipse反编译插件安装

摘要: 1. 反编译插件 由于网络限制,无法在线安装Decompiler插件,因此选择下载离线安装包的方式进行安装 下载org.sf.feeling.decompiler_1.0.3.zip离线安装包 点击help--install New software,点击【Add】,点击【Archive】选择下载的 阅读全文

posted @ 2018-01-25 19:20 maoshiling 阅读(442) 评论(0) 推荐(0) 编辑

MySQL官方文档阅读与记录(前三章)

摘要: 接触编程时间不久,之前对于MySQL的了解局限于简单的CURD,没有系统和深入的学习过,最近想要更深入的学习和了解一下MySQL,打算先从官方文档入手。 最新官方文档:https://dev.mysql.com/doc/refman/8.0/en 1. MySQL对标准SQL的扩展 (1) MySQ 阅读全文

posted @ 2018-01-25 16:30 maoshiling 阅读(1215) 评论(0) 推荐(1) 编辑

Eclipse使用问题记录

摘要: 问题1: Description Resource Path Location Type Access restriction 解决方案:项目右键--build path--config build path--library--JRE system library删除后重新添加 问题2: The 阅读全文

posted @ 2018-01-25 16:29 maoshiling 阅读(155) 评论(0) 推荐(0) 编辑

Eclipse使用技巧记录

摘要: 1. 清除历史空间目录 eclipse安装目录下的configuration/.settings/org.eclipse.ui.ide.prefs中的RECENT_WORKSPACES,将不需要的目录删除,保存文件 2. 设置Eclipse自动提示 Eclipse-【window】-【prefere 阅读全文

posted @ 2018-01-25 16:28 maoshiling 阅读(73) 评论(0) 推荐(0) 编辑

导航