摘要:
nvm NVM: Node Version Manager 下载地址 Mac/Linux安装 nvm:https://github.com/nvm-sh/nvm Windows 安装 nvm:https://github.com/coreybutler/nvm-windows 下载 nvm-setu 阅读全文
摘要:
MySQL 连接字符串 MySQL 5.7 jdbc.drive=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&useSSL=false 阅读全文
摘要:
public interface BaseMapper<T> extends Mapper<T> { // 根据传入的实体对象参数,插入一条记录 —— insert into user(id,name,age,email) values (?,?,?,?) int insert(T entity); 阅读全文
摘要:
在控制台输入初始化命令:npm init 在输入命令之后一直点回车 然后输入命令:npm i miniprogram-sm-crypto --production 最后再去微信开发者工具中点击:工具 -> 构建npm,就能成功了 阅读全文
摘要:
常用代理设置,以本机安装clash为例:代理地址 http://127.0.0.1:7890 CMD # 设置http代理 set http_proxy=http://127.0.0.1:7890 set https_proxy=http://127.0.0.1:7890 # 设置socks5代理 阅读全文
摘要:
ArrayList 概述 ArrayList 是一种变长的集合类,底层是基于数组来实现的,所以 ArrayList 查询效率高、增删效率低 ArrayList 集合中的元素是有序、可重复的,且可以存储 null 空值 当每次向 ArrayList 容器中添加元素时,会进行容量检查:当往 ArrayL 阅读全文
摘要:
| MyBatis注解 | 说明 | | | | | @Select | 查询语句 | | @Insert | 添加语句 | | @Update | 更新语句 | | @Delete | 删除语句 | | @MapKey | 当返回值类型为Map时,设置Map的主键列名 | HelloWorld 全 阅读全文
摘要:
| 注解 | 说明 | | | | | @RequestMapping | 告诉SpringMVC,这个方法用来处理什么请求 | | @PathVariable | 接收请求路径中占位符的值 | | @RequestParam | 获取请求参数;默认请求参数必须有否则报错 | | @RequestH 阅读全文
摘要:
| Spring常用注解 | 说明 | | | | | @Controller | 控制器层注解 | | @Service | 业务逻辑层注解 | | @Repository | 数据持久化层注解 | | @Component | 给不属于以上几层的组件添加这个注解 | | @Autowired | 阅读全文
摘要:
// 注册Servlet @WebServlet(name = "helloServlet", value = "/hello-servlet") // 注册过滤器 @WebFilter(filterName = "HelloFilter", urlPatterns = {"/*"}) // 注册监 阅读全文
摘要:
$$ 操作步骤 \begin{cases} \text{注册驱动——加载Driver类}\ \text{获取连接——得到Connection对象}\ \text{获取执行SQL语句的对象——Statement/PreparedStatement/CallableStatement}\ \text{执 阅读全文
摘要:
运维篇 日志 主从复制 分库分表 读写分离 ==待续== 阅读全文