上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 114 下一页
摘要: 1.线程同步 1.1 存在线程安全问题的代码 1 package com.example.concurrency; 2 3 import java.util.Arrays; 4 5 public class demo09 { 6 7 private static int index = 0; 8 9 阅读全文
posted @ 2021-02-04 16:13 Sempron2800+ 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目并测试连接 1.1 新建一个spring boot的项目,在pom.xml文件中添加如下引用: 1 <dependencies> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spri 阅读全文
posted @ 2021-02-03 20:45 Sempron2800+ 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 需要先安装ElasticSearch、Kibana以及IK分词器。 1、使用docker-compose安装ElasticSearch和Kibana: 编写docker-compose.yml文件: version: '3.1' #v1.24.1 对应 v3.1 services: #在本文件中,不 阅读全文
posted @ 2021-02-03 15:48 Sempron2800+ 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch是一个分布式、RESTful风格的搜索和数据分析引擎,能够解决不断涌现出的各种用例。 ElasticSearch的底层是开源库 Lucene。ElasticSearch是Lucene的封装,提供了 REST API 的操作接口,开箱即用。 1.ES的结构 1.1 Index 阅读全文
posted @ 2021-02-03 12:45 Sempron2800+ 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.Jedis连接Redis 1.1 在pom.xml文件中,引入maven依赖 1 <dependencies> 2 <!--1、Jedis依赖包--> 3 <!-- https://mvnrepository.com/artifact/redis.clients/jedis --> 4 <dep 阅读全文
posted @ 2021-02-02 17:17 Sempron2800+ 阅读(79) 评论(0) 推荐(0) 编辑
摘要: redis的安装,在ubuntu系统中,可以使用如下命令安装redis sudo apt-get install redis-server 安装完毕后,会自动启动redis的服务端。使用ps命令可以查看redis服务运行情况 ps -aux|grep redis 设置redis客户端从远程访问,并设 阅读全文
posted @ 2021-02-02 16:29 Sempron2800+ 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1.Lambda表达式 Lambda表达式时特殊的匿名内部类,语法更简洁。它允许把函数作为一个方法的参数(函数作为方法参数传递),将代码像数据一样传递。 1 package com.example.jdk8; 2 3 import java.util.Comparator; 4 import jav 阅读全文
posted @ 2021-02-01 16:11 Sempron2800+ 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Edinburgh Buses This database consists of two tables: stops and routes stops This is a list of areas served by buses. The detail does not really inclu 阅读全文
posted @ 2021-01-31 12:48 Sempron2800+ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: teacher iddeptnamephonemobile 101 1 Shrivell 2753 07986 555 1234 102 1 Throd 2754 07122 555 1920 103 1 Splint 2293 104 Spiregrain 3287 105 2 Cutflower 阅读全文
posted @ 2021-01-31 11:47 Sempron2800+ 阅读(63) 评论(0) 推荐(0) 编辑
摘要: This tutorial introduces the notion of a join. The database consists of three tables movie , actor and casting . movie id title yr director budget gro 阅读全文
posted @ 2021-01-31 11:22 Sempron2800+ 阅读(57) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 114 下一页