MAC篇
启动自带文件服务器
sudo apachectl start
cd Downloads
python -m SimpleHTTPServer
Windows篇
自动启动和关闭服务
启动进程
start "testServer1" java -jar testServer.jar
start "testServer2" java -jar testServer.jar
start "testServer1" mvn clean spring-boot:run
start "testServer2" mvn clean spring-boot:run
查看进程
tasklist /V /FI "WindowTitle eq testServer1*"
tasklist /V /FI "WindowTitle eq testServer2*"
终止进程:
taskkill /FI "WindowTitle eq testServer1" /T /F
taskkill /FI "WindowTitle eq testServer2" /T /F
SpringCloud Jar包启动命令
1. java -jar xxx.jar --server.port=8081
2. java -jar xxx.jar --spring.profiles.active=dev
3. java -jar xxx.jar --spring.config.location=D:\Java\application.properties
4. java -jar xxx.jar --spring.config.location=D:\Java\application.yml
5. java -jar xxx.jar --spring.config.location=D:\Java\application.properties -Dserver.port=8081 -Dserver.address=127.0.0.1
例如:
java -jar xxx.jar --spring.config.location=.\classes\application.yml
java -jar xxx.jar --spring.config.location=.\classes\application.yml -Dmybatis-plus.mapper-locations=.\classes\mapper
软件篇
GIT清除账户密码
git报错信息
运行一下命令缓存输入的用户名和密码:
git config --global credential.helper wincred
清除掉缓存在git中的用户名和密码
git credential-manager uninstall
完美解决!