Hi_Amos
坚持每天都在进步!!
随笔 - 224,  文章 - 2,  评论 - 192,  阅读 - 94万
11 2013 档案
[Spring学习笔记 7 ] Spring中的数据库支持 RowMapper,JdbcDaoSupport 和 事务处理Transaction
摘要:1.Spring中的数据库支持 把具有相同功能的代码模板抽取到一个工具类中。2.关于jdbc template的应用 jdbcTemplate模板操作类,把访问jdbc的模板抽取到template中,使用模板类,可以不用管有关连接管理,关闭等细节,只关注核心业务代码,外围事情交给 Spring的模板去处理。3.Spring框架关于对数据库的支持A、统一的事务平台trasaction ManagementB、提供Dao support,support封装了有关template.public class SpringJdbcTemplateBestSupport extends JdbcD... 阅读全文
posted @ 2013-11-29 02:15 Hi_Amos 阅读(577) 评论(0) 推荐(0) 编辑
[Spring学习笔记 6 ] Spring JDBC 详解
摘要:项目使用maven管理,pom.xml和项目组织如下: 4.0.0 com.amos.spring Lspring_JDBC 0.0.1-SNAPSHOT jar Lspring_JDBC http://maven.apache.org UTF-8 junit junit 4.2 test org.springframework spri... 阅读全文
posted @ 2013-11-28 02:17 Hi_Amos 阅读(477) 评论(0) 推荐(0) 编辑
ubuntu 连接windows远程桌面 &&rdesktop 退出全屏模式
摘要:参考:http://www.asgone.net/ubuntu-connect-windows-remote-desktop/呵呵,使用上了ubuntu,怎么接连上我的服务器的远程桌面呢,找了找帮助,使用终端命令就可以了:sudo apt-get install rdesktoprdesktop 124.42.120.174:1433呵呵,连接成功了。-f 全屏-a 16位色默认端口是3389(linux 22 sh)注意:windows 的服务中的 Terminal Servies 需要开启。我的电脑 右键 属性 远程中,勾选 允许远程用户链接到此计算机。另外,退出的时候选择注销,而不是关. 阅读全文
posted @ 2013-11-27 18:13 Hi_Amos 阅读(3714) 评论(0) 推荐(1) 编辑
maven Missing artifact com.sun:tools:jar:1.5.0
摘要:转自:http://blog.csdn.net/caolaosanahnu/article/details/7918929http://zuoshahao.com/work/others/missing-artifact-com-suntoolsjar1-5-0/刚才把之前的一个maven工程导入eclipse后,发现pom.xml打红叉,其问题如下所示:问题似曾相识,没错,这个在《Could not find artifact com.sun:tools:jar:1.5.0》中曾说过。当时的解决方法是把【Windows】-【Preferences】-【Java】-【Install JREs】 阅读全文
posted @ 2013-11-27 18:02 Hi_Amos 阅读(3465) 评论(0) 推荐(0) 编辑
mysql 常用命令,连接数据库,查看建表语句,批量导入数据,批量更新数据,连接查询
摘要:1.1)MySQL 连接本地数据库,从cmd中进入mysql命令编辑器: root root分别为用户名和密码mysql -uroot -proot2)MySQL 连接本地数据库,用户名为“root”,密码“123”(注意:“-p”和“123” 之间不能有空格)C:\>mysql -h localh... 阅读全文
posted @ 2013-11-27 00:43 Hi_Amos 阅读(1144) 评论(0) 推荐(0) 编辑
[Spring学习笔记 5 ] Spring AOP 详解1
摘要:知识点回顾:一、IOC容器---DI依赖注入:setter注入(属性注入)/构造子注入/字段注入(注解 )/接口注入 outSpring IOC容器的使用: A、完全使用XML文件来配置容器所要管理的业务组件及相互依赖关系 。 B、使用xml来配置Bean,用注解(@Autowired @Resource)来配置依赖。 C、完全使用注解 @Service,@Controller,@Component,@Repository,有些标签,则会把其放到容器中,@Autowired @Resource表示依赖关系Spring 容器其特性: A:value属性处理。注册自定义的类型。 B:容器扩展,容. 阅读全文
posted @ 2013-11-26 01:39 Hi_Amos 阅读(346) 评论(0) 推荐(0) 编辑
[Spring学习笔记 4 ] AOP 概念原理以及java动态代理
摘要:一、Spring IoC容器补充(1)Spring IoC容器,DI(依赖注入):注入的方式:设值方法注入setter(属性注入)/构造子注入(构造函数传入依赖的对象)/字段注入Field(注解)/接口注入 out装配的方式:手动装配(、、@Autowired、@Resource)/自动装配(autowire="byName")1、装配各种类型的属性A、简单属性-value属性或者value元素 68 B、引用其它bean-使用ref属性或者标签。 C、内部bean ... 阅读全文
posted @ 2013-11-25 23:19 Hi_Amos 阅读(566) 评论(0) 推荐(0) 编辑
java.lang.IllegalStateException: Failed to load ApplicationContext selenium 异常 解决
摘要:WARN , HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator insteadERROR prepareTestInstance, Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.De... 阅读全文
posted @ 2013-11-23 14:15 Hi_Amos 阅读(7471) 评论(0) 推荐(0) 编辑
Windows 7系统如何设置计划任务?
摘要:Windows7系统如何设置计划任务?问题描述:Windows7系统如何设置计划任务?任务计划概述:任务计划,可以将任何脚本、程序或文档安排在某个时间运行。“任务计划”在每次启动windows系统的时候自动启动(默认TaskScheduler服务是开启的)并在后台运行。使用“任务计划”可以完成以下任务:计划让任务在每天、每星期、每月或某些时刻(例如系统启动时)运行。更改任务的计划。停止计划的任务。自定义某个任务在某个时刻的运行方式。任务计划主界面介绍:1,点击“开始→控制面板→系统和安全→管理工具→任务计划”。就可以看到“任务计划”的选项。2,在计划任务中,可以对已有的任务计划进行编辑和设置。 阅读全文
posted @ 2013-11-22 14:04 Hi_Amos 阅读(329) 评论(0) 推荐(0) 编辑
【总结】java regex 正则表达式 提取数字和去除数字,过滤数字,提取价格
摘要:@Test public void test33() { String phoneString = "哈哈,13888889999"; // 提取数字 // 1 Pattern pattern = Pattern.compile("[^0-9]"); Matcher matcher = pattern.matcher(phoneString); String all = matcher.replaceAll(""); System.out.println("phone:" + all... 阅读全文
posted @ 2013-11-22 11:30 Hi_Amos 阅读(38316) 评论(0) 推荐(1) 编辑
java+win7+eclipse+Maven+sikuli 配置总结---图形脚本语言
摘要:简介:Sikuli是一种新颖的图形脚本语言,或者说是一种另类的自动化测试技术。它与我们常用的自动化测试技术(工具)有很大的区别。关于配置,一直是一个问题,下面做个总体介绍,用sikuli也有几个月时间了,是时候做个备忘.技术难点:怎么用maven+sikuli做个组合?http://mvnrepository.com/artifact/org.sikulimaven仓库里只有四个jar包,sikuli的核心jar包script包没有,这应该怎么办?先把pom.xml贴出来: 4.0.0 com.infomorrow.clientdetect clientdetect 0.0.1-SNA... 阅读全文
posted @ 2013-11-20 23:23 Hi_Amos 阅读(3571) 评论(0) 推荐(0) 编辑
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or br
摘要:WARN , HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator insteadERROR prepareTestInstance, Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.Depe. 阅读全文
posted @ 2013-11-20 10:39 Hi_Amos 阅读(3824) 评论(2) 推荐(0) 编辑
at com.mysql.jdbc.SQLError.createSQLException
摘要:WARN run, com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1de6191 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!WARN run, com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1de6191 -- APPARENT DEADLOCK!!! Complete Status: Manage... 阅读全文
posted @ 2013-11-20 10:06 Hi_Amos 阅读(8928) 评论(0) 推荐(0) 编辑
[Spring学习笔记 3 ] spring 注解详解,完全注解,常用注解
摘要:2.xml使用注解xml 用来定义bean的信息,注解用来配置依赖信息1) 在配置文件中配置bean2)在javaBean中用注解来指定依赖注入3)在配置文件中开启注解扫描@Resource标签 java标签的资源注解@Autowired(Spring自定义的注解),注解可以加在setter注入中,也可以加在field(field注入)@Resource 按名称注入,找到名称相同,则直接注入,找不到名称相同的则找类型@Atutowired 按类型注入,会先按类型找,找不到再找名称,required=false,用来指定,该依赖的对象是否是必须的。@Qualifier(value="p 阅读全文
posted @ 2013-11-20 02:02 Hi_Amos 阅读(798) 评论(0) 推荐(0) 编辑
jenkins+maven+git+ 邮件自动转发 持续化集成 图文教程
摘要:1.所需要的插件,安装plugin,进入mangae Jenkins→ manage Plugins,切换到Available tab,选择如下plugin安装 Gitplugin,GitHubPlugin,GitClientPlugin,Email-ext plugin 如果你的git仓库是private的还需要安装SSHSlavesplugin,SSHCredentialsPlugin,否则git不成功。2.插件安装完之后 ,进入系统设置3.设置jdk,这个是必须的!.4.Git配置下载git zip包,并解压缩,下载地址为:http://code.google.com/p/m... 阅读全文
posted @ 2013-11-19 19:38 Hi_Amos 阅读(1453) 评论(0) 推荐(0) 编辑
[Spring学习笔记 1 ] Spring 简介,初步知识--Ioc容器详解 基本原理。
摘要:一、Spring Ioc容器详解(1) 201311051.一切都是BeanBean可是一个字符串或者是数字,一般是一些业务组件.粒度一般比较粗.2.Bean的名称xml配置文件中,id属性可以检测是否唯一。name是可以重复的。一个bean的实现可以有多个名字,别名3.Spring 容器的初始化过程(不同的实现有不同的过程) A、根据加载的配置文件信息注解Bean的信息(BeanDefinition)到Bean工厂B、根据得到的Beandefintion对象来确定要不要初始化一些BeanC、处理依赖注入(根据BeanDefintion 中有关依赖注入的信息)D、客户端通过容器来查询业务... 阅读全文
posted @ 2013-11-19 00:58 Hi_Amos 阅读(368) 评论(0) 推荐(0) 编辑
[Spring学习笔记 2 ]装配各种类型的属性 map,list,array,null,properties
摘要:一.spring Ioc容器补充(1)Spring Ioc容器 DI(依赖注入):注入的方式:设值方法注入setter(属性注入)/构造子注入(构造函数传入依赖的对象)/字段注入field(注解)/接口注入out装配的方式:手动装配,,@Autowired,@Resource/自动装配1.装配各种类型的属性:A、简单属性value属性或者value元素 30 ABCD http://google.com B、引用其它bean,使用ref属性或者ref标签 C、使用... 阅读全文
posted @ 2013-11-19 00:51 Hi_Amos 阅读(872) 评论(0) 推荐(0) 编辑
[转]解决Eclipse中编辑xml文件的智能提示问题
摘要:转自:http://hi.baidu.com/cghroom/item/48fd2d0dc1fc23c675cd3c3e摘要:Eclipse for Android xml文件代码自动提示功能,介绍Eclipse编辑器中实现xml文件代码自动智能提示功能,解决eclipse代码提示失效、eclipse不能自动提示、eclipse没有代码提示的问题。Eclipse for Android xml文件代码自动提示功能,介绍Eclipse编辑器中实现xml文件代码自动智能提示功能,解决eclipse代码提示失效、eclipse不能自动提示、eclipse没有代码提示的问题。eclipse xml代码 阅读全文
posted @ 2013-11-17 23:53 Hi_Amos 阅读(768) 评论(1) 推荐(0) 编辑
【经验总结】 fisheye 3.1.5 安装、破解全过程 图文教程(2.0以上版本均可成功!)
摘要:声明:此破解仅为个人娱乐,如果你有钱,请支持正版!重要说明,只要把fisheye先关掉即可,然后执行下面的破解步骤,一样可以破解!本人已测试通过。一、安装、破解fisheye最新版3.1.5 所需文件1.下载fisheyehttps://www.atlassian.com/software/fisheye/download 最新版本链接https://www.atlassian.com/software/fisheye/download-archives以前版本链接 2.下载所需要的破解文件 “fisheye2以上破解文件.7z”http://pan.baidu.com/s/18BOWC百度网 阅读全文
posted @ 2013-11-17 16:48 Hi_Amos 阅读(5426) 评论(0) 推荐(0) 编辑
fisheye Error occurred during initialization of VM Could not reserve enough space for object heap 问题解决!
摘要:参考文章:https://answers.atlassian.com/questions/9397/not-enough-heap-space-to-run-fisheyefisheye下载好了之后,解压后怎么运行run.bat都报错误,错误提示如下:D:\developsoft\fisheye-3.1.5\fecru-3.1.5>bin\run.bat --debugError occurred during initialization of VMCould not reserve enough space for object heapError: Could not create 阅读全文
posted @ 2013-11-17 14:52 Hi_Amos 阅读(12912) 评论(0) 推荐(0) 编辑
【总结】selenium webdriver 远程连接firefox和IE 环境搭建
摘要:参考链接:http://code.google.com/p/selenium/wiki/Grid2本地环境为:win7,eclipse,jdk 1.7,本机ip为192.168.0.301.下载所需文件1.1 下载好jar包,下载网址为:http://selenium.googlecode.com/... 阅读全文
posted @ 2013-11-17 00:45 Hi_Amos 阅读(1603) 评论(0) 推荐(0) 编辑
转 java实现截图
摘要:转自http://www.zhenhua.org/article.asp?id=382可以直接运行!import java.awt.Dimension;import java.awt.Rectangle;import java.awt.Robot;import java.awt.Toolkit;import java.awt.image.BufferedImage;import java.io.File;import javax.imageio.ImageIO;/****************************************************************** 阅读全文
posted @ 2013-11-16 16:35 Hi_Amos 阅读(270) 评论(0) 推荐(0) 编辑
webDriver.Close() 和 webDriver.Quit() 、webDriver.Dispose() 的区别
摘要:1.webDriver.Close() - Close the browser window that the driver has focus of //关闭当前焦点所在的窗口2.webDriver.Quit() - Calls dispose //调用dispose方法3.webDriver.Dispose() Closes all browser windows and safely ends the session 关闭所有窗口,并且安全关闭session 阅读全文
posted @ 2013-11-14 18:03 Hi_Amos 阅读(659) 评论(0) 推荐(0) 编辑
mysql 排序 oder by 和 使用hibernate 排序
摘要:String sql="select * from sys_invitation where to_phone = '13000000000' order by create_time desc ;"; Session currentSession = this.getCurrentSession(); List list = currentSession.createSQLQuery(sql).addEntity(SysInvitation.class).list(); for(SysInvitation syslist:list){ String inv 阅读全文
posted @ 2013-11-11 16:47 Hi_Amos 阅读(590) 评论(0) 推荐(0) 编辑
Selenium webdriver 获取属性值 元素里的value
摘要:1.WebElement webElemt= webElement.findElement(By.xpath("//*[@class='xxxxxx]/a"));//在ie下使用innerText 在火狐下使用textContentString linktext = webElemt.getAttribute("innerText");2.WebElement element = ...;//测试的好像不行。 ((JavascriptExecutor) driver).executeScript("return arguments[0] 阅读全文
posted @ 2013-11-09 17:23 Hi_Amos 阅读(7371) 评论(0) 推荐(0) 编辑
Mysql模糊查询 select count(*) from sys_invitation where from_id like '%1006%';
摘要:select count(*) from sys_invitation where from_id like '%1006%'; 查询结果select * from sys_invitation where from_id like '%1006%';统计数量 阅读全文
posted @ 2013-11-09 17:16 Hi_Amos 阅读(558) 评论(0) 推荐(0) 编辑
java 结束程序进程 代码
摘要:结束firefox的进程,一句代码就够了,如下:Runtime.getRuntime().exec("taskkill /F /IM firefox.exe"); 结束qq:Runtime.getRuntime().exec("taskkill /F /IM qq.exe"); 阅读全文
posted @ 2013-11-07 18:59 Hi_Amos 阅读(1362) 评论(0) 推荐(0) 编辑
[解决问题]selenium.remote.UnreachableBrowserException 异常分析并解决问题
摘要:I have a set of automations that work fantastically in Firefox and Chrome, and I'd like to launch an instance of IEDriver as well.I've set up IEDriver as per Selenium's Google Code wiki, with the correct path (if I change the path I get a different exception, so it's definitely corre 阅读全文
posted @ 2013-11-07 11:20 Hi_Amos 阅读(21081) 评论(0) 推荐(0) 编辑
【解决问题】failed: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer.
摘要:failed: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not prov 阅读全文
posted @ 2013-11-05 17:58 Hi_Amos 阅读(4357) 评论(0) 推荐(1) 编辑
是否只查看安全传送的网页内容? 去掉 IE弹出窗口
摘要:选择IE工具intemt选项,在选项卡里选择安全,然后在安全选项卡里点自定义级别,在设置里找到‘其他’这个分类,在次分类下找到‘显示混合内容’选择‘启用’然后保存退出就OK了,当然楼上几位说安全问题,其实根本不是问题,这些都是HTTPS加密网站,警告的不安全内容只是图片内容而已。intemt选项-》安全-》internet-》自定义安全级别-》在“其他”分类里边找到“显示混合内容”,把默认的“提示”改为“启用”或者“禁用”都可以的。 阅读全文
posted @ 2013-11-03 13:02 Hi_Amos 阅读(466) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示