摘要: 变量 C++变量命名规则: 在名称中只能使用字母、数字和下划线 名称的第一个字符不能是数字 区分大写字符和小写字符 以两个下划线或下划线和大写字母开头的名称被保留给实现(编译器及其使用的资源)使用。以一个下划线开头的名称被保留给实现,用作全局标识符 C++对于名称的长度没有限制,名称中所有的字符都有 阅读全文
posted @ 2022-04-30 11:08 hllog 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 第一个程序 // myfirst.cpp #include <iostream> int main() { using namespace std; cout << "Come up and C++ me some time."; cout << endl; cout << "You won't r 阅读全文
posted @ 2022-04-28 20:20 hllog 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Swagger官网:https://swagger.io/ 使用Swagger 环境: SringBoot版本:2.5.6 Swagger版本:2.9.2 新建一个SpringBoot项目,导入Swagger依赖 <!-- https://mvnrepository.com/artifact/io. 阅读全文
posted @ 2022-03-06 16:14 hllog 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 今天在使用MyBatis的时候,出现了java.sql.SQLException: Parameter index out of range (4 > number of parameters, which is 3).异常。 检查了下代码,参数都是按需传入的,好像没有什么问题。 然后检查了下日志输 阅读全文
posted @ 2022-03-01 14:08 hllog 阅读(1858) 评论(0) 推荐(0) 编辑
摘要: 本地库 初始化仓库 git init 查看工作区、暂存区状态 git status 将工作区的“新建/修改”添加到暂存区 git add [filename] 将暂存区的内容提交到本地库 git commit -m "commit message" [filename] 查看历史记录 git log 阅读全文
posted @ 2022-02-25 00:14 hllog 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Maven常用命令 # 清理 mvn clean # 编译主程序 mvn compile # 编译测试程序 mvn test-compile # 执行测试 mvn test # 打包 mvn package # 安装 mvn install # 生成站点 mvn site 坐标 在Maven中,由g 阅读全文
posted @ 2022-02-22 01:01 hllog 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Maven是什么? Maven是一款服务于Java平台的自动化构建工具。 构建过程中的各个环节 清理:将以前编译得到的旧的class字节码文件删除,为下一次编译做准备 编译:将Java源程序编译成class字节码文件 测试:自动测试,自动调用JUnit程序 报告:测试程序执行的结果 打包:动态Web 阅读全文
posted @ 2022-02-21 17:15 hllog 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 配置用户名和邮箱地址: git config --global user.name 'your_name' git config --global user.email 'your_email@domain.com' 这个配置会存储在本地的C:\Users\用户名.gitconfig 文件。 参数: 阅读全文
posted @ 2022-01-30 19:06 hllog 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 参考:https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git 阅读全文
posted @ 2022-01-30 18:49 hllog 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 要连接数据库,需要有driver(驱动)、url(数据库地址)、username(用户名)、password(密码)。 package com.hllog; import com.mysql.cj.jdbc.Driver; import org.junit.Test; import java.io. 阅读全文
posted @ 2022-01-16 19:28 hllog 阅读(155) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示