摘要: JPA命名规范 (sample与JPQL等效) And findByLastnameAndFirstname … where x.lastname = ?1 and x.firstname = ?2 Or findByLastnameOrFirstname … where x.lastname = 阅读全文
posted @ 2017-12-15 15:36 无~所~谓 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.建立mavenjava项目 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// 阅读全文
posted @ 2017-12-14 13:52 无~所~谓 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1.建项目,导包. 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://mave 阅读全文
posted @ 2017-12-14 09:20 无~所~谓 阅读(691) 评论(0) 推荐(0) 编辑
摘要: com.belerweb pinyin4j 2.5.0 PinYin4jUtils 工具类 1 package cn.itcast.bos.utils; 2 3 import java.util.Arrays; 4 5 ... 阅读全文
posted @ 2017-12-13 14:15 无~所~谓 阅读(3926) 评论(0) 推荐(0) 编辑
摘要: $.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(array).each(function(){ ... 阅读全文
posted @ 2017-12-11 20:01 无~所~谓 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 第一次 Team share >Add >commit remote >pull 第二次 直接share开始. 阅读全文
posted @ 2017-12-07 13:49 无~所~谓 阅读(207) 评论(0) 推荐(0) 编辑
摘要: (一)环境搭建 1.Maven下载 ; http://maven.apache.org/download.cgi 第一个在Linux使用,第二个是在Windows,第三和第四是源码: 我们将下载的压缩包解压到D盘根目录 2.本地仓库配置: 1) 将电脑中的repository_ssh.zip解压到D 阅读全文
posted @ 2017-12-05 18:02 无~所~谓 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: 声明式事务管理,基于AOP对目标代理,添加环绕通知,比编码方案优势,不具有侵入式,不需要修改原来的代码. 1.基于XML配置的声明式事务管理方案(案例) 接口Service service实现类 //@Transactional()注解时使用public class AccountServiceIm 阅读全文
posted @ 2017-11-29 18:48 无~所~谓 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:.Spring常规的数据库连接方法: 1 @RunWith(SpringJUnit4ClassRunner.class) 2 @ContextConfiguration(locations="classpath:applicationContext.xml") 3 public clas 阅读全文
posted @ 2017-11-28 14:49 无~所~谓 阅读(2356) 评论(0) 推荐(0) 编辑
摘要: 1.创建目标对象 2.创建通知(增强 advice) 3.1在Spring的applicationContext.xml配置: 3.2在Spring的xmp配置apo1.xml 4.测试类 基于annotation方案 1.编写目标 2.编写增强 3.配置 1 <?xml version="1.0" 阅读全文
posted @ 2017-11-27 21:03 无~所~谓 阅读(668) 评论(0) 推荐(0) 编辑