<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[tellmeanswer的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/tellmeanswer</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; tellmeanswer]]></copyright><item><title><![CDATA[mac 英特尔架构安装pip install insightface 架构报错]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/140542790</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/140542790</guid><author>tellmeanswer</author><pubDate>Fri, 19 Jul 2024 10:43:03 +0800</pubDate><description><![CDATA[本次任务为本地拉取insightface 项目进行人脸识别。]]></description><category></category></item><item><title><![CDATA[TCC如何防止悬挂空回滚]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/121775360</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/121775360</guid><author>tellmeanswer</author><pubDate>Tue, 07 Dec 2021 18:03:06 +0800</pubDate><description><![CDATA[TCC的异常场景
在分布式系统中，随时随地都需要面对网络超时，网络重发和服务器宕机等问题。所以分布式事务框架作为搭载在分布式系统之上的一个框架型应用也绕不开这些问题。具体而言，有以下常见问题：
幂等处理
空回滚
资源悬挂
这些异常的应对需要TCC框架的支持和解决方案。
幂等处理
产生原因
因为网络抖动等原因，分布式事务框架可能会重复调用同一个分布式事务中的一个分支事务的二阶段接口。所以分支事务的二阶段接口Confirm/Cancel需要能够保证幂等性。如果二阶段接口不能保证幂等性，则会产生严重的问题，造成资]]></description><category></category></item><item><title><![CDATA[java 自定义注解以及获得注解的值]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/121753241</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/121753241</guid><author>tellmeanswer</author><pubDate>Mon, 06 Dec 2021 18:45:43 +0800</pubDate><description><![CDATA[1.自定义注解
复制代码
import java.lang.annotation.*;
@Documented
@Target(ElementType.FIELD)
@Inherited
@Retention(RetentionPolicy.RUNTIME )
public @interface MyAnno {
/**
* 是否能为null
* @return
*/
boolean isCanNull() default true;
/**
 * 是否能为空字符串
 * @return
 */
boole]]></description><category></category></item><item><title><![CDATA[配置文件与配置类的属性映射方式]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/121752439</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/121752439</guid><author>tellmeanswer</author><pubDate>Mon, 06 Dec 2021 17:55:39 +0800</pubDate><description><![CDATA[使用注解@Value映射
以通过@Value注解将配置文件中的值映射到一个Spring管理的Bean的字段上
@Controller
public class Quick2Controller {
@Value("${name}")
private String name;
@Value("${person.addr}")
private String addr;

@RequestMapping("/quick2")
@ResponseBody
public String quick2(){
    //]]></description><category></category></item><item><title><![CDATA[spring MVC 自定义不拦截注解]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/107016809</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/107016809</guid><author>tellmeanswer</author><pubDate>Mon, 29 Jun 2020 11:27:48 +0800</pubDate><description><![CDATA[首先创建自定义注解
/**
 *  不需要拦截注解
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface UnAuth {
}


创建好了自定义注解只需要在不需要拦截的请求上加上标注
@UnAuth
然后 需要在拦截器里面添加 我们这段拦截验证
    /**
     * 判断是否需要拦截
     */
    private boolean isNeedFilter(Object h]]></description><category></category></item><item><title><![CDATA[通过JS判断浏览器类型，最新版！]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/105951451</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/105951451</guid><author>tellmeanswer</author><pubDate>Wed, 06 May 2020 15:19:01 +0800</pubDate><description><![CDATA[// 火狐浏览器：
  // Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

  // 谷歌浏览器
  // Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/7...]]></description><category></category></item><item><title><![CDATA[mpvue 使用全局变量]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/105725108</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/105725108</guid><author>tellmeanswer</author><pubDate>Fri, 24 Apr 2020 10:25:10 +0800</pubDate><description><![CDATA[最近在写小程序需要用到全局变量
首先在 主main.js中与 vue实例挂载
const app = new Vue(App)
app.$mount()
Vue.prototype.globalData = getApp().globalData

挂载后 在录入值的页面
this.globalData.valu = 1
在使用页面
onShow () {
console.log(this.glo...]]></description><category></category></item><item><title><![CDATA[mpvue使用animation.js 方法实现卡片翻转，设置背景]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/105724629</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/105724629</guid><author>tellmeanswer</author><pubDate>Fri, 24 Apr 2020 10:21:30 +0800</pubDate><description><![CDATA[最近自己在做小程序使用mpvue快速搭建，需要实现卡片翻转的效果
   ## 第一步 引入animation   
       npm install animate.css --save
       下在完成后 在所用到动画的页面引入 animate.css 
       我是在main.js中引用

import animate from 'animate.css'
Vue.use(an...]]></description><category></category></item><item><title><![CDATA[mpvue未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/105507359</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/105507359</guid><author>tellmeanswer</author><pubDate>Tue, 14 Apr 2020 11:01:34 +0800</pubDate><description><![CDATA[最近要自己做一个小程序，用mpvue快速搭建 了一个小程序可是放进小程序开发工具里发现提示
mpvue未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译，万事开头难，之前没怎么接触过各种百度，Google，两种解决办法（如果都不管事请直接拉倒最后！）：
解决方法一：
改变根目录project.config.json文件的miniprogramRoot属性，改为dist/wx/，...]]></description><category></category></item><item><title><![CDATA[自己做了一个上线项目，nginx配置完域名的配置]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/105439457</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/105439457</guid><author>tellmeanswer</author><pubDate>Fri, 10 Apr 2020 18:27:05 +0800</pubDate><description><![CDATA[worker_processes  1;
events {
worker_connections  1024;
}
http {
include       mime.types;
default_type  application/octet-stream;
sendfile        on;
keepalive_timeout  65;
server{
listen 80;
server_...]]></description><category></category></item><item><title><![CDATA[Redis面试题]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/104606583</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/104606583</guid><author>tellmeanswer</author><pubDate>Mon, 02 Mar 2020 10:31:08 +0800</pubDate><description><![CDATA[1.什么是redis?
Redis 是一个基于内存的高性能key-value数据库。
2.Reids的特点
Redis本质上是一个Key-Value类型的内存数据库，很像memcached，整个数据库统统加载在内存当中进行操作，定期通过异步操作把数据库数据flush到硬盘上进行保存。因为是纯内存操作，Redis的性能非常出色，每秒可以处理超过 10万次读写操作，是已知性能最快的Key-Value ...]]></description><category></category></item><item><title><![CDATA[Java中锁的分类]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/104493796</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/104493796</guid><author>tellmeanswer</author><pubDate>Tue, 25 Feb 2020 11:18:41 +0800</pubDate><description><![CDATA[公平锁/非公平锁
可重入锁
独享锁/共享锁
互斥锁/读写锁
乐观锁/悲观锁
分段锁
偏向锁/轻量级锁/重量级锁
公平锁/非公平锁
公平锁是指多个线程按照申请锁的顺序来获取锁。 非公平锁是指多个线程获取锁的顺序并不是按照申请锁的顺序，有可能后申请的线程比先申请的线程优先获取锁。有可能，会造成优先级反转或者饥饿现象。 对于Java ReentrantLock而言，通过构造函数指定该锁是否是公平锁，默...]]></description><category></category></item><item><title><![CDATA[Mysql 8.0重置数据库密码，史上最全步骤！]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/103817310</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/103817310</guid><author>tellmeanswer</author><pubDate>Fri, 03 Jan 2020 11:40:58 +0800</pubDate><description><![CDATA[1.关闭Mysql服务

2 管理员运行 cmd窗口，并进入mysql目录

3 以安全模式启动启动Mysql
 **注意：**由于mysqld –skip-grant-tables
 实测在mysql8.0中已失效，
 现使用mysqld --console --skip-grant-tables --shared-memory

至此此CMD窗口放置不动 ，不要关闭，重现管理员身份打开新的CM...]]></description><category></category></item><item><title><![CDATA[重置mysql密码 mysqld –skip-grant-tables 无效解决方法]]></title><link>https://blog.youkuaiyun.com/tellmeanswer/article/details/103817051</link><guid>https://blog.youkuaiyun.com/tellmeanswer/article/details/103817051</guid><author>tellmeanswer</author><pubDate>Fri, 03 Jan 2020 11:08:01 +0800</pubDate><description><![CDATA[具体修改密码步骤 就不说了 其他博客有许多，但是在 安全模式启动mysql时候我遇到了这个问题

由于mysqld –skip-grant-tables实测在mysql8.0中已失效，现使用mysqld --console --skip-grant-tables --shared-memory

...]]></description><category></category></item></channel></rss>