黎明以后
wfzhanga · 共 49 篇文章
扫地机器人
写道 package qlcoder.robot2; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Room { private int level; p…
2016-03-04 16:50 · JAVA基础 · 评论(0)
java 注解说明
Class clazz = entity.getClass(); //获取类的指定注解 DBTable dbTable = (DBTable) clazz.getAnnotation(DBTable.class); for(Field field : clazz.getSuperclass().getDeclaredFields()){ //判断属性的注解是否存在 field.isAnnotationPresent(DBColumn.class) //获取属性的指定注解 String annotationName = ((DBColumn) field.getAnnotation(DBCol…
2015-11-30 13:52 · JAVA基础 · 评论(0)
JAVA与Sap交互技术RFC
public class SapFunction { //JCo 返回参数类型定义 public static final Integer Type_String = 1; public static final Integer Type_Int = 2; public static final Integer Type_Long = 3; public static final Integer Type_Double = 4; public static final Integer Type_Date = 5; public static final Integer Type_Float …
2015-09-09 10:40 · J2ee发展 · 评论(0)
J2ee杂谈
我也搞了几年JAVA了,由于一向懒惰,没有成为大牛,只是一普通程序猿,不爱玩社交网站,不爱玩微博,唯独喜欢百度贴吧,潜水很久了,手痒来给新人分享下从新手成长为老鸟的已见,也刷刷存在感,应该不比曝照差吧。 首先初识语法的阶段,必须要学会怎么操作对象,操作if和for,操作list set map,然后是线程、IO和jdbc什么的,其余的,若是一时不理解,可以后边需要时再学。 这阶段完了,你可以写些能在控制台打印出来的小程序,锻炼下逻辑思维。也就是号称JAVASE毕业了,其实不过是入门而已,如果要往WEB方向发展,这些倒是基本足够了。 接下来要学HTML JSP SERVLET 数据库 JAVA…
2013-12-14 10:16 · J2ee发展 · 评论(0)
tree节点自动展开
网上找过很多,都好像效果不明显, 下面是自己改进的一个,flex3测试可行: setTimeout(treeExpand, 1000); //延时1秒 private function treeExpand():void { tree.selectedIndex=1; openItem(tree,District(tree.selectedItem)); } private function openItem(tree:NodeTree, treeItem:District):void { tree.expandItem(treeItem,true); if(treeItem.childre…
2013-12-06 10:16 · Flex技术 · 评论(0)
关于数据库锁死的问题
1. 查看哪个表被锁 select b.owner, b.object_name, a.session_id, a.locked_mode from v$locked_object a, dba_objects b where b.object_id = a.object_id; 2.查看是哪个session引起的 select b.username, b.sid, b.serial#, logon_time from v$locked_object a, v$session b where a.session_id = b.sid order by b.logon_time; 3.杀掉对应…
2013-11-26 19:09 · 数据库问题 · 评论(0)
Flex Spring框架成BlazeDS
官网地址: http://www.springsource.org/spring-flex 下载资源包: spring-flex-1.5.2.RELEASE-dist.zip 1. 代码配置(spring的配置不作说明): 1)引入jar包:spring-flex-core-1.5.2.RELEASE.jar 2)web.xml配置: <listener> <listener-class>flex.messaging.HttpFlexSession</listener-class> </listener> <servlet> <servlet-name>MessageBrokerServle…
2013-09-15 12:32 · Flex技术 · 评论(0)
spring获取webapplicationcontext,applicationcontext几种方法详解
写道 方法一:在初始化时保存ApplicationContext对象 代码: ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml"); ac.getBean("beanId"); 说明:这种方式适用于采用Spring框架的独立应用程序,需要程序通过配置文件手工初始化Spring的情况。 方法二:通过Spring提供的工具类获取ApplicationContext对象 代码: import org.springframework.web.context.support.WebAp…
2013-05-29 16:45 · ssh框架集成 · 评论(0)
axis webService实例
Axis 简单说明: 1. Lib 包引用 2.web.xml配置 <listener> <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class> </listener> <servlet> <display-name>Apache-Axis Servlet</display-name> <servlet-name>AxisServlet</servlet-name> <servlet-class>org.apache.axis.transport.http.AxisServ…
2013-05-27 12:04 · 评论(0)
数据库恢复语句
** 闪回 查询某一时间点的数据 select * from gs_grid_info as of timestamp to_timestamp('2013-05-09 9:00:47', 'yyyy-mm-dd hh24:mi:ss'); 允许数据表行移动 alter table gs_grid_relation enable row movement; 恢复到指定时间的表记录 flashback table gs_grid_relation to timestamp to_timestamp('2013-05-09 10:00:00','yyyy-mm-dd hh24:mi:ss'); …
2013-05-09 15:58 · 数据库问题 · 评论(0)
finallly语句警告
当finall块中包含return语句时,Eclipse会给出警告“finally block does not complete normally”,原因分析如下: 1、不管try块、catch块中是否有return语句,finally块都会执行。 2、finally块中的return语句会覆盖前面的return语句(try块、catch块中的return语句),所以如果finally块中有return语句,Eclipse编译器会报警告“finally block does not complete normally”。 3、如果finally块中包含了return语句,即使前面的catc…
2013-03-07 13:21 · 错误汇总 · 评论(0)
flex DataGridColumn 时间类型显示格式
private function formatTime(item:Object,column:DataGridColumn):String { return df.format(item.operateDate); // df是一个DateFormatter,这里格式化item数据中的startDate字段 } 定义输出格式 <mx:DateFormatter id="df" formatString="YYYY-MM-DD"/> <mx:DataGridColumn headerText="规划时间" dataField="operateDate" labelFunction="forma…
2013-02-22 16:07 · Flex技术 · 评论(0)
flex DataGridColumn 换行 tooltip
1. Flex中DataGrid中行列值信息量太大,无法显示时就需要采用tooltip方式,进行提示。 采用方式为:dataTipField="text" showDataTips="true" <mx:DataGridColumn headerText="Text" dataField="text" dataTipField="text" showDataTips="true" /> 2. 如上情况也可以自动换行显示,wordWrap="true"。 <mx:DataGridColumn wordWrap="true" headerText="描述" dataField="dec"/>
2013-02-22 15:30 · Flex技术 · 评论(0)