自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 linux mysql8.0忘记密码

确保 bind-address 设置为 0.0.0.0,这样 MySQL 会监听所有 IP 地址。如果设置为 127.0.0.1,则只允许本地访问。1.打开 MySQL 配置文件,通常是 /etc/my.cnf 或 /etc/mysql/my.cnf。确保防火墙允许通过 3306 端口的访问。确保你使用的 MySQL 用户有远程访问权限。在配置文件中加入 skip-grant-tables,:wq进行保存修改。3.免密登录mysql,直接回车不需要输入密码。4.修改密码,依次执行以下命令。

2024-11-10 14:53:51 377

原创 java springboot项目 linux/cpu飙升问题排查

在这里插入图片描述](https://i-blog.csdnimg.cn/direct/ad17860f05454104aa6fe3fa98740067.png。3:找到占用最大的线程id printf ‘0x%x\n’ 20507。

2024-10-15 10:24:57 352

原创 Springboot多数据源配置 默认数据源 注解方式切换数据源

pom.xml<!--主从配置依赖--> <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>3.2.1</version>

2021-03-15 10:18:48 2078

原创 SpringBoot2.0 多数据源mysql和oracle配置

application.properties#Serverserver.port=8081#MYBATISmybatis.configLocation:classpath:mybatis-config.xml#mysqlspring.datasource.jdbc-url=jdbc:mysql://xxxx:3306/xx?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Sha

2021-03-08 11:27:53 265

原创 java移动/复制/下载文件

File desFile = new File(“D:\\bbb”); if(!desFile.exists()){//如果文件夹不存在 desFile.mkdir();//创建文件夹 } //把图片移到新路径 try { Path temp = Files.move (Paths.get("D:\\aaa\\1.jpg"), ...

2020-11-18 10:18:47 151

原创 SpringBoot Scheduled定时器

1.在springboot启动类中加入@EnableScheduling注解2.创建定时任务类添加@Compoment注解import org.springframework.scheduling.annotation.Scheduled;import org.springframework.stereotype.Component;import java.util.Date;@C...

2019-12-27 10:12:35 225

原创 js获取name属性一样的文本值

window.getParam=function () {//获取#id下name为username的所有input的value值 var paramText1=[]; var paramText2=[]; var paramText3=[]; var paramlist = []; $("#id input[name='text']").each(function () { ...

2019-12-10 18:02:09 911

原创 Java定时任务自动调用方法

1、 5秒后调用(只调一次)public static void main(String[] args) { Timer t = new Timer(); //在5秒之后执行TimerTask的任务 t.schedule(new TimerTask(){ public void run(){ System.out.printl...

2019-11-22 11:42:34 1247

原创 Java集合框架

List,Set,Map三者的区别?List(对付顺序的好帮手)1.可以允许重复的对象。2.可以插入多个null元素。3.是一个有序容器,保持了每个元素的插入顺序,输出的顺序就是插入的顺序。4.常用的实现类有 ArrayList、LinkedList 和 VectorSet(注重独一无二的性质):1.不允许重复对象2.无序容器,你无法保证每个元素的存储顺序,TreeSet...

2019-11-22 10:40:48 197

转载 idea Exception in thread "http-apr-8080-exec-2" java.lang.OutOfMemoryError: PermGen space

原文链接:https://blog.csdn.net/Dome_/article/details/79912170 今天在用idea运行项目的时候发现idea总是报 idea Exception in thread "http-apr-8080-exec-2" java.lang.OutOfMemo...

2019-11-12 11:38:07 1587

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除