摘要: 本文分为十九个模块,分别是:「Java 基础、容器、多线程、反射、对象拷贝、Java Web 、异常、网络、设计模式、Spring/Spring MVC、Spring Boot/Spring Cloud、Hibernate、MyBatis、RabbitMQ、Kafka、Zookeeper、MySQL 阅读全文
posted @ 2023-06-01 18:05 枫沫 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1.重置密码 1.1假设我们使用的是root账户 1.2跳过mysql密码认证过程 #vim /etc/my.cnf 在[mysqld]后面任意一行添加“skip-grant-tables”用来跳过密码验证的过程,如下图所示 1.3接下来我们需要重启MySQL # service mysqld re 阅读全文
posted @ 2023-05-20 14:41 枫沫 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.JDK1.8下载并安装 1.1直接点击下一步 1.2更改安装地址 1.3安装成功 1.4环境配置 1.5查看是否安装并配置成功,cmd-》java -version 2.IDEA下载并安装 https://www.exception.site/essay/how-to-free-use-inte 阅读全文
posted @ 2023-05-18 10:07 枫沫 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1. Spring,SpringMVC,SpringBoot,StringCloud的比较 1〉spring:ioc轻量级控制反转(依赖注入,注解注入,set 注入,构造器注入,静态工厂注入);AOP:面向切面编程,把公共的方法集中处理:如参数校验,权限控制,异常处理。 2〉springMVC:是一 阅读全文
posted @ 2022-04-18 09:41 枫沫 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1.’对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索 阅读全文
posted @ 2022-04-11 17:19 枫沫 阅读(47) 评论(0) 推荐(0) 编辑
摘要: JAVA设计模式总结之23种设计模式 上一篇总结了设计模式的六大原则《JAVA设计模式总结之六大设计原则》,这一篇,正式进入到介绍23种设计模式的归纳总结。 一、什么是设计模式 设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是 阅读全文
posted @ 2022-04-11 16:39 枫沫 阅读(11260) 评论(0) 推荐(0) 编辑
摘要: java 极光推送 阅读全文
posted @ 2020-03-11 18:06 枫沫 阅读(506) 评论(0) 推荐(0) 编辑
摘要: public static boolean sendEmail(String email,String title,String text) { //发送标题 try { String typeName = title; String from = "service@2009pool.com"; / 阅读全文
posted @ 2019-07-22 14:11 枫沫 阅读(240) 评论(0) 推荐(0) 编辑
摘要: package com.okni.okpool.okfinance.util; import com.okni.okpool.okfinance.config.TOTP; import org.apache.commons.codec.binary.Base32; import org.apache 阅读全文
posted @ 2019-07-22 14:04 枫沫 阅读(782) 评论(0) 推荐(0) 编辑
摘要: package com.okni.okpool.okfinance.util; import com.aliyun.oss.OSSClient; import com.google.zxing.BarcodeFormat; import com.google.zxing.EncodeHintType 阅读全文
posted @ 2019-07-22 14:01 枫沫 阅读(290) 评论(0) 推荐(0) 编辑