自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(42)
  • 收藏
  • 关注

原创 SpringCloud下关于SWAGGER2的部署,包含JWT+GATEWAY鉴权

最近,我在做一个微服务项目,需要用到Swagger。问题是我需要路由过滤请求,防止他被JWT和网关自定义过滤器给阻挡。

2022-09-09 04:26:14 1076 1

原创 20220626——每日推送信息API总结

I need information of weather forecast ,so I choose AutoNavi API as it is widely used in ChinaApply for KeyJson Entities ClassCode ReferenceFinallyIt is no exaggeration to say that it’s easy to use. There are many other APIs on Google, hope I coul

2022-06-26 18:00:25 848

原创 20220625——Java国际节假日API调用总结

I need information of international holiday for a reminder to greet people ,so I worked hard on searching free API on Google.Here showed what I choose at last.API formatJson Entities ClassCode ReferenceOther url for referenceFinallyIt is no e

2022-06-26 15:21:05 1808

原创 20220626-JAVA高德地图天气API调用总结

I need information of weather forecast ,so I choose AutoNavi API as it is widely used in ChinaApply for KeyAPI formatJson Entities ClassCode ReferenceFinallyIt is no exaggeration to say that it’s easy to use. There are many other APIs in AutoNav

2022-06-26 14:41:14 1663

原创 20220621如何让Linux开机启动运行脚本+jar文件运行输出日志注意事项

Then create a .sh file to make it auto-boot with System starting.Add the bash commandrun below commandchmod +x就是赋予用户文件的执行权限1.Touch a .sh file and add bash command2.add the path name of .sh into /etc/rc.d/rc.local3.reboot~then it works~...

2022-06-21 00:18:43 263

原创 20220620MybatisPlus配置更新+C3P0数据源在SpringBoot中的设置

There are some problems with the project that, MapUnderscoreToCamelCase doesn’t work, so I had to rebuild the connection of datasource and set the configuration at the same time~C3P0See below class to match the name as C3P0 seems to have different namin

2022-06-20 04:03:13 190

原创 20220620瑞吉外卖学习—基础过滤器制作+ThreadLocal处理线程过程数据+MybatisPlus公共字段填充

During the study, here I need to make a note to remmember how to make a filter class to filter the request from the client to make actions.

2022-06-20 03:57:46 444

原创 20220620-Swagger2地址前缀添加+重新定向

WebMvcConfig.ClassFinal url

2022-06-20 03:04:13 565

原创 20220619-Java程序如何在linux后台运行以及临时属性配置

带&的命令行,即使terminal(终端)关闭,或者电脑死机程序依然运行(前提是你把程序递交到服务器上);2>&1的意思:这个意思是把标准错误(2)重定向到标准输出中(1),而标准输出又导入文件output里面,所以结果是标准错误和标准输出都导入文件output里面了。 至于为什么需要将标准错误重定向到标准输出的原因,那就归结为标准错误没有缓冲区,而stdout有。这就会导致 >output 2>output 文件output被两次打开,而stdout和stderr将会竞争覆盖,这肯定不是我门想要的.

2022-06-19 17:42:04 336

原创 20220618Linux服务器安装JDK和Mysql

Install OpenJDKThen, install the JDK or JRE with the following command:Install Specific Version of JavaRun a command that shows all the installed versions on your computer:The image above shows that there are two alternatives to this system. These cho

2022-06-19 02:27:18 198

原创 20220617 Linux简介和安装入门+连接ssh

Windows,MacOs,Linux(少)UNIX, Linux(免费,占有高),Windows Server(占有低)Android(基于Linux), iOSLinux(机顶盒,路由器,交换机)Developed by a 21-year-old boy named Linus Torvalds in 1991.Ubuntu,RedHat,CentOS,openSUSE,Fedora,红旗LinuxWe can visit the below urls to get the ISO.Typical

2022-06-17 19:05:00 137

原创 20220617 瑞吉外卖Day02总结

瑞吉外卖day02

2022-06-17 02:01:04 239

