- 博客(12)
- 资源 (2)
- 收藏
- 关注
原创 Spring Boot 3 + Druid + MySql 项目启动慢的问题分析及处理
连接 mysql 数据库,启动项目时间超长,特别是设置了 druid 的初始化连接数(intial-size)和最小连接池数量(min-idel)配置过大的情况下,问题排查时,initial-size :5,min-idel:10。在项目启动初始化连接的那部分,大概需要40~50秒才能初始化完成。降低这两个配置,分别设置为1的话,启动时间大概在10秒左右。换个库,比如 postgressql 就很丝滑,这就很神奇了。
2025-02-28 11:39:12
833
1
原创 Spring Cloud Gateway集成Sentinel 1.8.6及Sentinel Dashboard
Spring Cloud Gateway集成Sentinel 1.8.6及Sentinel Dashboard
2023-02-21 17:51:36
3691
1
原创 TabControl重绘带关闭按钮和页选择
TabStrip:[Designer(typeof(AsTabStripDesigner))][DefaultEvent("TabStripItemSelectionChanged")][DefaultProperty("Items")][ToolboxItem(true)][ToolboxBitmap("FATabStrip.bmp")]public class AsTabStrip ...
2018-07-02 10:38:27
1248
原创 自动完成TextBox实现类似百度搜索框
public class AsSearchTextBox : TextBox { #region 字段 /// <summary> /// 列表框 /// </summary> private ListBox listBox; /// <summary> /// 记住前输入的字符串 /// ...
2018-07-02 10:36:26
2299
原创 绘制开关按钮
[DefaultEvent("SwitchChanged")]public class SwitchBox : Control { public SwitchBox() { this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true...
2018-07-02 10:35:33
699
原创 绘制圆角TextBox文本框
public class TextBoxCu : Control { public TextBoxCu() { this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(Control...
2018-07-02 10:34:40
6574
3
原创 ArcGis For Android 100.2.1 Error inflating class com.esri.arcgisruntime.mapping.view.MapView
异常内容:E/AndroidRuntime: FATAL EXCEPTION: main Process: com.xxx.xxx, PID: 18070 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.xxx/com.xxx...
2018-07-02 10:33:46
2583
3
原创 Windows注册系统服务
需求:在做程序接口需要托管至服务开机自启动、监听服务等功能的。入口函数:using System;using System.Configuration.Install;using System.ServiceProcess;using System.Windows.Forms; namespace MailServerService { /// <summary> ...
2018-07-02 10:30:36
926
原创 SignalR 2.2.1实现跨域Hub
(一)、.NET必须4.5。没有下载好pack包的,需要在NuGet包管理器里的控制台里执行以下两句代码安装必要Dll:1.Install-Package Microsoft.AspNet.SignalR2.Install-Package Microsoft.Owin.Cors如果有现成的Dll,需要引用下图中红框Dll(二)、创建Hub类using Microsoft.AspNet.Signal...
2018-07-02 10:29:04
1961
1
原创 List、DataTable和对象互转,List转DataTable异常Nullable解决方案
using System;using System.Collections.Generic;using System.Data;using System.Reflection; namespace ClassLibrary1 { public class DataConvert { /// <summary> /// DataTab...
2018-07-02 10:25:15
845
原创 WinForm递归获取树形菜单及右键菜单
第一篇博客,有不到之处和抄袭嫌疑还请海涵,本人新手,之前从未接触计算机语言,偶然机会下学了半年。现在上班半年,开发路上还有很多需要学习的地方,在这里希望多多认识各路老师,多多指教!趁着周末,闲极无聊就写写博客,加深印象,也许也还能帮助别人...何乐不为?直接上:效果图 数据表结构Codepublic parti
2015-04-18 14:10:00
4814
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人