- rabbitmq之mqtt的坑(qos2 not supported for connection)
zhuyuansj
之前的文章中我也有介绍mqtt,这次遇到一个问题,让我百思不得其解,由于之前在我的调试之下解决了问题,主要是部署在服务器上的mqttServer用的clientid和我本地测试用的代码用的clientid重复了,后来纠正后可以正常使用了,但是最近又不能用了,想想哪里肯定又又设置问题了。遇到这种问题的解决思路有。1.首先想想最近做了什么可能会影响到rabbitmq?2.查看rabbitmq下的log
- esp8266连接mqtt服务器(本地服务器)
20161201
物联网
#include#include//设置wifi接入信息(请根据您的WiFi信息进行修改)constchar*ssid="nova";constchar*password="wifi.danke.life";constchar*mqttServer="192.168.43.129";//如以上MQTT服务器无法正常连接,请前往以下页面寻找解决方案//http://www.taichi-maker.
- netty-daxin-2(netty常用事件讲解)
ps酷教程
netty学习
文章目录netty常用事件讲解ChannelHandler接口ChannelHandler适配器类ChannelInboundHandler子接口Channel的状态调用时机ChannelHandler生命周期示例NettServer&CustomizeInboundHandlerNettyClient测试分析ChannelInboundHandlerAdapter适配器类SimpleChanne
- Spring Boot Configuration Annotation Processor not configured 问题解决
程序员阿明
springbootjava
1、出现问题的使用场景例如使用@ConfigurationProperties(prefix=MQTTServerProperties.MQTTPREFIX)注解时2、安装依赖org.springframework.bootspring-boot-configuration-processortrueorg.springframework.bootspring-boot-maven-plugino
- thingsboard官网单机并发量
任玉
物联网物联网
以下内容来自thingsboard官网数据,待实测。官方用的是Gatling作为测试工具,进行的测试工作thingsBoard服务器的单个实例而进行的步骤和改进。可以每秒不断处理20,000+个设备和30,000+MQTT发布消息总而言之,这使我们每分钟发布200万条消息。ThingsBoard的性能利用了三个主要项目:Netty用于IoT设备的高性能MQTTserver/broker。Cassa
- 蓝牙 - BLE中的电池信息服务
夜流冰
蓝牙其他
在目标设备的蓝牙模块启动时,作为GATTServer,要初始化BatteryService,并注册callback函数来处理Batteryservice相关的事件,callback函数名为BAS_Event_Callback。然后在BLEGATTserver设备向外发送广播数据时,在配置Service字段时,可以加入BatteryService的UUID值。按照大端存放,广播数据中的第一个字节是0
- 《从菜鸟到大师之路 Redis 篇》
程序员达芬奇
redis从菜鸟到大师之路php进阶redis数据库
《从菜鸟到大师之路Redis篇》(一):Redis基础理论与安装配置Nosql数据库介绍是一种非关系型数据库服务,它能解决常规数据库的并发能力,比如传统的数据库的IO与性能的瓶颈,同样它是关系型数据库的一个补充,有着比较好的高效率与高性能。专注于key-value查询的redis、memcached、ttserver。解决以下问题对数据库的高并发读写需求大数据的高效存储和访问需求高可扩展性和高可用
- Nosql数据库服务之redis
程序员达芬奇
redisnosqlredis数据库
Nosql数据库服务之redis一图详解DB的分支产品Nosql数据库介绍是一种非关系型数据库服务,它能解决常规数据库的并发能力,比如传统的数据库的IO与性能的瓶颈,同样它是关系型数据库的一个补充,有着比较好的高效率与高性能。专注于key-value查询的redis、memcached、ttserver解决以下问题1)对数据库的高并发读写需求2)大数据的高效存储和访问需求3)高可扩展性和高可用性的
- Unity实现MQTT服务器
浅丿忆十一
unity服务器游戏引擎
首先下载MqttNet:MqttNet下载地址解压好后使用vs打开,并生成.dll文件(我这里下载的是4.1.2.350版本)然后再/Source/MQTTnet/bin/Debug/net452文件夹中找到生成的文件新建unity工程,创建Plugins文件夹,将文件复制到该文件夹内然后新建脚本MyMqttServer,代码内带有注释usingMQTTnet.Adapter;usingMQTTn
- 从零开始搭建属于自己的物联网平台(四)实现基于协议包的动态协议解析
加班狂魔
从零开始搭建物联网平台物联网
实现动态的协议解析源码往期链接业务需求实现方式源码实现协议对象接口协议对象的实现类解析协议包源码源码仓库往期链接从零开始搭建属于自己的物联网平台(一)需求分析以及架构设计从零开始搭建属于自己的物联网平台(二)实现基于订阅发布的消息总线从零开始搭建属于自己的物联网平台(三)基于netty实现mqttserver网关业务需求在物联网平台场景下,接入设备是多种多样的,这时候就不能以硬编码的形式在源码中实
- 终于卷完了!Redis 打怪升级进阶成神之路(2023 最新版)!
redis数据库后端运维程序员
Nosql数据库介绍是一种非关系型数据库服务,它能解决常规数据库的并发能力,比如传统的数据库的IO与性能的瓶颈,同样它是关系型数据库的一个补充,有着比较好的高效率与高性能。专注于key-value查询的redis、memcached、ttserver。解决以下问题:对数据库的高并发读写需求大数据的高效存储和访问需求高可扩展性和高可用性的需求Redis数据库Redis是一款内存高速缓存数据库。Red
- 终于卷完了!Redis 打怪升级进阶成神之路(2023 最新版)!
redis数据库后端运维程序员
Nosql数据库介绍是一种非关系型数据库服务,它能解决常规数据库的并发能力,比如传统的数据库的IO与性能的瓶颈,同样它是关系型数据库的一个补充,有着比较好的高效率与高性能。专注于key-value查询的redis、memcached、ttserver。解决以下问题:对数据库的高并发读写需求大数据的高效存储和访问需求高可扩展性和高可用性的需求Redis数据库Redis是一款内存高速缓存数据库。Red
- mqtt qos2 设计方案
漩涡佐助栋
MQTTQos2设计方案mqtt相关协议:mqtt相关协议mqtt相关协议qos2整体实现方案:整体架构图主要实现步骤如下:mqttQos2增加redis的主要存储结构以及作用为:名称keyvalue作用receiveQos2MessageclientId^packetIdmsgId记录producer向mqttserver发送消息是否成功,避免重复发送deliverQos2Messageclin
- fr8016 sdk协议栈开发-gatt
hello_world^_^
蓝牙单片机
一、gatt协议 通用属性配置文件协议(GATT)是在属性协议(ATT)之上构建的为传输的数据建立共同的操作规范,数据以ATT协议的形式存储。 Gatt定义了两个角色:服务器和客户。Gatt角色不一定与特定的角色有关,而是可以通过较高的profile指定。gatt和att不特定用于BR/EDR和LE的传输,但是,因为Gatt和ATT用于发现服务,在LE中是必须的。 GATTserver存储通
- EMQX Cloud Serverless 正式上线:三秒部署、按量计费的 MQTT Serverless 云服务
EMQX
物联网serverless运维物联网IoTMQTT
近日,全球领先的开源物联网数据基础设施软件供应商EMQ正式发布了MQTTServerless云服务——EMQXCloudServerless的Beta版本,开创性地采用弹性多租户技术,用户无需关心服务器基础设施和服务规格伸缩所需资源,仅用三秒即可极速创建MQTT部署,并根据业务需求进行无感知自动化弹性伸缩、按实际使用量付费,实现全自动化的MQTT接入服务,专注物联网业务逻辑和实现。作为全托管的MQ
- ESP-C3入门17. 低功耗蓝牙GATT Server
编程圈子
#ESP单片机ESP32蓝牙
ESP-C3入门17.低功耗蓝牙GATTServer一、基本概念1.GATT、属性、服务2.角色(1)GATTServer(2)GATTClient二、ESP32IDF建立GATTServer步骤1.初始化BLE驱动程序并创建GATT应用程序2.注册应用程序事件处理程序3.配置GATT层MTU(最大传输单元)4.创建GATT服务并声明其UUID5.创建GATT特征并声明其UUID和属性6.将特征添
- mesh使用GATT进行配网的流程
付康为
BLEMesh总结
mesh使用GATT进行配网的流程如下图所示:Provisioner(GATTClient)Device(GATTServer)广播UnprovisionedDevicebeacon扫描UnprovisionedDevicebeacon建立BLEConnectionDiscoverthe"MeshProxyService"ResponseDiscoverthecharacteristicsof
- ThingsBoard 二次开发之源码分析 5-如何接收 MQTT 连接
ThingsKit 物联网平台
物联网thingsboard牛魔王IoTFSthingsboard物联网物联网平台IOT
欢迎加入ThingsBoard技术交流群这里可复制Q群号:69998183关注“云腾五洲”:获取二开ThingsBoard物联网平台演示交流社区:ThingsKit-ThingsBoard社区ThingsBoard源码分析5-如何接收MQTT连接1.MQTTserver需要接收设备的MQTT连接,那么thingsboard中必然有MQTT服务器,MQTT服务器创建的类是MqttTransportS
- BTstack - GATT Server
tang_jia
BTstack-GATTServer.gatt文件首先我们需要了解一下BTstack特有的GATT表示文件.gatt,它是一种类似csv格式的表示法,如下所示://importservice_name#importPRIMARY_SERVICE,{SERVICE_UUID}CHARACTERISTIC,{ATTRIBUTE_TYPE_UUID},{PROPERTIES},{VALUE}CHARAC
- C# MQTTnet 3.1升级到MQTTnet 4.0 Client编程变化
PascalMing
IoT编程c#物联网网络协议
1、前言MQTTnet的C#版的开源MQTT通讯库,支持MQTTServer和Client,并提供各种类型的连接方法Demo。MQTTnet库3.1升级到4.0,并不完全兼容,在连接方式构建、事件订阅等方面需要修改。2、MQTTnet3.1Client编程using部分usingMQTTnet;usingMQTTnet.Client.Options;usingMQTTnet.Client;usin
- Java之泛型接口
yuan_boss
JavaSEjava接口程序人生经验分享泛型接口
泛型接口泛型接口和普通接口类型,定义的抽象方法没有方法体,也通常会把publicabstract省略,定义常量也通常会省略publicfinalstatic泛型接口/***泛型接口*语法:接口名*注意:不能泛型静态常量*@param*/publicinterfaceMyIterface{publicfinalstaticStringname="yuan";publicabstractTserver
- 基于node.js搭建简单的MQTT服务器,手机通过热点连接电脑实现MQTT服务器测试
KrealHtz0.0
物联网服务器node.js前端物联网mqtt
基于node.js搭建简单的MQTT服务器,手机通过热点连接电脑实现MQTT服务器测试服务器搭建首先搭建好node.js环境,配置好MQTT服务器,这个网上教程有许多,可以参照这篇博客来进行配置Node.js配置。服务端mqtt.js:constmosca=require("mosca");constMqttServer=newmosca.Server({port:1883});MqttServe
- edgex接入modbus设备
大河柳树
EdgeX物联网物联网edge边缘计算
本文介绍edgex利用modbus-tcp协议接入模拟设备,利用kuiper根据设备名称进行筛选,然后发布到mqttserver的过程1.下载ModbusPal并配置ModbusPal下载连接https://sourceforge.net/p/modbuspal/discussion/899955/thread/72cf35ee/cd1f/attachment/ModbusPal.jarz寄存器地
- mica-mqtt client,最好用的 java mqtt 客户端
简介mica-mqtt基于t-io实现的简单、低延迟、高性能的mqtt物联网开源组件。mica-mqttserver更加易于集成到已有服务和二次开发,降低自研物联网平台开发成本。mica-mqttclient是简单、易用的javamqtt客户端,更加容易集成到自己的业务代码中。今天笔者主要要介绍的就是mica-mqttclient的使用。使用mica-mqtt-clientSpringbootst
- ESP32-C3 学习测试 蓝牙 篇(四、GATT Server 示例解析)
矜辰所致
ESP32-C3ESP32ESP32-C3GATT蓝牙BLE
了解了蓝牙GATT相关概念,趁热打铁,分析一下官方示例GATTServer的应用程序架构。目录前言一、GATTServer示例分析1.1初始化1.2回调函数gatts_event_handlergap_event_handler☆gatts_profile_a_event_handler☆GATT事件流程esp_ble_gatts_create_service二、示例测试2.1Service和UU
- mica-mqtt 1.3.0 发布,拆分 client 和 server 的 spring boot starter
一、简介mica-mqtt基于t-io实现的简单、低延迟、高性能的mqtt物联网开源组件。mica-mqtt更加易于集成到已有服务和二次开发,降低自研物联网平台开发成本。二、功能支持MQTTv3.1、v3.1.1以及v5.0协议。支持websocketmqtt子协议(支持mqtt.js)。支持httprestapi,httpapi文档详见。支持MQTTclient客户端。支持MQTTserver服
- mica-mqtt 1.2.10 发布,最好用的 java mqtt 客户端
mqttjava
一、简介mica-mqtt基于t-io实现的简单、低延迟、高性能的mqtt物联网开源组件。mica-mqtt更加易于集成到已有服务和二次开发,降低自研物联网平台开发成本。二、功能支持MQTTv3.1、v3.1.1以及v5.0协议。支持websocketmqtt子协议(支持mqtt.js)。支持httprestapi,httpapi文档详见。支持MQTTclient客户端。支持MQTTserver服
- H5使用蓝牙打印机
小雄_Milo
navigator.bluetooth.requestDevice({filters:[{services:['000018f0-0000-1000-8000-00805f9b34fb']}]}).then(device=>{console.log('ConnectingtoGATTServer...');//device.addEventListener('gattserverdisconnec
- mica-mqtt 1.0.3 发布,新增 websocket 支持
一、简介mica-mqtt基于t-io实现的简单、低延迟、高性能的mqtt物联网开源组件。使用详见mica-mqttgitee源码mica-mqtt-example模块。二、功能[x]支持MQTTv3.1、v3.1.1以及v5.0协议。[x]支持websocketmqtt子协议(支持mqtt.js)。[x]支持MQTTclient客户端。[x]支持MQTTserver服务端。[x]支持MQTT遗嘱
- mica-mqtt 1.0.2 发布,完善 stater 和 example
一、简介mica-mqtt基于t-io实现的简单、低延迟、高性能的mqtt物联网开源组件。使用详见mica-mqttgitee源码mica-mqtt-example模块。二、功能[x]支持MQTTv3.1、v3.1.1以及v5.0协议。[x]支持MQTTclient客户端。[x]支持MQTTserver服务端。[x]支持MQTT遗嘱消息。[x]支持MQTT保留消息。[x]支持自定义消息(mq)处理
- apache 安装linux windows
墙头上一根草
apacheinuxwindows
linux安装Apache 有两种方式一种是手动安装通过二进制的文件进行安装,另外一种就是通过yum 安装,此中安装方式,需要物理机联网。以下分别介绍两种的安装方式
通过二进制文件安装Apache需要的软件有apr,apr-util,pcre
1,安装 apr 下载地址:htt
- fill_parent、wrap_content和match_parent的区别
Cb123456
match_parentfill_parent
fill_parent、wrap_content和match_parent的区别:
1)fill_parent
设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或控件为fill_parent将强制性让它布满整个屏幕。
2) wrap_conte
- 网页自适应设计
天子之骄
htmlcss响应式设计页面自适应
网页自适应设计
网页对浏览器窗口的自适应支持变得越来越重要了。自适应响应设计更是异常火爆。再加上移动端的崛起,更是如日中天。以前为了适应不同屏幕分布率和浏览器窗口的扩大和缩小,需要设计几套css样式,用js脚本判断窗口大小,选择加载。结构臃肿,加载负担较大。现笔者经过一定时间的学习,有所心得,故分享于此,加强交流,共同进步。同时希望对大家有所
- [sql server] 分组取最大最小常用sql
一炮送你回车库
SQL Server
--分组取最大最小常用sql--测试环境if OBJECT_ID('tb') is not null drop table tb;gocreate table tb( col1 int, col2 int, Fcount int)insert into tbselect 11,20,1 union allselect 11,22,1 union allselect 1
- ImageIO写图片输出到硬盘
3213213333332132
javaimage
package awt;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imagei
- 自己的String动态数组
宝剑锋梅花香
java动态数组数组
数组还是好说,学过一两门编程语言的就知道,需要注意的是数组声明时需要把大小给它定下来,比如声明一个字符串类型的数组:String str[]=new String[10]; 但是问题就来了,每次都是大小确定的数组,我需要数组大小不固定随时变化怎么办呢? 动态数组就这样应运而生,龙哥给我们讲的是自己用代码写动态数组,并非用的ArrayList 看看字符
- pinyin4j工具类
darkranger
.net
pinyin4j工具类Java工具类 2010-04-24 00:47:00 阅读69 评论0 字号:大中小
引入pinyin4j-2.5.0.jar包:
pinyin4j是一个功能强悍的汉语拼音工具包,主要是从汉语获取各种格式和需求的拼音,功能强悍,下面看看如何使用pinyin4j。
本人以前用AscII编码提取工具,效果不理想,现在用pinyin4j简单实现了一个。功能还不是很完美,
- StarUML学习笔记----基本概念
aijuans
UML建模
介绍StarUML的基本概念,这些都是有效运用StarUML?所需要的。包括对模型、视图、图、项目、单元、方法、框架、模型块及其差异以及UML轮廓。
模型、视与图(Model, View and Diagram)
&
- Activiti最终总结
avords
Activiti id 工作流
1、流程定义ID:ProcessDefinitionId,当定义一个流程就会产生。
2、流程实例ID:ProcessInstanceId,当开始一个具体的流程时就会产生,也就是不同的流程实例ID可能有相同的流程定义ID。
3、TaskId,每一个userTask都会有一个Id这个是存在于流程实例上的。
4、TaskDefinitionKey和(ActivityImpl activityId
- 从省市区多重级联想到的,react和jquery的差别
bee1314
jqueryUIreact
在我们的前端项目里经常会用到级联的select,比如省市区这样。通常这种级联大多是动态的。比如先加载了省,点击省加载市,点击市加载区。然后数据通常ajax返回。如果没有数据则说明到了叶子节点。 针对这种场景,如果我们使用jquery来实现,要考虑很多的问题,数据部分,以及大量的dom操作。比如这个页面上显示了某个区,这时候我切换省,要把市重新初始化数据,然后区域的部分要从页面
- Eclipse快捷键大全
bijian1013
javaeclipse快捷键
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)Alt+En
- js 笔记 函数
征客丶
JavaScript
一、函数的使用
1.1、定义函数变量
var vName = funcation(params){
}
1.2、函数的调用
函数变量的调用: vName(params);
函数定义时自发调用:(function(params){})(params);
1.3、函数中变量赋值
var a = 'a';
var ff
- 【Scala四】分析Spark源代码总结的Scala语法二
bit1129
scala
1. Some操作
在下面的代码中,使用了Some操作:if (self.partitioner == Some(partitioner)),那么Some(partitioner)表示什么含义?首先partitioner是方法combineByKey传入的变量,
Some的文档说明:
/** Class `Some[A]` represents existin
- java 匿名内部类
BlueSkator
java匿名内部类
组合优先于继承
Java的匿名类,就是提供了一个快捷方便的手段,令继承关系可以方便地变成组合关系
继承只有一个时候才能用,当你要求子类的实例可以替代父类实例的位置时才可以用继承。
在Java中内部类主要分为成员内部类、局部内部类、匿名内部类、静态内部类。
内部类不是很好理解,但说白了其实也就是一个类中还包含着另外一个类如同一个人是由大脑、肢体、器官等身体结果组成,而内部类相
- 盗版win装在MAC有害发热,苹果的东西不值得买,win应该不用
ljy325
游戏applewindowsXPOS
Mac mini 型号: MC270CH-A RMB:5,688
Apple 对windows的产品支持不好,有以下问题:
1.装完了xp,发现机身很热虽然没有运行任何程序!貌似显卡跑游戏发热一样,按照那样的发热量,那部机子损耗很大,使用寿命受到严重的影响!
2.反观安装了Mac os的展示机,发热量很小,运行了1天温度也没有那么高
&nbs
- 读《研磨设计模式》-代码笔记-生成器模式-Builder
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/**
* 生成器模式的意图在于将一个复杂的构建与其表示相分离,使得同样的构建过程可以创建不同的表示(GoF)
* 个人理解:
* 构建一个复杂的对象,对于创建者(Builder)来说,一是要有数据来源(rawData),二是要返回构
- JIRA与SVN插件安装
chenyu19891124
SVNjira
JIRA安装好后提交代码并要显示在JIRA上,这得需要用SVN的插件才能看见开发人员提交的代码。
1.下载svn与jira插件安装包,解压后在安装包(atlassian-jira-subversion-plugin-0.10.1)
2.解压出来的包里下的lib文件夹下的jar拷贝到(C:\Program Files\Atlassian\JIRA 4.3.4\atlassian-jira\WEB
- 常用数学思想方法
comsci
工作
对于搞工程和技术的朋友来讲,在工作中常常遇到一些实际问题,而采用常规的思维方式无法很好的解决这些问题,那么这个时候我们就需要用数学语言和数学工具,而使用数学工具的前提却是用数学思想的方法来描述问题。。下面转帖几种常用的数学思想方法,仅供学习和参考
函数思想
把某一数学问题用函数表示出来,并且利用函数探究这个问题的一般规律。这是最基本、最常用的数学方法
- pl/sql集合类型
daizj
oracle集合typepl/sql
--集合类型
/*
单行单列的数据,使用标量变量
单行多列数据,使用记录
单列多行数据,使用集合(。。。)
*集合:类似于数组也就是。pl/sql集合类型包括索引表(pl/sql table)、嵌套表(Nested Table)、变长数组(VARRAY)等
*/
/*
--集合方法
&n
- [Ofbiz]ofbiz初用
dinguangx
电商ofbiz
从github下载最新的ofbiz(截止2015-7-13),从源码进行ofbiz的试用
1. 加载测试库
ofbiz内置derby,通过下面的命令初始化测试库
./ant load-demo (与load-seed有一些区别)
2. 启动内置tomcat
./ant start
或
./startofbiz.sh
或
java -jar ofbiz.jar
&
- 结构体中最后一个元素是长度为0的数组
dcj3sjt126com
cgcc
在Linux源代码中,有很多的结构体最后都定义了一个元素个数为0个的数组,如/usr/include/linux/if_pppox.h中有这样一个结构体: struct pppoe_tag { __u16 tag_type; __u16 tag_len; &n
- Linux cp 实现强行覆盖
dcj3sjt126com
linux
发现在Fedora 10 /ubutun 里面用cp -fr src dest,即使加了-f也是不能强行覆盖的,这时怎么回事的呢?一两个文件还好说,就输几个yes吧,但是要是n多文件怎么办,那还不输死人呢?下面提供三种解决办法。 方法一
我们输入alias命令,看看系统给cp起了一个什么别名。
[root@localhost ~]# aliasalias cp=’cp -i’a
- Memcached(一)、HelloWorld
frank1234
memcached
一、简介
高性能的架构离不开缓存,分布式缓存中的佼佼者当属memcached,它通过客户端将不同的key hash到不同的memcached服务器中,而获取的时候也到相同的服务器中获取,由于不需要做集群同步,也就省去了集群间同步的开销和延迟,所以它相对于ehcache等缓存来说能更好的支持分布式应用,具有更强的横向伸缩能力。
二、客户端
选择一个memcached客户端,我这里用的是memc
- Search in Rotated Sorted Array II
hcx2013
search
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given ta
- Spring4新特性——更好的Java泛型操作API
jinnianshilongnian
spring4generic type
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- CentOS安装JDK
liuxingguome
centos
1、行卸载原来的:
[root@localhost opt]# rpm -qa | grep java
tzdata-java-2014g-1.el6.noarch
java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5.x86_64
java-1.6.0-openjdk-1.6.0.0-11.1.13.4.el6.x86_64
[root@localhost
- 二分搜索专题2-在有序二维数组中搜索一个元素
OpenMind
二维数组算法二分搜索
1,设二维数组p的每行每列都按照下标递增的顺序递增。
用数学语言描述如下:p满足
(1),对任意的x1,x2,y,如果x1<x2,则p(x1,y)<p(x2,y);
(2),对任意的x,y1,y2, 如果y1<y2,则p(x,y1)<p(x,y2);
2,问题:
给定满足1的数组p和一个整数k,求是否存在x0,y0使得p(x0,y0)=k?
3,算法分析:
(
- java 随机数 Math与Random
SaraWon
javaMathRandom
今天需要在程序中产生随机数,知道有两种方法可以使用,但是使用Math和Random的区别还不是特别清楚,看到一篇文章是关于的,觉得写的还挺不错的,原文地址是
http://www.oschina.net/question/157182_45274?sort=default&p=1#answers
产生1到10之间的随机数的两种实现方式:
//Math
Math.roun
- oracle创建表空间
tugn
oracle
create temporary tablespace TXSJ_TEMP
tempfile 'E:\Oracle\oradata\TXSJ_TEMP.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent m
- 使用Java8实现自己的个性化搜索引擎
yangshangchuan
javasuperword搜索引擎java8全文检索
需要对249本软件著作实现句子级别全文检索,这些著作均为PDF文件,不使用现有的框架如lucene,自己实现的方法如下:
1、从PDF文件中提取文本,这里的重点是如何最大可能地还原文本。提取之后的文本,一个句子一行保存为文本文件。
2、将所有文本文件合并为一个单一的文本文件,这样,每一个句子就有一个唯一行号。
3、对每一行文本进行分词,建立倒排表,倒排表的格式为:词=包含该词的总行数N=行号