原创 20220616 如何封装File类进行批量文件重复改名

It is no exaggeration to say that Java is one of the best language in the world rather than PHP~.I got some study resources from a Java Wechat group about Tanhua series of ITHEIMA.The content is closed to porn topic to attract students’ interests,yeah,th

2022-06-16 14:26:40 94

原创 20220615 JS入门之数据类型+数组的方法

JS中的数据类型Numeric 数字 //几乎可以任何数字 其实是有界的String 字符串 //用 “”Boolean 布尔型 // true falsenull 空值 // var a =null;undefined 未定义Symbol 符号 (ES6新增)JS 运算和java类似...

2022-06-15 15:21:11 89

原创 20220614 JS基础入门第一天

Java VS Java ScriptJavaScrip名称演变:Mocha → LiveScript → JavaScriptJava Script中有java仅仅是蹭了java的热度ECMAScript:Java Script 标准,不是语言。 有ES6…jQuery:JS的函数库Node.js :JS平台,使用JS在服务器和客户端计算机上运行高级操作和应用程序.Visual Studio Code Atom

2022-06-14 17:12:56 66

原创 20220608 OKHttp学习过程(源码浅读+JSON2POJO+监控实战+机器人部署)

Recetly I would like to buy some MaoTai due to the poor life.Thus, it pushed me to learn about OKhtpp to discover the new land~Maven also remind me that I need to add another dependence to ensure it could run properly.Why Use ItOkHttp is an HTTP client t

2022-06-08 20:10:14 1361

原创 Fix:Please commit your changes or stash them before you merge

第二种方法解释:​ 通过git stash将工作区恢复到上次提交的内容,同时备份本地所做的修改,之后就可以正常git pull了,git pull完成后,执行git stash pop将之前本地做的修改应用到当前工作区。git stash: 备份当前的工作区的内容,从最近的一次提交中读取相关内容,让工作区保证和上次提交的内容一致。同时,将当前的工作区内容保存到Git栈中。git stash pop: 从Git栈中读取最近一次保存的内容,恢复工作区的相关内容。由于可能存在多个Stash的内容,所以用栈

2022-06-08 15:24:12 102

原创 20220606某马就业班内部资料复习Day01—封装+继承+抽象类+Final关键字

类的使用类封装被认为是一个**保护屏障**,对外隐藏具体的实现细节,防止该类的代码和数据被其他类随意访问。封装的原则 使用 private 关键字来修饰成员变量(被private修饰的内容,其他类不能直接使用)。 使用public修饰getter和setter方法。 属性的封装只是封装的一种表现形式,方法、类等都是封装的表现形式。后期经典白学:this关键字作用:this代表所在类的当前对象的引用(地址值);谁(哪个对象)调用成员方法,this就代表谁(那个对象)***见名知意:*

2022-06-07 02:18:30 96

原创 20220605MyBatis-Plus自动代码生成器记录

