- 博客(13)
- 收藏
- 关注
原创 redis
Redis概述Redis是什么Redis(Remote Dictionary Server) 远程字典服务!window 下安装下载地址 https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100开启Redis加载配置文件启动加载到windows服务列表: redis-server --service-install redis.windows.conf --loglevel verbose启动服务:
2021-11-29 16:48:19
194
原创 ElasticSearch
ElasticSearch 7.8.0安装包https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-8-0索引创建索引相当于创建数据库发送put请求给http://127.0.0.1:9200/+名称查询索引查询指定索引发送get请求给http://127.0.0.1:9200/+名称查询全部索引发送get请求给http://127.0.0.1:9200/_cat/indices?v删除索引发送delete
2021-11-10 17:46:37
160
原创 log4j2
引入依赖<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.13.3</version></dependency><dependency> <groupId>org.apache.logging.l
2021-11-10 11:08:31
117
原创 swagger
引入依赖Swagger2<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version></dependency>Swagger Ui<dependency> <groupId>
2021-11-10 08:18:13
767
原创 ElasticSearch
ElasticSearch 7.8.0安装包https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-8-0索引创建索引相当于创建数据库发送put请求给http://127.0.0.1:9200/+名称查询索引查询指定索引发送get请求给http://127.0.0.1:9200/+名称查询全部索引发送get请求给http://127.0.0.1:9200/_cat/indices?v删除索引发送delete
2021-11-09 13:45:59
1508
原创 mybatis-plus
Mybatis-plus官方文档地址:https://baomidou.com/依赖<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <depend
2021-11-09 13:44:53
144
原创 mysql安装
my.ini[mysqld]# 设置3306端口port=3306# 设置mysql的安装目录basedir=D:\app\mysql-8.0.26-winx64 # 切记此处一定要用双斜杠\\,单斜杠我这里会出错,不过看别人的教程,有的是单斜杠。自己尝试吧# 设置mysql数据库的数据的存放目录datadir=D:\app\mysql-8.0.26-winx64\data # 此处同上# 允许最大连接数max_connections=200# 允许连接失败的次数。这是为了防止有
2021-11-09 10:25:28
68
原创 上传文件下载上传
上传后端代码package com.example.demo.controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import org.springframework.web.bind.
2021-11-09 10:24:57
92
原创 Thymeleaf使用
Thymeleaf使用一、前言模板页面中的html上需要声明Thymeleaf的命名空间:<html xmlns:th="http://www.thymeleaf.org">后端依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymelea
2021-11-09 10:24:18
164
原创 jquery ui 自动补全实现
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>jQuery UI 自动完成(Autocomplete) - 自定义数据并显示</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
2021-11-09 10:23:52
191
原创 MyBaties+SpringBoot
基础配置MyBatis所需的配置文件 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.1.1</version> </dependenc
2021-11-09 10:23:08
659
原创 SpringBoot统一异常处理
SpringBoot 统一异常处理1、实现方法通过@ControllerAdvice和@ExceptionHandler实现处理controller层的异常@ControllerAdvice,是Spring3.2提供的新注解,它是一个Controller增强器,可对controller中被 @RequestMapping注解的方法加一些逻辑处理。最常用的就是异常处理@ControllerAdvice@ResponseBody //表示返回的对象,Spring会自动把该对象进行json转化,最后写
2021-11-09 10:22:18
450
原创 SpringSecurity
SpringSecurity一、引入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> <version>2.2.0.RELEASE</version></dependency>二、后端代码(1)、配置类编写1、配
2021-09-16 00:02:58
325
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人