04 2021 档案
摘要:抽取为接口后, springboot事务开启,不在报错。 @Transactional public interface DescriptionService { public Description addDescription(Description description) ; 启动类 @Sp
阅读全文
摘要:首先建立配置类,实例化2个CacheManager的bean,且实现json序列化,其中一个设为primary,,然后,在实际的service层注解中,用cachemanage引用这个两个不同的bean,, @Configuration public class RedisManager { @Be
阅读全文
摘要:主要原因是,json做序列化的时候,级联报错。 解决办法, 用jedis,删除这个key,key需要自己拼接, zhouyiContentService.modifyZhouyiContent(zhouyiContent); ShardedJedis jedis = shardedJedisPool
阅读全文
摘要:原载于zookeeper的java 代码 public class TestCRUD{ private static final String zkServers ="192.168.72.151:2181" private static ZkClient zkClient= null; stati
阅读全文
摘要:JedisPoolUtil public class JedisPoolUtil { private static volatile JedisPool jedisPool = null;// 被volatile修饰的变量不会被本地线程缓存,对该变量的读写都是直接操作共享内存。 privat
阅读全文
摘要:首先安装好mysql集群, 做了1主2从的,读写分离的配置,见上篇博文 安装mycat, 解压Mycat-server-1.6.7.1-release-20190627191042-linux.tar.gz 得到 mycat 文件夹 启动,进入 bin/, ./mycat start 进入logs,
阅读全文
摘要:安装linux centos 7 安装完毕后,修改网卡地址,关闭防火墙,关闭selinux 网卡: vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 改为静态ip获取,关键的是,这5行。 #BOOTPROTO=dhcp BOOTPROTO=staticIP
阅读全文
摘要:git init 初始化 git add xxx.txt 添加文件 git commit -m "xxxxx" 提交文件 git remote add <name> <url> //添加远程 :(版本地址需要提前在网站上创建,并且之前要配置好ssh的key等,不再赘述。) 如: git的名字,在li
阅读全文
摘要:项目用springboot,在上线后,需要部署流程图和xml文件,从新部署了一个war官方的explorer的包,以用来生成流程图和xml 需要改三个地方 1.在电脑的系统变量里,添加JAVA_TOOL_OPTIONS, 值为:-Dfile.encoding=UTF-8 这一步可以在xml文件里,不
阅读全文
摘要:在wx上建立global的变量,然后request的时候,发送出去 关键代码,在请求体外 const app = getApp(); 在请求体内 historyId:app.globalData.zhanbuYao.data.historyId, 在方法体第一行的console.log 可以看到,取
阅读全文
摘要:微信小程序使用session时注意的问题 https://www.cnblogs.com/liuyj-top/p/12910365.html 微信小程序不能保存Cookie,导致每次wx.request到服务端都会创建一个新的会话(传过去的sessionid会变化),小程序端就不能保持登录状态了。
阅读全文
摘要:建立springboot项目,2.4.4 activiti 5.22 建立 activiti.cfg.xml在/src/main/resources <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframe
阅读全文
摘要:jstat -gcutil -t 1293 1000 // 总结垃圾回收 按百分比监控, 监控pid 为 1293进程,每1000毫秒更新一次,-t 打印时间戳 jstat -gc 1293 1000 // 原始监控 pid 为1293 java -XX:+PrintCommandLineFlags
阅读全文
摘要:建立 springboot项目 勾选mysql web等 添加activiti的jar的pom坐标 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=
阅读全文
摘要:http://dist.springsource.com/release/TOOLS/update/e4.18 首先打开eclipse , 查到版本号为4.18后, 然后install new sofitware,安装网址,http://dist.springsource.com/release/T
阅读全文
浙公网安备 33010602011771号