A2J答疑

  • 作者:彭老师
  • 日期:2021-07-31
  • 类型:Android、Java、Vue、Linux
  • 说明:本文源于彭老师手写摘要,如需转载请带上链接或注明出处!

Q&A:

1、Java开发环境笔记(网易云课堂写不了)

IDEA简介
Mysql
Redis
Maven

2、项目环境配置篇,数据库配置乱填不影响启动

  • pom.xml配置中,统一springboot版本为:2.5.1(默认2.5.3)

3、Mybatis插件配置,Mysql驱动Jar包路径

Mac:/Users/用户名/.m2/repository/mysql/mysql-connector-java/xxx/xxx.jar
Windows:C:/Users/用户名/.m2/repository/mysql/mysql-connector-java/xxx/xxx.jar

4、Git多密钥配置

Windows添加多密钥
ssh-keygen -t rsa -C "simon@cmonbaby.com" -f C:/Users/Simon/.ssh/id_rsa_simon
ssh-keygen -t rsa -C "a2j@cmonbaby.com" -f C:/Users/Simon/.ssh/id_rsa_a2j

管理员powershell
Set-Service ssh-agent -StartupType Manual
Start-Service ssh-agent

ssh-add C:/Users/Simon/.ssh/id_rsa_simon; ssh-add C:/Users/Simon/.ssh/id_rsa_a2j