所有的界面元素都是继承与View(如:ImageView 、Button等),布局继承于GroupView(如:LinearLayout等)view的主要属性,这里直接是xml配置里写了,当然直接通过代码也是可以的XML属性相关方法说明android:alphasetAlpha(float alph...
分类:
移动开发 时间:
2014-08-06 14:41:51
阅读次数:
284
1、端口问题造成的连接失败 remote-prepare:
??[sshexec]?Connecting?to?123.123.123.123:22
java.net.ConnectException:?Connection?timed?out 解决办法 修改build.xml,配置端口号? <target?name="rem...
分类:
其他好文 时间:
2014-08-05 19:39:00
阅读次数:
202
1 applicationContext.xml配置文档 --> org.hibernate.dialect.MySQL5InnoDBDialect true ...
分类:
编程语言 时间:
2014-08-05 18:49:29
阅读次数:
244
1、applicationContext.xml配置...
分类:
编程语言 时间:
2014-08-04 21:31:48
阅读次数:
337
新建properties配置文件内容如下:jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc\:mysql\://localhost\:3306/book_mybatis?user\=root&password\=root&useUnico...
分类:
其他好文 时间:
2014-08-04 20:57:37
阅读次数:
263
最新项目发现使用tiles可以非常好的将多个页面组合起来,下面就是配置信息,使用tiles3
1、首先配置maven pom.xml添加如下:
org.apache.struts
struts2-tiles3-plugin
2.3.16.3
2、在WEB-INF目录下添加tiles.xml
3、配置成后,在模板页面【/entrance/base....
分类:
其他好文 时间:
2014-08-04 14:20:07
阅读次数:
219
spring 配置文件 <?xml?version="1.0"?encoding="UTF-8"?>
<beans?xmlns="http://www.springframework.org/schema/beans"
?????????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
分类:
编程语言 时间:
2014-08-03 12:55:55
阅读次数:
244
使用jetty+axis2实现webservice服务端,且无需使用axis2命令生成服务端代码,只要services.xml配置实现类。
工程为gradle工程配置文件在src/main/resources/axis2/WEB-INF/services.xml:
Please Type your service description here
<mes...
分类:
系统相关 时间:
2014-07-31 13:17:26
阅读次数:
323
SQL Injectioin防范ibatis框架先看一段ibatis的xml配置以上的sql中存在一个问题$accountId$是变量替换的形式, 容易引入sql注入, 例如$accountId$是前台用户输入的"';select * from admin--", 那么数据库端就会执行两个sql, ...
分类:
编程语言 时间:
2014-07-31 13:03:06
阅读次数:
315