学完Mybatis-Plus后,最后一个介绍了代码自动生成~留下我的学习记录~编写配置效果展示:[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-4ItvgtGR-1654436267838)(https://s2.loli.net/2022/06/05/6MB7V3dRkzFc4Xg.png)]总结:**开发出这个的人简直是人才!**可以大大提高建表后的工作量,把中心放在业务逻辑上。~~~~~~~......

2022-06-05 21:39:39 90

原创 20220605MyBatis-Plus学习实例模型SQL+实体类+测试类方法+Mapper

实体类加了AUTO,setID的值也不管用了注释掉这个注解,setID比默认全局配置更大数据库配置是自增,设为INPUT,不设置值的话会自动自增所以最后最好的配置1.数据库有自增策略,全局弄为弄为AUTO,实体类设为INPUT。在bootApplication那用***@MapperScan(basePackages = “com.kiseki.model.persistence”)***,故不需要@Mapper注解。但凡输入了一个更大的值,auto_increment就会自动变成那个值再继

2022-06-05 21:30:26 261

原创 20220604Mybatis-Plus尝试记录

最近学的很痛苦,由范型接口,返回值和入参可以根据范型变化。然后又转到了mybatisPlus的Mapper,想自己重写一个类似范型的映射sql,但是能力有限。后面又偷偷了解了下自定义注解开发。给自己挖了很多坑。记录下目前学的一些皮毛。mybatis-plus依赖坐标:We can see from the above that mybatis-plus already packaged with mybatis & mybatis-spring ,should be careful that don’t

2022-06-04 20:10:52 211

原创 20220601使用Blender和剪影制作肯德基KFC六一儿童节玩具网红可达鸭过程记录与教程

These days I am thinking about the git for my girlfriend on Children’s Day. KFC’s Pokemon PsyDuck Toy is really hot and it’s really hard to buy even you increase your budget.I don’t like buying a duplicate fake toy for her at such stupid high price and w

2022-06-01 17:21:17 275

原创 20220531-在新mac上安装OpenJDK+Mysql及设置密码+Sequel Pro总结回顾

BackgroudI am helping my colleague to install JRE ,mysql and on her laptop and it’s a review to look back what I learned last month.Install MySQLhttps://downloads.mysql.com/archives/community/choose a suitable version for your laptop.Another way to

2022-05-31 03:58:41 141

原创 20220531之Redis基础汇总

Backgroud:I’ve learned redis since last Friday, it’s worthy to have a summary for the process.Redis’ Web:redis.ioInstallation on Linux&Config Setting:在Linux上安装redis和配置Installation on new Mac by using brew:在MacOS上安装redisCommand Guides:

2022-05-31 02:25:56 81

原创 20220530之JAVA第三方工具包hutool集成了手机号邮箱校验+验证码+超多实用工具类

Background:I am learning about the application of Redis. While a new user signup in App,he(or she) should fill the phone number to receive CAPTCHA to verify identification. Thus, we need some utils help ourselves to save time. Here I found 2 package of d

2022-05-30 20:00:58 12090

原创 20220530Java在Redis里用FastJson存取封装对象Object

BackgroundIf I save the content as String type into Redis, the matter is that how I can save as Json format and how to get a Object.class we take out the text content from Redis?My friend told me that using FastJson to save Object into Redis,then take ou

2022-05-30 01:16:53 333

原创 20220529RedisTemplate存储至缓存数据乱码问题记录

BackgoundI met a problem that data is digital gibberish on RDM while I am trying to make some tests running to learn about Redis with Spring Boot on Idea.Congratulations that RNG won the 2022 Msi Championship Of LOL. 祝贺RNG获得MSI 冠军~~~~~~~~~~Method1://R

2022-05-29 22:17:04 111

原创 20220528回顾在Mac上装Redis的一些问题记录

This is day-57 since I learned Java and also the 1st day I start to learn about Redis. I am very excited as it’s a must to learn and seems to be very interesting.Anyway, I would like to record the problem I met during the study and hope this can help me e

2022-05-28 02:29:01 588

原创 20220527初学Redis之概述+安装+基本指令了解

SQL (关系型数据库)VS NoSQL(非关系型数据库)SQLNoSQLRELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS)Non-relational or distributed database system.These databases have fixed or static or predefined schemaThey have dynamic schemaThese databases are not suit

2022-05-27 16:54:03 181

原创 每日源码之ArrayList自动扩容实现(add单个元素VS集合)20220526

