要在java对数据库做任何操作,第一件事当然是获取数据库连接,笔者是通过配置文件的形式加载数据库信息的,配置文件名为db.properties,内容如下driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/customermanage
username=root
password=root...
分类:
数据库 时间:
2016-05-07 08:26:53
阅读次数:
233
Linux2.6.30/driver/i2c/
1.algos: 协议算法相关的东西
2.busses: 各种平台的i2c总线驱动(i2c控制器驱动/i2c适配器驱动)
3.chips: 各种i2c设备驱动(e2prom/某种传感器/触摸屏)
4.i2c-core.c i2c-dev.c: i2c子系统的通用文件(i2c核心层,提供一些通用函数接口)
应用层app...
分类:
其他好文 时间:
2016-05-07 06:54:24
阅读次数:
150
【重点】Class.forName("com.mysql.jdbc.Driver");//数据库连接语句声明conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/bbs","root","root"); //本地mysql数据库JDBC连接语句(项目名bbs登录名root密码root)conn=DriverManager.getConnection("jdbc:mysql:/..
分类:
数据库 时间:
2016-05-06 19:54:11
阅读次数:
343
今天写selenium用例的时候,遇见奇葩的问题,FF下是没有错误的,但是在chrome和ie下就会有问题,后来发现是 操作中点击一个按钮,在页面不可见,就会导致异常,解决方法如下: element = self.driver.find_element_by_id("id")self.driver. ...
分类:
其他好文 时间:
2016-05-06 19:18:15
阅读次数:
102
AndroidStudio安装
下载AndroidStudio
http://www.android-studio.org/index.php/component/content/category/88-download
安装就是一路next
但是我建议在选择sdk安装路径的时候不要选到C盘user那个路径,后面就会发现所有下载的sdk以及google的usb driver都在这个文件夹下,C盘...
分类:
移动开发 时间:
2016-05-06 15:50:03
阅读次数:
125
以下是我的一个利用SPI控制器操作屏的一个操作实例 包含一个bpeer_tft.c 和一个bpeer_tft.h
下面是代码:
bpeer_tft.c
1 /*
2 * MTD SPI driver for ST M25Pxx flash chips
3 *
4 * Author: Mike Lavender, mike@steroidmicros.com
5 *...
分类:
其他好文 时间:
2016-05-06 15:49:57
阅读次数:
602
??
⑴在建立工程之前,我们建议用户在电脑的某个目录下面建立一个文件夹,后面所建立的工程都可以放在这个文件夹下面,这里我们建立一个文件夹为《STM32工程模板》,然后再在该文件夹下新建6个文件夹,分别为:
《CMSIS》 、《Listings》 、《Output》 、《Project》 、《STM32F10x_Stdperiph_Driver》 、《User》 。《CMSIS》用于存放A...
分类:
其他好文 时间:
2016-05-06 12:43:57
阅读次数:
990
要在spring mvc中使用注解需要在*-servlet.xml文件中添加 <mvc:annotation-driver />配置 这个配置会创建DefaultAnnotationHandlerMapping和AnnotationMethodHandlerAdapter两个bean 但是要注意,要 ...
分类:
编程语言 时间:
2016-05-05 12:27:41
阅读次数:
138
FTDI’s CDM drivers provide both D2XX and VCP functionality through a single driver package on PCs running the following Windows operating systems: Win ...
分类:
其他好文 时间:
2016-05-04 21:10:59
阅读次数:
319
1.操作页面元素--单选按钮WebElementfemaleRadioButton=driver.findElement(By.xpath(""));if(!femaleRadioButton.isSelected()){//判断按钮如果未被选中,则单击选中。femaleRadioButton.click();}assertTrue(femaleRadioButton.isSelected());//再次判断单选按钮是否被选中。..
分类:
Web程序 时间:
2016-05-03 20:40:41
阅读次数:
213