2017年2月1日 #

eclipse自动补全

摘要: 如果你用过Visual Studio的自动补全功能后,再来用eclipse的自动补全功能,相信大家会有些许失望。 但是eclipse其实是非常强大的,eclipse的自动补全没有VS那么好是因为eclipse的补全功能用的是默认设置。你只需要稍微修改一下就行了。 最简单的修改方式是:Windows— 阅读全文

posted @ 2017-02-01 00:34 liushao 阅读(256) 评论(0) 推荐(0) 编辑

2017年1月31日 #

hibernate运行常见错误

摘要: 错误一: Exception in thread "main" org.hibernate.MappingException: Could not determine type for: java.lang.Date, for columns: [org.hibernate.mapping.Colu 阅读全文

posted @ 2017-01-31 02:18 liushao 阅读(206) 评论(0) 推荐(0) 编辑

hibernate中出现 文档根元素 "hibernate-mapping" 必须匹配 DOCTYPE 根 "hibernate-configuration"

摘要: hibernate中出现 文档根元素 "hibernate-mapping" 必须匹配 DOCTYPE 根 "hibernate-configuration" 错误! 网上查资料发现这是因为hibernate.xml和我的customer.hbm.xml中的表头原因 这两个的表头不是一样的, 有细微 阅读全文

posted @ 2017-01-31 01:12 liushao 阅读(2972) 评论(0) 推荐(0) 编辑

The word is not correctly spelled问题解决

摘要: 今天在做Ant/Xdoclet辅助生成hibernate实体映射文件时,eclipse出现了极其让我郁闷的错误,"The word is not correctly spelled" 。然后我继续将代码执行下去,居然执行没有问题,还真的生成了实体映射文件。原来是eclipse的问题,打开eclips 阅读全文

posted @ 2017-01-31 00:44 liushao 阅读(4958) 评论(0) 推荐(0) 编辑

2017年1月30日 #

Tomcat网站根目录的配置

摘要: 在</Host>前插入: <Host> … … <Context path="" docBase="E:\Users\Administrator\workspace\1th\WebContent" debug="0" reloadable="true"/></Host> 结果如下 阅读全文

posted @ 2017-01-30 14:57 liushao 阅读(2248) 评论(0) 推荐(0) 编辑

2017年1月29日 #

结构体的使用

摘要: 结构体的使用 定义结构体 struct BUF{ unsigned char Head; //命令头 unsigned char wendu_value[2]; unsigned char light_value[2]; unsigned char Tail; //命令尾 }; 声明结构体变量 st 阅读全文

posted @ 2017-01-29 14:47 liushao 阅读(575) 评论(0) 推荐(0) 编辑

2017年1月26日 #

ZigBee学习五 无线温度检测

摘要: ZigBee学习五 无线温度检测 1)修改公用头文件GenericApp.h typedef union h{ uint8 TEMP[4]; struct RFRXBUF { unsigned char Head; unsigned char value[2]; unsigned char Tail 阅读全文

posted @ 2017-01-26 17:19 liushao 阅读(1998) 评论(0) 推荐(0) 编辑

ZigBee学习四 无线+UART通信

摘要: ZigBee学习四 无线+UART通信 1) 协调器编程 修改coordinator.c文件 byte GenericApp_TransID; // This is the unique message ID (counter) afAddrType_t GenericApp_DstAddr; // 阅读全文

posted @ 2017-01-26 16:08 liushao 阅读(1067) 评论(0) 推荐(0) 编辑

ZigBee学习三 UART通信

摘要: ZigBee学习三 UART通信 在使用串口时,只需掌握ZigBee协议栈提供的串口操作相关的三个函数即可。 uint8 HalUARTOpen(uint8 port,halUARTCfg_t *config); uint16 HalUARTRead(uint8 port,uint8 *buf,ui 阅读全文

posted @ 2017-01-26 15:18 liushao 阅读(4124) 评论(0) 推荐(0) 编辑

ZigBee学习二 LED点对点通信

摘要: ZigBee学习二 LED点对点通信 终端上电后,自动连接协调器进行组网,成功后,开始发送LED字符数据。当协调器接收到数据后,终端和协调器的LED1都开始闪烁。 工程搭建和文件添加 步骤这里就省了。。。直接修改代码。。。 1)修改coordinator.c文件 因为协调器是接收终端的信息并进行相应 阅读全文

posted @ 2017-01-26 14:07 liushao 阅读(2162) 评论(0) 推荐(0) 编辑

导航