动态增长原理:首先看一下往ArrayList加对象的方法add&addAll():add(): /** * Appends the specified element to the end of this list. 添加到list的最后面 * * @param e element to be appended to this list * @return <tt>true</tt> (as specified by

2022-05-26 17:33:35 106

原创 每日源码之ArrayList变量与构造函数小读总结附toArray方法20220525

变量//唯一序列号ID private static final long serialVersionUID = 8683452581122892189L;/** * Default initial capacity. jdk7之前初始容量为10,类似饿汉式,jdk8以后初始容量为0,类似懒汉式 */private static final int DEFAULT_CAPACITY = 10; /** * Shared empty array in

2022-05-25 20:36:30 115

原创 git指令总结

个人信息配置(初次运行)git config --global user.email "[email protected]"git config --global user.name "your name"查看git 版本git --version初始化(把文件交给git管理)git init.git文件夹相当重要,不要随便动检测文件状态git status添加管理文件夹//全部添加git add .//部分添加git add fileName.

2022-05-25 11:35:42 154

原创 .gitignore配置

经常在win和mac上切换开发环境,导致从GitHub上拉代码,idea就要一直配置依赖等东西,很多本地配置也被自动。后面发现是.gitignore 文件没有隐藏相关文件,如下配置:.gitignore文件配置HELP.mdtarget/!.mvn/wrapper/maven-wrapper.jar!**/src/main/**/target/!**/src/test/**/target/### 自己弄的一个文件夹 ###files/### STS ###.apt_generated

2022-05-24 14:43:11 802

原创 windows使用DOS命令查看并结束占用端口

以经常启动的JAVA spring boot项目为例查看端口情况netstat -aon|findstr "8080"PID查看tasklist|findstr "19372"终止:直接关闭java相关:比较暴力,会将与java相关的不同PID都关了taskkill /f /t /im java.exe 或taskkill /f -pid #pid...

2022-05-24 14:20:48 123

原创 Maven相关xml配置阿里云私服和本地仓库以及报错解决:Unable to import maven project: See logs for details

在公司电脑windows是用2019年的idea与Maven 3.8.X的版本不兼容,会报错:Unable to import maven project: See logs for details经过一番研究和搜索,发现是maven版本过高,idea自带bundle是3.6.1,为了以后更好的使用多个不同版本的配置,做出以下调整:Maven3历史版本下载地址:https://archive.apache.org/dist/maven/maven-3/修改setting.xml文件配置本地仓库,个人

2022-05-24 12:54:31 812

原创 JAVA构造方法与两种单例模式(饿汉VS懒汉)要点总结

有参构造方法和无参构造方法/** * @Description:for test constructor * @Author:Spike Wong * @Date:2022/5/23 */public class ConstructorDemo1 { public ConstructorDemo1(){ this("test"); //调用有参数构造器 System.out.println("无参构造方法"); } public

2022-05-23 22:41:28 207

原创 做一个上传图片到阿里云OSS的API接口并限制图片的大小且用MD5校验和命名文件

背景:在学习的java的时候,大佬给了一个需求作为训练:做一个上传图片的接口,传到oss,返回一个url。阿里云oss对象存储OSS:github项目地址导入POM依赖<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alicloud-oss</artifactId> <version>

2022-05-23 20:14:31 1816

原创 在Mac上用Parallels17安装win11步骤与无法连接网络问题

2022.5.22周天心血来潮,想在mac上安装win11,安装步骤记录一下:ISO下载地址:微软官方,https://www.microsoft.com/software-download/windows11激活自己网上找。安装环境:2019年mbp15寸Parallels_17版本:遇无法连接网络问题快捷键shift+command+G,访问/Library/Preferences/Parallels:/Library/Preferences/Paralle

2022-05-23 14:46:14 5670 1

原创 用.bat运行同个文件夹下的jar包

今天运行本地jar包给同事用,创建了.bat 文件的dos执行命令:@echo offecho %~dp0java -jar %~dp0\*****.jarpause将上面的代码复制到txt下,*****.jar为要运行的jar包。1、“echo %~dp0”是在cmd窗口上输出当前绝对路径。2、“pause”是运行结束后,不自动退出,以便看到cmd打印信息。个别电脑,会报错内存不足问题(java heap space)。除了电脑配置的原因外,可以手动指定分配内存空间,

2022-05-23 13:55:36 454

原创 每日源码第1天——File类的变量File.sparator和File.pathSparator的底层,对比应用和总结

File.Separator:在linux和macos的unix平台为/ ,在win系统为\\File.pathSeparator,在linux和macos的unix平台为: win系统为;

2022-05-17 02:54:05 365

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除