- 博客(16)
- 收藏
- 关注
原创 Redis
一、什么是redis redis即远程字典服务,C语言编写、支持网络、可基于内存亦可持久化的日志型、“Key-Value”数据库,并提供多种语言的API;redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件。 优点 Redis有哪些特点? 1、速度快 2、持久化 3、支持多种数据结构 4、支持多种编程语言 5、功能丰富、主从复制 6、高可用及分布式 二、数据类型 常用数据类型:String、List、set、Hash、Zset 特殊数据类型:Geospatail(
2021-05-05 23:52:41
183
原创 四种线程安全的hashMap
hash表 1.介绍 哈希表就是一种以 键-值(key-indexed) 存储数据的结构,我们只要输入待查找的值即key,即可查找到其对应的值。 哈希的思路很简单,如果所有的键都是整数,那么就可以使用一个简单的无序数组来实现:将键作为索引,值即为其对应的值,这样就可以快速访问任意键的值。这是对于简单的键的情况,我们将其扩展到可以处理更加复杂的类型的键。 2.链式哈希表 链式哈希表从根本上说是由一组链表构成。每个链表都可以看做是一个“桶”,我们将所有的元素通过散列的方式放到具体的不同的桶中。插入元素
2021-04-24 12:33:35
6902
原创 IDEA 出现 updating indice
一直在建索引,卡的要命 1.删除索引缓存 2.C盘》用户》.IntelliJIdea2019.1\system 删除caches文件 3.再手动重启idea 4.如果还卡住不能,请忽略某些文件建立索引 我这里是node.js生成的node_modules引起的 ...
2019-06-21 18:21:13
1482
原创 window下启动redis
切到redis目录下: 执行命令redis-server.exeredis.windows.conf 如果出现 creating server tcp listening socket 127.0.0.1:6379: bind No error 的解决方案如下按顺序输入如下命令就可以连接成功 1.redis-cli.exe 2.shutdown 3.exit 4. redi...
2019-06-04 11:26:26
215
原创 解决mysql时区问题
show VARIABLES LIKE "%time_zone%"; set GLOBAL time_zone='-8:00'; set time_zone = '+8:00'; ##修改当前会话时区 flush privileges;
2019-05-23 11:18:22
400
原创 git
1、下载、安装git(https://git-scm.com/downloads) 2、创建本地库 3、右击、选中git bash here 3.创建工作区 git stutas 查看状态 有无提交文件 git add 提交到暂存区 git commit -m "-----------" 提交注释 提交到创库 git rm 文件名 ...
2019-05-11 20:49:05
185
原创 IDEA下载Git中项目
一、 打开idea,点击File》Settings,搜索git(安装系统默认设置即可)二、 选择git三、 Git中项目的路径粘贴到IDEA的URL下。(复制框地址)四、粘上三中复制地址到红色款(因我们的git只可本地访问,地址需改)五、右下角跳出对话框,单击红色框内。等待项目下载即可...
2018-05-03 18:42:25
36206
原创 springboot jdbc整合
1.创建项目2.pom.xml中编写坐标文件<dependencies> <!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <dependency> <groupId>com.alibaba</groupId> ...
2018-05-02 17:17:13
397
原创 springboot简单拦截器和页面注册
1.编写页面放入项目生成的templates文件中2.编写登陆页面后台controller代码@Controller @SessionAttributes("loginUser")//方便拦截器中使用 public class EmployeeController { @PostMapping(value = {"/login"}) public String login(Map&l...
2018-04-27 12:00:08
1427
原创 springboot中Thymeleaf使用
一、pom.xml配置<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.0.1.RELEASE</versi...
2018-04-26 09:54:11
262
原创 SpringBoot配置文件
一、配置文件简介及加载优先级1.SpringBoot使用一个全局的配置文件,配置文件名是固定的; • application.properties • application.ym2.YML文件的语法//具体写法如下person: lastName: 张三 age: 24 boss: false birth: 1994/5/1# maps: {k1: v1,k2: v2} maps: ...
2018-04-24 12:25:19
233
原创 图书管理系统curd配置环境及controller层编写
1.编写pom.xml<dependencies> <!-- mybatis分页插件--> <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper --> <dependency> <groupId>com.github.page...
2018-04-16 11:53:03
465
原创 SSM中 图片上传和本页面显示
1.jsp编写<img id="img" src="" style="height: 50px; width:50px"><!-- 显示图片的 --> <input name="fileImage" type="file" onchange="uploadImage();"> <
2018-04-13 11:55:43
3253
原创 SSM整合框架搭建(Spring、SpringMVC、mybatiys整合)
1. 导入jar(pom.xml)<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
2018-04-11 20:17:39
364
原创 案例: 场景:比如 在项目中显示所有项目/某用户的所有项目Controller中 ulr对应的名字是一致
注:在springmvc入门的基础上进行操作1.springmvc-servlet.xml <!-- 开启扫描 --> <context:component-scan base-package="com.demo.contoller"> <context:include-filter type="annotation" exp...
2018-04-10 21:11:00
192
原创 Springmvc入门
第一步: 导入spring /libs/中的所有jar包 1、坐标地址 <dependencies> <!-- https://mvnrepository.com/artifact/javax.servlet/jstl --> <!-- https://mvnrepository.com/artifact/javax.servlet/jstl...
2018-04-10 20:40:42
133
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