05 2020 档案

摘要:1.还原数据库时,数据包过大无法还原,需要设置set global max_allowed_packet = 200*1024*1024*10; 2.给账户赋XA权限GRANT XA_RECOVER_ADMIN ON *.* TO 'root'@'%'; 3.升级数据库之后升级数据表 mysql_u 阅读全文
posted @ 2020-05-29 08:45 疯靡 阅读(244) 评论(0) 推荐(0) 编辑
摘要:1.清理数据库缓存。 EntityCacheUtil FinderCacheUtil 2.获取当前请求地址:PortalUtil.getCurrentCompleteURL(request) 3.编码:HtmlUtil.escapeURL(); 4./api/jsonws跨域问题解决: (1)web 阅读全文
posted @ 2020-05-26 10:11 疯靡 阅读(152) 评论(0) 推荐(0) 编辑
摘要:Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction 查看被锁的SQL select * from information_schema.innodb_trx 阅读全文
posted @ 2020-05-26 10:05 疯靡 阅读(182) 评论(0) 推荐(0) 编辑
摘要:有两种方法解决这个问题: 1、使用-Duser.timezone=GMT+08来指定时区; 2、就是修改/etc/profile文件,在文件的末尾添加 export TZ='Asia/Shanghai',然后使用命令source /etc/profile使其生效即可。 阅读全文
posted @ 2020-05-14 16:50 疯靡 阅读(449) 评论(0) 推荐(0) 编辑
摘要:引入google的gson包 import com.google.gson.Gson; import com.google.gson.GsonBuilder; public class GsonFactory { public static Gson createInstance() { Gson 阅读全文
posted @ 2020-05-13 15:26 疯靡 阅读(257) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示