Build user admin system via spring boot
App
#---------------------------
# RUN DDL
#---------------------------
# please check sql/ddl
#---------------------------
# Install : Redis
#---------------------------
# Redis
# V1 (homebrew)
brew services start redis
redis-cli
# V2 (docker)
docker run -p 6379:6379 -v $PWD/data:/data -d redis:2.3 -server -appendonly yes
#---------------------------
# Install : Consul
#---------------------------
# Consul
# V1 (docker)
cd springUserSystem
mkdir -p /tmp/consul/{conf,data}
docker run --name consel -p 8500:8500 -v /tmp/consul/conf/:/consul/conf/ -v /tmp/consul/data:/tmp/consul/data -d consul
docker ps -a
# access consul UI :
# localhost:8500
#---------------------------
# Run app
#---------------------------
# build
mvn package
# run
java -jar <built_jar>