08 2021 档案

摘要:1.下载jar包,放置在idea的bin目录下,传送门 https://files.cnblogs.com/files/dslx/JetbrainsCrack-2.7-release-str.rar 或者百度网盘:https://pan.baidu.com/s/1KV3bACW4kstpeNByZ- 阅读全文
posted @ 2021-08-31 16:15 super超人 阅读(3769) 评论(0) 推荐(2)
摘要:Spring事务传播行为有7种: spring的7种传播行为:1.required:(默认传播行为),如果当前有事务,其他就用当前事务,不会新增事务。例如:方法A调用方法B,它们用同一个事务。(如果B没有事务,它们会用同一个事务。)(只要有一个回滚,整体就会回滚) 2.requires_new:如果 阅读全文
posted @ 2021-08-21 18:18 super超人 阅读(4851) 评论(0) 推荐(1)
摘要:异常:Transaction rolled back because it has been marked as rollback-only 原因:已经标记为rollback-only,但是后面的程序执行后又commit事务,抛出此异常。虽然都回滚,不影响正常业务。但是日志打印这种异常让人很难受。 阅读全文
posted @ 2021-08-21 16:42 super超人 阅读(64704) 评论(0) 推荐(1)
摘要:有两篇博客有图有代码,结合着看可以很容易理解六大设计原则: 参考: https://www.cnblogs.com/shijingjing07/p/6227728.html https://www.jianshu.com/p/3268264ae581 阅读全文
posted @ 2021-08-20 16:27 super超人 阅读(108) 评论(0) 推荐(0)
摘要:springboot整合redisCluster集群:(前提redis集群已经搭建好。windows上搭建redis集群参考:https://www.cnblogs.com/super-chao/p/9329018.html。linux上搭建redis集群步骤和windows上搭建redis集群一致 阅读全文
posted @ 2021-08-15 14:42 super超人 阅读(5896) 评论(0) 推荐(0)
摘要:原文参考:https://blog.csdn.net/chengxianxiang0279/article/details/101062461 如下图: 另外在 “窗口” 处还可以选择水平方向或垂直方向 转载于:https://my.oschina.net/u/3495722/blog/153136 阅读全文
posted @ 2021-08-14 23:51 super超人 阅读(158) 评论(0) 推荐(0)
摘要:1.window下安装linux参考:https://www.cnblogs.com/super-chao/p/15140678.html 2.linux版本的redis下载:https://pan.baidu.com/s/1ZMS9il9ciLw92gpudmNygg 提取码:swee 3.因为需 阅读全文
posted @ 2021-08-14 19:17 super超人 阅读(691) 评论(0) 推荐(0)
摘要:原文参考:https://www.cnblogs.com/dxqNet/p/11479395.html 1、ifconfig命令是设置或显示网络接口的程序,可以显示出我们机器的网卡信息,可是有些时候最小化安装CentOS等Linux发行版的时候会默认不安装ifconfig等命令,这时候你进入终端,运 阅读全文
posted @ 2021-08-14 18:30 super超人 阅读(6474) 评论(0) 推荐(0)
摘要:此处为了防止页面丢失,原文参考:https://blog.csdn.net/hyd130/article/details/115092347 原因:安装的时候没有选择图形化界面 或者直接安装成了 服务器版本。 1:登录root用户,在root管理员权限下输入 yum groupinstall "X 阅读全文
posted @ 2021-08-14 18:27 super超人 阅读(7632) 评论(0) 推荐(0)
摘要:此处是防止网页丢失,原文参考:https://www.cnblogs.com/tijun/p/10784656.html 一、 CentOS 7.6 下载 官网下载地址:https://www.centos.org/download/ 选择Minimal ISO 选择适合自己的下载路径即可。 二、C 阅读全文
posted @ 2021-08-14 18:17 super超人 阅读(2588) 评论(0) 推荐(0)
摘要:1.远程连接工具SecureCRT和SecureFXProtable的作用: SecureCRT:远程连接机器,用来连接linux的话可以通过命令操作linux。 SecureFXProtable:远程连接机器,用来连接linux的话可以将本机的文件上传到linux上。 SecureCRT用来远程连 阅读全文
posted @ 2021-08-14 18:07 super超人 阅读(1225) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/Alexshi5/article/details/78726082 三、连接linux下的redis服务器(如果无法连接一般是防火墙或保护模式的问题,按以下步骤操作可解决)1、修改redis.conf配置文件进入编辑配置文件[root@localho 阅读全文
posted @ 2021-08-14 17:28 super超人 阅读(1741) 评论(0) 推荐(0)
摘要:需要安装VMWare和Centos. 我安装的版本是VMwareWorkstation15pro和Centos7. 1.安装VMwareWorkstation: 下载地址:https://my.vmware.com/web/vmware/downloads/info/slug/desktop_end 阅读全文
posted @ 2021-08-14 13:31 super超人 阅读(878) 评论(0) 推荐(0)
摘要:RedisClient下载地址: https://pan.baidu.com/s/1kyXjQX87HLjVrxQ0LtMfVw 提取码:hphu 打开redisclient-win32.x86.1.5.exe。 添加redis服务: 添加完成后,需要对应的redis服务是启动的,才可以访问,否则会 阅读全文
posted @ 2021-08-13 23:30 super超人 阅读(4229) 评论(0) 推荐(0)
摘要:1.redis-3.2.100下载: redis-3.2.100的32位下载:https://pan.baidu.com/s/107xVp6LGT24Fq3GUcAwjNw 提取码:7aqm redis-3.2.100的64位下载:https://pan.baidu.com/s/1MsF2fzd9X 阅读全文
posted @ 2021-08-13 23:03 super超人 阅读(436) 评论(0) 推荐(0)
摘要:aof和rdb的区别?1.aof是日志形式存储,rdb是数据库形式存储。2.aof更加安全,可以将数据更加及时地同步到文件中,但是aof需要较多的磁盘IO开支,aof文件尺寸较大,文件内容恢复速度相对较慢。3.snapshot(快照),rdb安全性较差,它是正常时期数据备份以及master-slav 阅读全文
posted @ 2021-08-13 21:09 super超人 阅读(62) 评论(0) 推荐(0)
摘要:原文参考:https://www.jb51.net/article/121848.htm Redis是我们开发中常用的数据库,今天和大家分享的就是redis持久化的2种方式:RDB(Redis DataBase)和AOF(Apend Only File),希望对大家学习redis有帮助,一起来看看吧 阅读全文
posted @ 2021-08-13 21:05 super超人 阅读(146) 评论(0) 推荐(0)
摘要:1.redis-3.2.100下载: redis-3.2.100的32位下载:https://pan.baidu.com/s/107xVp6LGT24Fq3GUcAwjNw 提取码:7aqm redis-3.2.100的64位下载:https://pan.baidu.com/s/1MsF2fzd9X 阅读全文
posted @ 2021-08-13 20:20 super超人 阅读(203) 评论(0) 推荐(0)
摘要:原文参考:https://www.cnblogs.com/xuwenjin/p/9876432.html redis有两种持久化方式:RDB和AOF。具体差别跟优缺点可参考redis数据的两种持久化方式对比,本篇只介绍这两种方式怎么配置 RDB配置方式 默认情况下,是快照RDB的持久化方式,将内存中 阅读全文
posted @ 2021-08-13 19:50 super超人 阅读(517) 评论(0) 推荐(0)
摘要:问题1: windows下启动redis过一会儿就会弹出redis-server.exe已停止工作: 原因: 因为之前的系统是32位的,安装使用的也是32位的redis。后来重装系统为64位的,再使用之前32为的redis就会出现这种情况。 应该是与系统位数不兼容导致的。重新下载64位的redis使 阅读全文
posted @ 2021-08-13 19:38 super超人 阅读(1885) 评论(0) 推荐(0)
摘要:下载地址:https://hsk.oray.com/ 安装后,打开软件。 添加内网穿透即可。 阅读全文
posted @ 2021-08-09 20:22 super超人 阅读(249) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/duanyue/p/7601688.html 使用natapp本地映射外网服务 官网:https://natapp.cn/ 软件很好用,这对于前端工程师来说,有了这个工具就很爽了,当你的领导或者不在你公司内网范围内的人,想要看你的页面效果,就很简 阅读全文
posted @ 2021-08-09 20:14 super超人 阅读(2294) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/xiufengchen/p/10970525.html 升级jar包即可。 这个使用的版本 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <v 阅读全文
posted @ 2021-08-09 20:13 super超人 阅读(1082) 评论(0) 推荐(0)
摘要:1.修改maven的镜像: <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/ 阅读全文
posted @ 2021-08-09 20:08 super超人 阅读(2336) 评论(0) 推荐(0)
摘要:github地址:https://github.com/wechat-group/weixin-java-tools 例如授权回调: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb268f3ac33d62442&redire 阅读全文
posted @ 2021-08-09 19:58 super超人 阅读(293) 评论(0) 推荐(0)
摘要:直接使用${属性名}即可。 后台在session中set值。 httpSession.setAttribute("source", source); 前台freemarker的ftl文件中取session的值: <input type="hidden" <#if source??> value="$ 阅读全文
posted @ 2021-08-09 19:41 super超人 阅读(1157) 评论(0) 推荐(0)
摘要:springBoot和springCloud的版本号要对应,否则会有问题。 不同的springboot对应的springcloud版本可能不一样,就拿springboot2.1.7或者2.1.8来说,它对应的springcloud版本是Greenwich.SR3。 这些对应的版本信息都是从官方文档中 阅读全文
posted @ 2021-08-09 19:38 super超人 阅读(1589) 评论(0) 推荐(0)
摘要:在测试公众号中发如下授权消息: https://open.weixin.qq.com/connect/oauth2/authorizeappid=wxb268f3ac33d62442&redirect_uri=http%3A%2F%2Fpcr5p6.natappfree.cc%2Fmobile%2F 阅读全文
posted @ 2021-08-09 18:54 super超人 阅读(408) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/jagerLan/p/10455319.html 事务捕获异常才会进行回滚。如果自己捕获异常,在try catch块里事务需要手动回滚。 分布式事务lcn手动回滚: 不生效,或者无法全部回滚: TransactionAspectSupport.c 阅读全文
posted @ 2021-08-07 20:18 super超人 阅读(377) 评论(0) 推荐(0)
摘要:一:软件解决 软件下载地址: https://ngrok.com/download或百度网盘:https://pan.baidu.com/s/1kgIPgTaP88T9KNB6pzNSmA 提取码:52hr 下载ngrok-stable-windows-amd64.zip。解压后文件夹里面只有一个n 阅读全文
posted @ 2021-08-04 13:37 super超人 阅读(5) 评论(0) 推荐(0)
摘要:看看jar包是否都引入: <!--springboot集成jsp--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dep 阅读全文
posted @ 2021-08-04 13:26 super超人 阅读(434) 评论(0) 推荐(1)