• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2022年4月1日

解决:Data source rejected establishment of connection, message from server: "Too many connections"
摘要: SELECT @@MAX_CONNECTIONS AS 'Max Connections'; set GLOBAL max_connections=1000; http://blog.sina.com.cn/s/blog_1645e034e0102ydo5.html 阅读全文
posted @ 2022-04-01 17:21 吴裕雄 阅读(258) 评论(0) 推荐(0)
 
BPwdEncoderUtils关键代码
摘要: package com.forezp.util; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; public class BPwdEncoderUtils { private static final 阅读全文
posted @ 2022-04-01 15:42 吴裕雄 阅读(45) 评论(0) 推荐(0)
 
SwaggerConfig关键代码
摘要: package com.tszr.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import sprin 阅读全文
posted @ 2022-04-01 14:19 吴裕雄 阅读(232) 评论(0) 推荐(0)
 
UserUtils关键代码
摘要: package com.tszr.util; import org.springframework.security.core.Authentication; import org.springframework.security.core.authority.SimpleGrantedAuthor 阅读全文
posted @ 2022-04-01 14:06 吴裕雄 阅读(93) 评论(0) 推荐(0)
 
HttpUtils关键代码
摘要: package com.tszr.util; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequ 阅读全文
posted @ 2022-04-01 14:04 吴裕雄 阅读(36) 评论(0) 推荐(0)
 
ResourceServerConfiguration关键代码
摘要: 资源访问配置 package com.tszr.config; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired 阅读全文
posted @ 2022-04-01 10:08 吴裕雄 阅读(335) 评论(0) 推荐(0)
 
JwtConfiguration关键代码
摘要: 配置jwt权限、存取用户访问头信息 package com.tszr.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.ann 阅读全文
posted @ 2022-04-01 10:00 吴裕雄 阅读(96) 评论(0) 推荐(0)
 
GlobalMethodSecurityConfiguration关键代码
摘要: 开启方法方法的权限注解 package com.tszr.config; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotatio 阅读全文
posted @ 2022-04-01 09:55 吴裕雄 阅读(232) 评论(0) 推荐(0)
 
RespDTO类
摘要: package com.tszr.dto; import java.io.Serializable; public class RespDTO<T> implements Serializable{ public int code = 0; public String error = ""; pub 阅读全文
posted @ 2022-04-01 09:11 吴裕雄 阅读(99) 评论(0) 推荐(0)
 
通用错误码类
摘要: package com.tszr.exception; /** * 通用错误码 * */ public enum ErrorCode { OK(0, ""), FAIL(-1, "操作失败"), RPC_ERROR(-2,"远程调度失败"), USER_NOT_FOUND(1000,"用户不存在") 阅读全文
posted @ 2022-04-01 09:10 吴裕雄 阅读(171) 评论(0) 推荐(0)