12 2017 档案
elasticsearch之hello(spring data整合)
摘要:1.书写pom.xml文件 2.applicationContext.xml文件 Demo01.java
阅读全文
elasticsearch之入门hello(java)一
摘要:1.书写pom.xml文件 2.创建一个文档 测试: 创建成功 检索数据(全文) 检索数据(字段检索) 会对需要查询的词进行分词的 查询结果 检索数据(模糊查询) 不会对需要查询的词条进行重新分词 查询结果:命中的次数为:0 创建索引 删除索引 创建映射 文档的操作
阅读全文
elasticsearch搜索引擎环境的搭建
摘要:elasticsearch 搜索引擎 解决了什么问题:在我们数据量很大时,我们使用模糊查询会使索引列的索引消失,这样使用elasticsearch来提高查询效率。 存在什么问题:有时我们查询的词,elasticsearch服务器并没有给我们进行分词,即我们没有我们想要的数据,虽然数据的匹配度高达80
阅读全文
JAXBException occurred : 1 counts of IllegalAnnotationExceptions.
摘要:@XmlRootElement(name="泛型类型")
阅读全文
使用百度地图实现详细地址自动补全(补全bug''事件只能绑定到一个上的问题')
摘要:function G(id) { return document.getElementById(id); } t解决了同一个页面中调用两次这个百度api方法
阅读全文
form表单数据进行json转换
摘要:在javascript中添加该方法 使用该方法就可以进行转换 var jso = $("#表单名(form的id属性)").serializeJson(); json对象转换String JSON.stringify(lf)
阅读全文
spring整合quartz时间任务调度框架
摘要:spring整合quartz框架 1.创建maven工程 2.导入jar包(pom.xml) 3.创建xml文件 4.创建applicationContext.xml文件 5.编写代码 创建一个service 方法一: 创建helloJob 方法二: 创建一个JobFactory类 修改applic
阅读全文
quartz之hello(java)
摘要:quartz 任务调度框架 简单的说:就是在特定的时间,干指定的事件,然后具体到某个对象去做 quartz初之体验: 1.pom.xml文件(导入jar包) 2. hello 创建一个任务调度 在上面的基础上进行添加触发器和工作对象 创建一个类来实现job方法 使用触发器来调用工作对象 使用上面的会
阅读全文
spring整合activeMq
摘要:1.pom.xml 2.appcationContext.xml文件 3.applicationContext-mq.xml 4.applicationContext-mq-consumer.xml 5.包结构 ConsumerQuery01 ConsumerQuery02 ConsumerTopi
阅读全文
activeMq之hello(java)
摘要:消息队列activeMq, 节省响应时间,解决了第三方响应时间长的问题让其他客户可以继续访问, 安装activeMq 创建一个maven java project 在浏览器中访问路径 http://localhost:8161/ 登录名admin 密码为admin 1.pom.xml文件 生产任务
阅读全文
spring整合redis之hello
摘要:1.pom.xml文件 2.、applicationContext.xml applicationContext-cache.xml 测试类 测试成功
阅读全文
redis之hello
摘要:1.创建一个maven工程 2.进入redis官网 3.找到 redis是一个非关系型的数据库,全名是 not only sql,它的产生不能完全取代关系型数据库,只是关系型数据库的一个补充。 特点:解决高并发,高可用,高可扩展,大数据存储等一系列问题的解决方案。 非关系型数据的分类 Tokyo C
阅读全文
jpa命名规范
摘要:And findByLastnameAndFirstname … where x.lastname = ?1 and x.firstname = ?2 Or findByLastnameOrFirstname … where x.lastname = ?1 or x.firstname = ?2 I
阅读全文
webservice之helloword(web)rs
摘要:spring整合webservice 1.pom.xml文件 2.web.xml文件 applicationContext.xml文件 创建服务接口 创建服务的实现 测试服务 使用webService java rs的测试类进行测试 项目源码下载目录 https://gitee.com/blurwr
阅读全文
webService之helloword(java)rs
摘要:webservice之rs(helloworld) 1.pom.xml文件 2.创建服务接口 3.创建服务实现类 4.发布服务 测试项目的pom.xml文件 测试发布的服务 User类
阅读全文
webService之helloword(web)
摘要:spring 整合webservice pom.xml文件 web.xml文件 applicationContext.xml文件 包结构 UserService接口 UserServiceImp实现类 新建一个maven web project项目 pom.xml文件不变 applicationCo
阅读全文
webService之helloword(java)
摘要:webservice 远程数据交互技术 1.导入jar包(如果是 maven项目导入项目坐标) 2.创建服务 3.测试服务 我们使用maven来做测试服务 pom.xml文件 服务接口 服务实现类 开启服务: 新建项目 和服务器的包结构必须相同 测试项目的 测试接口和服务器的接口必须一致 测试服务
阅读全文
spring之hello(简单环境配置)
摘要:导入java包 配置springmvc.xml文件 配置web.xml文件 加载服务器
阅读全文
log4j
摘要:整合log4j slf4j 核心jar : slf4j-api-1.6.1.jar 。slf4j是日志框架,将其他优秀的日志第三方进行整合。 slf4j 过度的jar log4j 整合导入jar包 log4j 核心包:log4j-1.2.17.jar 过渡jar(整合jar):slf4j-log4j
阅读全文
创建私有maven服务器
摘要:私服的创建 1.下载nexus服务 nexus-2.12.0-01-bundle https://pan.baidu.com/s/1o8OfieI 2.下载maven工具 apache-maven-3.3.9-bin https://pan.baidu.com/s/1o8OfieI 解压nexus压
阅读全文
maven依赖管理
摘要:maven依赖管理 1.依赖范围 (依赖相当于java中的import 是否需要导入别的jar包) 使用控制依赖与三种classpath(编译期,测试时期,运行时期)的关系 complie 在编译,测试,运行时期,a项目在编译期依赖b,并且在测试和运行时期也依赖b项目, (默认值) 会打jar包或者
阅读全文
ssh+注解开发 pom.xml
摘要:1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.o
阅读全文
maven之web工程的搭建
摘要:参考之前jave application的工程创建的步骤,我们只需要修改最后一步 这样就创建了个web maven工程 与java application应用程序的区别,还有别的区别这里不做多的阐述. 1.导入web.xml文件 修改pom.xml文件 简历测试页面: index.jsp 启动tom
阅读全文
Maven之java application _HelloWord
摘要:maven 是一个项目构建的一个工具; 一.环境的配置; 1.下载maven 解压放在一个路径下为了好找我们就将该文件放在 D:\javaNew\apache-maven-3.3.9 2.配置本地仓库 D:\javaNew\apache-maven-3.3.9\conf 目录下的 setting.x
阅读全文