<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hints'blog]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_34744507</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_34744507]]></copyright><item><title><![CDATA[基于Oauth2实现的SAAS系统]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/129196152</link><guid>https://blog.csdn.net/weixin_34744507/article/details/129196152</guid><author>weixin_34744507</author><pubDate>Fri, 24 Feb 2023 11:01:41 +0800</pubDate><description><![CDATA[基于security设计的多数据源saas系统]]></description><category></category></item><item><title><![CDATA[spring读取nacos配置中心json文件]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/123109145</link><guid>https://blog.csdn.net/weixin_34744507/article/details/123109145</guid><author>weixin_34744507</author><pubDate>Thu, 24 Feb 2022 12:44:22 +0800</pubDate><description><![CDATA[场景
数据对应关系表之前在系统是一静态代码形式存储，配置数据存储在代码中不安全，且改动配置需要重新提交部署代码，现使用nacos配置中心存储一系列数据对应关系表。
需引入nacos config包
&lt;dependency&gt;
            &lt;groupId&gt;com.alibaba.cloud&lt;/groupId&gt;
            &lt;artifactId&gt;spring-cloud-starter-alibaba-nacos-config&lt;/a]]></description><category></category></item><item><title><![CDATA[Vue3+Quasar实现ins风格图片墙]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/122519373</link><guid>https://blog.csdn.net/weixin_34744507/article/details/122519373</guid><author>weixin_34744507</author><pubDate>Sun, 16 Jan 2022 10:42:57 +0800</pubDate><description><![CDATA[在线Demo：
http://www.arthins.com
https://github.com/hints0816/artblog

关键要点：

图片墙滚动加载
图片按照1大9小分布
图片间距自适应变化
鼠标悬停图片遮罩层

注：我这里的图片均为正方形
代码实现（具体实现看注释）
template
&lt;template&gt;
&lt;!--Quasar类 内容居中 justify-center --&gt;
  &lt;div class="row justify-center"&gt;
  &]]></description><category></category></item><item><title><![CDATA[linux调用window的ftp下载文件乱码问题]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/122369765</link><guid>https://blog.csdn.net/weixin_34744507/article/details/122369765</guid><author>weixin_34744507</author><pubDate>Fri, 07 Jan 2022 18:10:47 +0800</pubDate><description><![CDATA[问题描述：
之前spring微服务是部署在window服务器，最近pring微服务切换到K8S。
k8s部署的spring微服务调用Ftpclient去调用window服务器上的ftp下载文件，下载下来的文件大小正确，但是打开内容乱码。
解决方案：
private void initFtpClient() {
    ftpClient = new FTPClient();
    ftpClient.setControlEncoding("utf-8");
    try {
        System]]></description><category></category></item><item><title><![CDATA[布 隆 过 滤 器]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/121022777</link><guid>https://blog.csdn.net/weixin_34744507/article/details/121022777</guid><author>weixin_34744507</author><pubDate>Thu, 28 Oct 2021 20:53:52 +0800</pubDate><description><![CDATA[缓存穿透：
恶意用户在短时间内大量查询缓存不存在的数据，导致大量请求被送达数据库进行查询，当请求数超过数据库负载时，使系统出现高延迟和瘫痪。
当查询大量数据不在redis的时候就会全部到达数据库



1.应用启动时初始化布隆过滤器(初始化数组)
2.用户请求判断布隆过滤器是否包含编号
3.包含则读取redis缓存数据，如果包含但是缓存不存在redis数据时，则读取数据，然后载入缓存
4.不包含则返回数据不存在数据


//布隆过滤器工具
&lt;dependency&gt;
    &lt;groupI.]]></description><category></category></item><item><title><![CDATA[nginx+lua实现接口幂等性处理]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/121021802</link><guid>https://blog.csdn.net/weixin_34744507/article/details/121021802</guid><author>weixin_34744507</author><pubDate>Thu, 28 Oct 2021 20:00:31 +0800</pubDate><description><![CDATA[问题引入：
为保证系统可靠性，往往少不了重试机制，这就会出现幂等性的问题


1.数据库唯一约束实现幂等性
2.为更新的数据设置前置条件（乐观锁版本号控制）
3.记录并检查更新（如下图）


Redis Setnx（SET if Not eXists） 命令在指定的 key 不存在时，为 key 设置指定的值。


...]]></description><category></category></item><item><title><![CDATA[Caused by: io.seata.common.exception.ShouldNeverHappenException: Could not found any index in the ta]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/120831200</link><guid>https://blog.csdn.net/weixin_34744507/article/details/120831200</guid><author>weixin_34744507</author><pubDate>Mon, 18 Oct 2021 18:01:24 +0800</pubDate><description><![CDATA[java.sql.SQLException: Failed to fetch schema of tablename

Caused by: io.seata.common.exception.ShouldNeverHappenException: Could not found any index in the table: tablename

io.seata.common.exception.ShouldNeverHappenException: [xid:10.2.30.38:30109:5676]]></description><category></category></item><item><title><![CDATA[NutzDao代码生成器]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/120702959</link><guid>https://blog.csdn.net/weixin_34744507/article/details/120702959</guid><author>weixin_34744507</author><pubDate>Mon, 11 Oct 2021 16:56:56 +0800</pubDate><description><![CDATA[Nutz-Code-Generator
介绍
本项目是基于NutzDao的代码生成器
注：仅支持单表CRUD，未支持外键关联




使用说明
访问地址
配置数据源src/main/resources/application.properties
server.port=8084
spring.datasource.username=greescmdb2
spring.datasource.password=passwd
spring.datasource.url=jdbc:oracle:thin:@//1]]></description><category></category></item><item><title><![CDATA[为何阿里禁用三表Join关联]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/120425133</link><guid>https://blog.csdn.net/weixin_34744507/article/details/120425133</guid><author>weixin_34744507</author><pubDate>Wed, 22 Sep 2021 23:57:34 +0800</pubDate><description><![CDATA[1
]]></description><category></category></item><item><title><![CDATA[Mysql异构数据方案Canal]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/120356885</link><guid>https://blog.csdn.net/weixin_34744507/article/details/120356885</guid><author>weixin_34744507</author><pubDate>Fri, 17 Sep 2021 21:25:56 +0800</pubDate><description><![CDATA[1，异构数据就是同样的数据内容却需要转换成不同结构的数据形式

例：mysql数据异构到es数据库继续搜索，mysql数据异构到MongoDB进行点位分析

2, binlog：

binlog是是二进制日志文件，binlog记录的所有操作实际上都有对应的事件类型的，记录级别有三种，异构方案直接记录row行级别

3，主从数据库同步主从同步的实现方式是使用上述的binlog实现

A（binlog）-&gt;B（relaylog）-&gt;B(binlog)

4. Canal登场

A（binlog）-&]]></description><category></category></item><item><title><![CDATA[分布式任务调度方案shardingsphere-elasticjob]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/119920809</link><guid>https://blog.csdn.net/weixin_34744507/article/details/119920809</guid><author>weixin_34744507</author><pubDate>Wed, 25 Aug 2021 22:33:45 +0800</pubDate><description><![CDATA[shardingsphere-elasticjob-lite

本项目主要是springboot整合了elasticjob
1.zookeeper注册配置注入
2.作业追踪配置注入
3.封装了shardingsphere-elasticjob相关API
4.nutz框架对对象的简单dao操作
项目链接：https://gitee.com/hints0816/shardingsphere-elasticjob

介绍
ElasticJob原来是当当网的分布式任务调度方案，从上年开始被Apache收购为子项目
]]></description><category></category></item><item><title><![CDATA[关于JWT的几个理解偏差问题]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/109397979</link><guid>https://blog.csdn.net/weixin_34744507/article/details/109397979</guid><author>weixin_34744507</author><pubDate>Sat, 31 Oct 2020 09:26:57 +0800</pubDate><description><![CDATA[1.JWT的签名（signkey）并不是密钥，即使你对JWT加了签名，还是可以破解里面的内容

加上签名是为了防伪造，防篡改，即使你知道JWT的内容但是你并不知道签名是什么，无法形成一个正确的JWT

2.JWT的业务场景：

JWT相比于普通token：JWT本身包含了用户的信息，且JWT访问资源时不需要经过认证服务器，不需要进行任何的库操作（真正意义的服务器无状态！）

问题思考：JWT不进行库操作，能否主动token失效呢？不可以

所以这里我们可以思考一下：JWT这种定时性包含用户信息的token适]]></description><category></category></item><item><title><![CDATA[springmvc引入json]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/107069858</link><guid>https://blog.csdn.net/weixin_34744507/article/details/107069858</guid><author>weixin_34744507</author><pubDate>Thu, 02 Jul 2020 09:13:47 +0800</pubDate><description><![CDATA[这里有个坑，就是spring3.0和spring4.0引入的jar包不一样：

3.0：

4.0：
]]></description><category></category></item><item><title><![CDATA[docker：manifest unknow]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/106781525</link><guid>https://blog.csdn.net/weixin_34744507/article/details/106781525</guid><author>weixin_34744507</author><pubDate>Tue, 16 Jun 2020 16:20:40 +0800</pubDate><description><![CDATA[ERROR: manifest for nexus.gree.com/alpine:3.12.0 not found:manifest unknow:manifest unknown

解决方案：更换TAG号，上docker hub寻找一个可用的TAG重新拉一边镜像
]]></description><category></category></item><item><title><![CDATA[nutz.dao使用技巧]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/106661456</link><guid>https://blog.csdn.net/weixin_34744507/article/details/106661456</guid><author>weixin_34744507</author><pubDate>Wed, 10 Jun 2020 12:46:05 +0800</pubDate><description><![CDATA[1.NutzMap拼装响应结果

2.响应动态页面：@OK("jsp:${obj}") return "xxxxx.jsp"

3.分页：Pager pager = dao.createPager(page,pageSize);

pager.setRecordCount(count);

sql.setPager(pager);

4.事务:

1.无返回值：Trans.exec(Connection.TRANSACTION_READ_COMMITTED,new Atom() {

    @O...]]></description><category></category></item><item><title><![CDATA[pandas：时间精度分片-计算状态转移矩阵]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/89486753</link><guid>https://blog.csdn.net/weixin_34744507/article/details/89486753</guid><author>weixin_34744507</author><pubDate>Wed, 24 Apr 2019 10:28:26 +0800</pubDate><description><![CDATA[承接上文：pandas：参照列属性将一行转换为多行-时间精度分片

将时间分片后打算将图一转换为图二的效果，即将每个人的一天的状态按一天144个10分钟去分成144列

注意：某些人的某个时间段可能会有多个活动，因为某些活动少于10分钟的原因




图一


图二
​​​​


代码如图：（可处理出图二）



#将活动表按照144个10分钟分组，活动类型按"|"划分
dt = Data...]]></description><category></category></item><item><title><![CDATA[pandas：参照列属性将一行转换为多行-时间精度分片]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/89443663</link><guid>https://blog.csdn.net/weixin_34744507/article/details/89443663</guid><author>weixin_34744507</author><pubDate>Mon, 22 Apr 2019 03:19:29 +0800</pubDate><description><![CDATA[pandas技巧太多了，往往有想法但无从下手，话不多说，开始

图一转换为图二：实现不同时间段都按10分钟的精度去划分，并且实现一行变多行




         图一 （显示不全）        

                      

              ...]]></description><category></category></item><item><title><![CDATA[python实现初步爬虫]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/85329851</link><guid>https://blog.csdn.net/weixin_34744507/article/details/85329851</guid><author>weixin_34744507</author><pubDate>Sat, 29 Dec 2018 08:56:31 +0800</pubDate><description><![CDATA[ 



def get_data(url):
# 这里用了with as 即完成之后自动close(),释放资源
    with request.urlopen(url) as f:
        data = f.read()
        # print('Status:', f.status, f.reason) #状态码
        # for k, v in f.gethea...]]></description><category></category></item><item><title><![CDATA[安装软件包libicu57 (安装w3af过程)]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/83049215</link><guid>https://blog.csdn.net/weixin_34744507/article/details/83049215</guid><author>weixin_34744507</author><pubDate>Sun, 14 Oct 2018 18:26:01 +0800</pubDate><description><![CDATA[安装过程参考：https://blog.csdn.net/f786548139/article/details/80604586

问题出现：

在安装所需软件包时： libjavascriptcoregtk-1.0-0 : 依赖: libicu57 (&amp;gt;= 57.1-1~) 但无法安装它
 

这时需要安装（我的更新源并没有libicu57）



debian软件仓库(https://p...]]></description><category></category></item><item><title><![CDATA[kali linux 无线渗透[aircrack-ng]及问题解决]]></title><link>https://blog.csdn.net/weixin_34744507/article/details/82962658</link><guid>https://blog.csdn.net/weixin_34744507/article/details/82962658</guid><author>weixin_34744507</author><pubDate>Mon, 08 Oct 2018 11:59:42 +0800</pubDate><description><![CDATA[首先：你要有一个兼容kali linux的无线网卡用于嗅探网络

如我的是：RT3070（免驱）

注：kali linux系统不能使用物理主机上的网卡

1.显示或配置网络设备(网络接口卡)


ifconfig 

注：网卡信息配置：/etc/network/interfaces

auto lo # auto表示开机启动该网卡设备
iface lo inet loopback
auto et...]]></description><category></category></item></channel></rss>