08 2023 档案

摘要:在spring boot中,可以通过以下两种方式实现统一版本的管理: 1、通过标签<parent> 如: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</arti 阅读全文
posted @ 2023-08-21 16:48 咔咔皮卡丘 阅读(413) 评论(0) 推荐(0) 编辑
摘要:注:会导致spring缓存对象不可用,是类加载器错误导致的 方法1 引入依赖(此方法对于方法、类的新建都能实现热加载,依赖要) crtl+shift-alt+/ 勾上compiler.automake.allow.when.app.running就可以实时热加载,不勾就当build的时候才会加载 < 阅读全文
posted @ 2023-08-21 16:46 咔咔皮卡丘 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1.自增长主键 <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.fenqi.pojo.DidaUser"> insert IGNORE into dida_user (id, real_n 阅读全文
posted @ 2023-08-21 16:07 咔咔皮卡丘 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Spring Social OAuth 一、app、小程序、前后端分离为什么使用OAuth协议 1、原有方法开发繁琐、安全性和客户体验差、有些前端技术不支持cookei,如小程序 2、好处:token自动生成,自定义校验,方便安全 二、Spring Security OAuth简介 1、服务提供商( 阅读全文
posted @ 2023-08-21 11:35 咔咔皮卡丘 阅读(182) 评论(0) 推荐(0) 编辑
摘要:Spring Social 一、OAuth协议: 在不向第三方应用提供账号、密码的情况下,允许其访问资源所有者特定资源所使用的协议,例如微信授权登录。 最常用的有 授权码模式、密码模式 二、Spring Social基本原理: 1、SocialAuthenticationFilter将其拦截下来,并 阅读全文
posted @ 2023-08-18 17:27 咔咔皮卡丘 阅读(134) 评论(0) 推荐(0) 编辑
摘要:Spring Security 一、默认配置 1、默认会对所有请求都需要进行认证与授权; 2、默认使用httpBasic方式进行登录 3、默认的用户名为user,密码在启动应用时在console中有打印 4、自定义配置: package com.imooc.security.browser; imp 阅读全文
posted @ 2023-08-18 10:56 咔咔皮卡丘 阅读(85) 评论(0) 推荐(0) 编辑
摘要:RESTful 一、JsonPath 1、github:https://github.com/json-path/JsonPath 二、@JsonView使用步骤(用于解决同一个对象在不同的接口返回的字段不同的场景) 1、使用接口来声明多个视图2、在值对象的get方法上指定视图3、在Controll 阅读全文
posted @ 2023-08-18 10:24 咔咔皮卡丘 阅读(209) 评论(0) 推荐(0) 编辑
摘要:一、什么是Spring Cloud 1、功能:配置管理、服务注册、服务发现、断路器、智能路由、负载均衡、服务间调用、微代理、一次性令牌、思维导图模板、全局锁、领导选举、分布式消息、分布式会话、集群状态 2、Spring Cloud 与 Spring Boot 的关系 Spring Boot 是构建 阅读全文
posted @ 2023-08-18 10:20 咔咔皮卡丘 阅读(13) 评论(0) 推荐(0) 编辑
摘要:一、spring boot 初始化工程 1、网址:https://start.spring.io 二、Gradle 安装(绿色版) 1、windows下 -下载:http://downloads.gradle.org/distributions/gradle-3.5-bin.zip -解压: -配置 阅读全文
posted @ 2023-08-18 10:06 咔咔皮卡丘 阅读(64) 评论(0) 推荐(0) 编辑
摘要:一、lunix系统(centos7) 系统:http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso 软件源:http://mirrors.aliyun.com 软件源配置:https://opsx.ali 阅读全文
posted @ 2023-08-18 09:56 咔咔皮卡丘 阅读(273) 评论(0) 推荐(0) 编辑
摘要:1、官网:http://jmeter.apache.org/ 2、下载:http://jmeter.apache.org/download_jmeter.cgi 3、用户手册:http://jmeter.apache.org/usermanual/index.html 补:另外redis-bench 阅读全文
posted @ 2023-08-17 18:09 咔咔皮卡丘 阅读(8) 评论(0) 推荐(0) 编辑
摘要:if (request.getHeader("x-requested-with") != null && request.getHeader("x-requested-with").equalsIgnoreCase("XMLHttpRequest")) { out.print("该请求是 AJAX 阅读全文
posted @ 2023-08-17 18:06 咔咔皮卡丘 阅读(19) 评论(0) 推荐(0) 编辑
摘要:注意:重启或者从睡眠中唤醒虚拟机后,要systemctl restart network 前期准备 下载:http://www.oracle.com/technetwork/cn/server-storage/virtualbox/downloads/index.html 安装:https://bl 阅读全文
posted @ 2023-08-17 17:58 咔咔皮卡丘 阅读(192) 评论(0) 推荐(0) 编辑
摘要:源码 https://gitee.com/learning_demo/sharding-jdbc 1.读写分离(主从)例子分支:readwrite-splitting 2.分库分表例子分支:sharding-databases-tables 1.分库分表+读写分离例子分支:sharding-read 阅读全文
posted @ 2023-08-17 17:11 咔咔皮卡丘 阅读(10) 评论(0) 推荐(0) 编辑
摘要:1、添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> 2、添加配置 官方配置https://doc 阅读全文
posted @ 2023-08-17 16:43 咔咔皮卡丘 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1、配置类 @Configuration public class MQConfig { public static final String QUEUE = "queue"; public static final String TOPIC_QUEUE1 = "topic.queue1"; pub 阅读全文
posted @ 2023-08-17 16:40 咔咔皮卡丘 阅读(19) 评论(0) 推荐(0) 编辑
摘要:参考文献 版本对照表 https://www.rabbitmq.com/which-erlang.html 安装过程中遇到问题相关博客 http://blog.csdn.net/qq315737546/article/details/53105418 http://blog.csdn.net/lee 阅读全文
posted @ 2023-08-17 16:34 咔咔皮卡丘 阅读(541) 评论(0) 推荐(0) 编辑
摘要:1.实例化 package com.imooc.miaosha.redis; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Be 阅读全文
posted @ 2023-08-17 16:11 咔咔皮卡丘 阅读(68) 评论(0) 推荐(0) 编辑
摘要:配置 #redis配置 redis: cluster: nodes: - 127.0.0.1:9000 - 127.0.0.1:9001 - 127.0.0.1:9002 - 127.0.0.1:9003 - 127.0.0.1:9004 - 127.0.0.1:9005 timeout: 6000 阅读全文
posted @ 2023-08-17 16:08 咔咔皮卡丘 阅读(72) 评论(0) 推荐(0) 编辑
摘要:第一步:安装一个redis,要能正常跑起来(其实只是为了证明你会安安装而已) 第二步:几个节点就创建几个目录(要求最少3个master,如果想有一个从节点的话,那就最少6个节点),然后将redis 目录下的redis-server 及 redis.windows.conf copy到这些目录并修改配 阅读全文
posted @ 2023-08-17 16:07 咔咔皮卡丘 阅读(55) 评论(0) 推荐(0) 编辑
摘要:一、依赖 <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.3.0</version> </dependency> 二、一个类(实现job接口的类),三个实例 阅读全文
posted @ 2023-08-17 15:38 咔咔皮卡丘 阅读(43) 评论(0) 推荐(0) 编辑
摘要:1.@Value方式 https://blog.csdn.net/zhayuyao/article/details/78553417 private static String CCBIPADDRESS; @Value("${ccb.ip.address}") public void setCCBI 阅读全文
posted @ 2023-08-17 15:37 咔咔皮卡丘 阅读(1105) 评论(0) 推荐(0) 编辑
摘要:1、引入httpclient <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.2</version> </dependency> 2、 阅读全文
posted @ 2023-08-17 15:33 咔咔皮卡丘 阅读(51) 评论(0) 推荐(0) 编辑
摘要:结语 学习没有捷径,一步一个脚印! 阅读全文
posted @ 2023-08-17 15:29 咔咔皮卡丘 阅读(12) 评论(0) 推荐(0) 编辑
摘要:该特性是保证事务是否开启,业务逻辑是否使用同一个事务的保证。当事务在传播过程中会受其影响。其传播特性包括: 1、Propagation.REQUIRED 方法被调用时自动开启事务,在事务范围内使用则使用同一个事务,否则开启新事务。常用!!! 2、Propagation.REQUIRES_NEW 无论 阅读全文
posted @ 2023-08-17 15:26 咔咔皮卡丘 阅读(5) 评论(0) 推荐(0) 编辑
摘要:参考文献 https://www.cnblogs.com/fashflying/p/6908028.html 如有侵权,请联系删除 一、配置: 1.依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri 阅读全文
posted @ 2023-08-17 15:10 咔咔皮卡丘 阅读(99) 评论(0) 推荐(0) 编辑
摘要:结语 学习没有捷径,一步一个脚印! 阅读全文
posted @ 2023-08-17 10:10 咔咔皮卡丘 阅读(7) 评论(0) 推荐(0) 编辑
摘要:正文 1、常用命令 - 还原到指定提交后的版本:git reset --hard 日志版本号 (-soft 软还原,本地的代码还是最新的,通常用于合并小的提交) - 还原后强制提交:git push origin master -f - 还原错误的commit: git reset --soft H 阅读全文
posted @ 2023-08-16 17:47 咔咔皮卡丘 阅读(9) 评论(0) 推荐(0) 编辑
摘要:protected void responseExcel(HSSFWorkbook workbook) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream(); try { workbook.write( 阅读全文
posted @ 2023-08-16 17:42 咔咔皮卡丘 阅读(25) 评论(0) 推荐(0) 编辑
摘要:创建多级目录(-p): hadoop fs -mkdir -p /test/a/b 展示目录: hadoop fs -ls / 递归展示: hadoop fs -ls -R / 从HDFS上下载文件到本地: hadoop fs -get /test/a/b/h.txt hadoop fs -copy 阅读全文
posted @ 2023-08-16 17:36 咔咔皮卡丘 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1.Hadoop "Cannot create directory .Name node is in safe mode."解决方案 hadoop dfsadmin -safemode leave 2.本地eclipse连接外网Hadoop 通过查询发现,外网中的hadoop如果想要被外网访问,需要 阅读全文
posted @ 2023-08-16 17:28 咔咔皮卡丘 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Hadoop生态系统 资源调试系统YARN HDFS写入数据流程图 HDFS原理漫画 结语 学习没有捷径,一步一个脚印! 阅读全文
posted @ 2023-08-16 17:22 咔咔皮卡丘 阅读(4) 评论(0) 推荐(0) 编辑
摘要:注:${project.basedir}是maven内置变量,指向pom.xml文件所在位置 1、SpringBoot项目 这个的作用与上面<configuration>标签的配置效果相同 2、ssm,打包为war包的工程 依赖注入与springboot相同,打包配置如下: <plugin> <gr 阅读全文
posted @ 2023-08-16 17:05 咔咔皮卡丘 阅读(63) 评论(0) 推荐(0) 编辑
摘要:结语 学习没有捷径,一步一个脚印! 阅读全文
posted @ 2023-08-16 16:54 咔咔皮卡丘 阅读(10) 评论(0) 推荐(0) 编辑
摘要:参考文献 https://blog.csdn.net/u011277123/article/details/53404269 如有侵权,请联系删除 前言 在做项目过程中,可能会遇到客户想要做统一认证,但又没有过多的预算。在这种情况下,只能提取统一认证中的精华部门,实现一个简易的单点登录。本文主要介绍 阅读全文
posted @ 2023-08-16 16:33 咔咔皮卡丘 阅读(57) 评论(0) 推荐(0) 编辑
摘要:-- 查询image重复记录 db.getCollection('image').aggregate([ { $group: { _id : {imageId: '$imageId',time:'$time'}, count: { $sum : 1 } } }, { $match: { count: 阅读全文
posted @ 2023-08-16 14:48 咔咔皮卡丘 阅读(273) 评论(0) 推荐(0) 编辑
摘要:前言 在很多人看来,计算机软件开发主要就是开发人员的工作,只要把想法告诉他们,他们就能把软件开发出来,这种情况是存在的,要不这个软件非常简单,要不有这样能力的开发人员综合能力是非常强的,但这种认知也是片面的,开发一个计算机软件不单单只是开发人员的工作,有时候开发人员工作所占用的资源、时间甚至只是整个 阅读全文
posted @ 2023-08-15 17:08 咔咔皮卡丘 阅读(43) 评论(0) 推荐(0) 编辑
摘要:参考文章,如有侵权,请告知删除 https://blog.csdn.net/shifangwannian/article/details/48713767 1.导出jar包 1.1 idea导出jar包不如eclipse方便,但是熟练了也很容易操作 1.2 File -> Project Setti 阅读全文
posted @ 2023-08-15 16:35 咔咔皮卡丘 阅读(131) 评论(0) 推荐(0) 编辑
摘要:参考以下文章并加上自己的自定义,如有侵权,请联系删除 https://blog.csdn.net/u014044812/article/details/76577479/ https://www.oschina.net/question/3949193_2285415 一、类注释: /** * * 阅读全文
posted @ 2023-08-15 15:32 咔咔皮卡丘 阅读(57) 评论(0) 推荐(0) 编辑
摘要:参考文章,如有侵权,请联系删除 https://www.cnblogs.com/yuansc/p/9088212.html 前言 我们都知道可以使用SpringBoot快速的开发基于Spring框架的项目。由于围绕SpringBoot存在很多开箱即用的Starter依赖,使得我们在开发业务代码时能够 阅读全文
posted @ 2023-08-13 20:37 咔咔皮卡丘 阅读(66) 评论(0) 推荐(0) 编辑
摘要:一、注册中心(使用eureka) 1.依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> </depende 阅读全文
posted @ 2023-08-13 14:49 咔咔皮卡丘 阅读(24) 评论(0) 推荐(0) 编辑
摘要:前言 在使用SpringCloud的feign组件过程中, 我们想传递一个文件到服务提供者. 但是我们只有byte[], 这是就需要手动创建MultipartFile 实现接口MultipartFile import java.io.ByteArrayInputStream; import java 阅读全文
posted @ 2023-08-13 14:40 咔咔皮卡丘 阅读(334) 评论(0) 推荐(0) 编辑
摘要:1.官网下载docker:https://hub.docker.com/editions/community/docker-ce-desktop-windows 2.安装docker:运行下载好的Docker for Windows Installer.exe 3.安装好后启动docker: 4.修 阅读全文
posted @ 2023-08-13 14:33 咔咔皮卡丘 阅读(208) 评论(0) 推荐(0) 编辑
摘要:一、安装 1、linux 安装(老师的方法:) https://blog.csdn.net/jeffleo/article/details/70904368 2、内核升级(CentOS6.X 升级内核 至 3.10) https://blog.csdn.net/jeffleo/article/det 阅读全文
posted @ 2023-08-13 14:25 咔咔皮卡丘 阅读(19) 评论(0) 推荐(0) 编辑
摘要:chfs简介 官网地址:http://iscute.cn/chfsCuteHttpFileServer/chfs是一个免费的、HTTP协议的文件共享服务器,使用浏览器可以快速访问。它具有以下特点: 单个文件,核心功能无需其他文件跨平台运行,支持主流平台:Windows,Linux和Mac界面简洁,简 阅读全文
posted @ 2023-08-13 14:18 咔咔皮卡丘 阅读(502) 评论(0) 推荐(0) 编辑
摘要:资料网站:http://learning.happymmall.com/env.html 一、mybatis三剑客:generator,plugin,pagehelper pagehelper->https://github.com/pagehelper/Mybatis-PageHelper 二、s 阅读全文
posted @ 2023-08-03 16:56 咔咔皮卡丘 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1、restful+SpringMVC+form表单: 1.1 由于form表单只支持method=post或者method=get,对于delete及put,可以 a. 添加过滤器HiddenHttpMethodFilter; b. 在form中添加<input type="hidden" nam 阅读全文
posted @ 2023-08-03 15:56 咔咔皮卡丘 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1、lombok工具 1.1、依赖 groupId:org.projectlombok;artifactId:lombok 1.2、idea 要安装lombok plugin 1.3、作用: 对model类加一个@Data注解就可以省写set and get方法 对类加@Slf4j注解可以直接通过l 阅读全文
posted @ 2023-08-03 15:36 咔咔皮卡丘 阅读(33) 评论(0) 推荐(0) 编辑

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