yum install mysql mysql-server mysql-devel create user newsadmin; create database newsbase; grant all privileges on newsbase.* to newsadmin@localhost identified by'password'; revoke all on *.* from 'admin'@'%'; grant all on *.* to 'admin'@'%' identified by 'wdnm'
数据库用户名,密码在application.yml文件中配置
服务器环境
1 2 3 4 5 6
yum install java-1.8.0-openjdk-devel 安装maven到usr/local/apache-maven export MAVEN_HOME=/usr/local/apache-maven export PATH=${MAVEN_HOME}/bin:$PATH 服务器端Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain 错误解决:mvn io.takari:maven:wrapper