12 2019 档案

摘要:一、帮助命令 1、查看版本信息 docker version 2、查看详细信息 docker info 3、帮助命令 docker --help 二、镜像命令 1.docker images 列出本地主机上的镜像 参数说明 -a 列出本地所有的镜像 -q 只显示镜像的ID --digests 显示镜 阅读全文
posted @ 2019-12-25 23:30 红尘年少 阅读(461) 评论(0) 推荐(0) 编辑
摘要:一、官方安装手册 https://docs.docker.com/install/linux/docker-ce/centos/ 二、确定你是CentOS7及以上版本 cat /etc/redhat-release 三、yum安装gcc相关 yum -y install gcc yum -y ins 阅读全文
posted @ 2019-12-25 14:07 红尘年少 阅读(833) 评论(0) 推荐(0) 编辑
摘要:问题:出现UserRePository注入创建失败,一定先检查所有的@注解是否已经标记 问题发现:entity下的实体类上面没有加注解 任何基于hibernate的实体类一定要加上@Entity注解! 阅读全文
posted @ 2019-12-22 10:50 红尘年少 阅读(13276) 评论(0) 推荐(0) 编辑
摘要:一、注册gitee并在本地安装 gitee官网 https://gitee.com/ git下载地址 阿里镜像 https://npm.taobao.org/mirrors/git-for-windows/ 二、IDEA设置 1.导入git本地安装路径 2.安装gitee 登录gitee 3.将本地 阅读全文
posted @ 2019-12-21 23:32 红尘年少 阅读(6197) 评论(0) 推荐(2) 编辑
摘要:具体代码地址 https://gitee.com/chuzhuyong/HandleSafer 自定义用户认证 通过自定义WebSecurityConfigurerAdapter类型的Bean组件,并重写configure(Authentication ManagerBuilder auth)方法, 阅读全文
posted @ 2019-12-21 14:11 红尘年少 阅读(4513) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-19 23:28 红尘年少 阅读(1022) 评论(0) 推荐(0) 编辑
摘要:在最小化安装的CentOS7中,ifconfig是不能使用的,查看网卡信息的命令是ip addr 其中“ens33”为网卡名称,修改IP地址等信息 vi /etc/sysconfig/network-scripts/ifcfg-ens33 修改好后保存退出,并重启网络,测试网络是否连接正常: 安装i 阅读全文
posted @ 2019-12-19 22:22 红尘年少 阅读(759) 评论(0) 推荐(0) 编辑
摘要:本教程安装的版本号如下 下载地址 链接:https://pan.baidu.com/s/1yMFQ-any_lmXvOJWBi1MIw 提取码:oher 复制这段内容后打开百度网盘手机App,操作更方便哦 其他版本可以到官网上进行对应的下载 https://www.rabbitmq.com/ ※※特 阅读全文
posted @ 2019-12-19 21:49 红尘年少 阅读(3111) 评论(0) 推荐(0) 编辑
摘要:本篇随笔基于https://www.cnblogs.com/my-program-life/p/12067789.html实现 自定义RedisTemplate 一、创建自定义配置类RedisConfig package com.uos.cache.config; import com.faster 阅读全文
posted @ 2019-12-19 17:33 红尘年少 阅读(686) 评论(0) 推荐(0) 编辑
摘要:本篇随笔基于https://www.cnblogs.com/my-program-life/p/12067656.html 实现 一、使用Redis API进行业务数据缓存管理 在service下新建ApiCommentService,删除原有的CommentService package com. 阅读全文
posted @ 2019-12-19 16:35 红尘年少 阅读(706) 评论(0) 推荐(0) 编辑
摘要:一、添加Spring Data Redis依赖启动器 <!--Spring Data Redis 依赖启动器--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-dat 阅读全文
posted @ 2019-12-19 14:36 红尘年少 阅读(3256) 评论(0) 推荐(0) 编辑
摘要:项目结构 一、准备数据 创建数据库并创建表 二、在domain下新建City类 package com.uos.springboot.domain; import java.io.Serializable; /** * 城市实体类 */ public class City implements Se 阅读全文
posted @ 2019-12-17 11:31 红尘年少 阅读(1116) 评论(0) 推荐(0) 编辑
摘要:发送纯文本邮件 一、在pom.xml中添加邮件服务的依赖启动器 <!--邮件服务依赖启动器--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifa 阅读全文
posted @ 2019-12-16 11:18 红尘年少 阅读(675) 评论(0) 推荐(1) 编辑
摘要:一、添加ScheduledTaskService服务类 package com.uos.schedule.service; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.s 阅读全文
posted @ 2019-12-16 09:43 红尘年少 阅读(1419) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/my-program-life/p/12047396.html Spring Boot任务管理之无返回值异步任务调用 一、在OwnAsynService基础上添加 package com.uos.schedule.service; import org 阅读全文
posted @ 2019-12-16 09:28 红尘年少 阅读(586) 评论(1) 推荐(0) 编辑
摘要:一、service层 package com.uos.schedule.service; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; /* 阅读全文
posted @ 2019-12-16 09:16 红尘年少 阅读(508) 评论(0) 推荐(0) 编辑
摘要:项目结构 一、创建Spring Boot项目,引入Thymeleaf依赖 二、编写配置文件application.properties # thymeleaf页面缓存设置(默认为true),开发中方便调试应设置为false,上线稳定后应保持默认true spring.thymeleaf.cache= 阅读全文
posted @ 2019-12-15 10:31 红尘年少 阅读(629) 评论(0) 推荐(0) 编辑
摘要:项目结构 一、添加Spring Data JPA依赖启动器 另外,添加MySQL数据库依赖 <!--spring data jpa依赖启动器--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring- 阅读全文
posted @ 2019-12-13 11:13 红尘年少 阅读(298) 评论(2) 推荐(0) 编辑
摘要:一、maven下载 地址 http://maven.apache.org/download.cgi 下载后解压到相应的路径 二、环境变量配置 此电脑→属性→高级系统设置→环境变量→系统变量→新建 MAVEN_HOME 在Path环境变量下添加%MAVEN_HOME%\bin 查看maven的版本,到 阅读全文
posted @ 2019-12-12 21:44 红尘年少 阅读(32394) 评论(0) 推荐(1) 编辑
摘要:项目结构 一、添加Redis依赖 <!--redis依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <vers 阅读全文
posted @ 2019-12-12 16:52 红尘年少 阅读(278) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-12-12 14:15 红尘年少 阅读(706) 评论(0) 推荐(0) 编辑
摘要:一、数据准备 创建数据库 CREATE DATABASE springbootdata DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 创建表t_article并插入相关数据 CREATE TABLE `t_article` ( `id` in 阅读全文
posted @ 2019-12-12 13:16 红尘年少 阅读(844) 评论(5) 推荐(0) 编辑
摘要:地址 https://sourceforge.net/projects/zabbix/files/ wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.4.3/zabbix-4.4.3.tar.g 阅读全文
posted @ 2019-12-11 11:25 红尘年少 阅读(751) 评论(0) 推荐(0) 编辑
摘要:<dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.4.1</version> </dependency> <dependency> <groupId>org.webjars</ 阅读全文
posted @ 2019-12-10 21:29 红尘年少 阅读(6456) 评论(0) 推荐(2) 编辑
摘要:1.清空缓存 左上角点击“File” >“Invalidate Caches / Restart” 弹出对话框,点击“Invalidate”。 2、左上角点击“File” >Project Structure 阅读全文
posted @ 2019-12-10 21:12 红尘年少 阅读(11625) 评论(0) 推荐(1) 编辑
摘要:点击NAT设置,上述网络的配置参照NAT设置的参数 阅读全文
posted @ 2019-12-10 20:32 红尘年少 阅读(179) 评论(0) 推荐(0) 编辑
摘要:前端开发常用的依赖 webjars官网地址 https://www.webjars.org/ 后端开发常用的依赖 maven仓库地址 https://mvnrepository.com/ 阅读全文
posted @ 2019-12-10 17:29 红尘年少 阅读(338) 评论(0) 推荐(0) 编辑
摘要:1、在创建数据库的时候,我们经常会使用CREATE DATABASE 数据库名称;简单的创建数据库, 没有指定其编码的格式,往往会造成错误。 CREATE DATABASE 数据库名称 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 2、在创建 阅读全文
posted @ 2019-12-10 15:32 红尘年少 阅读(1987) 评论(0) 推荐(0) 编辑
摘要:yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel java-1.8.0-openjdk-headless maven下载地址https://maven.apache.org/download.cgi 启动Tomcat 将项目部署到T 阅读全文
posted @ 2019-12-09 23:54 红尘年少 阅读(307) 评论(0) 推荐(0) 编辑
摘要:设置允许外网访问 保护模式关闭 启动redis服务 设置密码访问 阅读全文
posted @ 2019-12-09 22:30 红尘年少 阅读(113) 评论(0) 推荐(0) 编辑
摘要:设置密码 测试密码登录 使用Navicat连接MariaDB 无法连接的原因,可以从以下两个方面思考: 1.防火墙是否关闭 2.是否授予最大权限 查看防火墙状态 关闭防火墙 给数据库设置远程访问权限 阅读全文
posted @ 2019-12-09 21:34 红尘年少 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-09 20:45 红尘年少 阅读(142) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示